Skip to content

Commit

Permalink
fix(type): 完善代码的类型推断
Browse files Browse the repository at this point in the history
  • Loading branch information
AdvancedCat authored and ZakaryCode committed Apr 6, 2023
1 parent d548100 commit 7a48772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/taro-mini-runner/src/webpack/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const getTerserPlugin = ([enableSourceMap, terserOptions]) => {
parallel: true,
sourceMap: enableSourceMap,
terserOptions: recursiveMerge({}, defaultTerserOptions, terserOptions)
})
} as TerserPlugin.BasePluginOptions)
}
export const getCssoWebpackPlugin = ([cssoOption]) => {
return pipe(listify, partial(getPlugin, CssoWebpackPlugin))([mergeOption([defaultCSSCompressOption, cssoOption]), REG_STYLE])
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-webpack-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const buildDev = async (appPath: string, config: BuildConfig, appHelper: AppHelp
proxy.push({
context: [routerBasename],
bypass
})
} as WebpackDevServer.ProxyConfigArrayItem)
}

if (!(customProxy instanceof Array)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-webpack-runner/src/utils/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const getTerserPlugin = ([enableSourceMap, terserOptions]) => {
parallel: true,
sourceMap: enableSourceMap,
terserOptions: recursiveMerge({}, defaultTerserOption, terserOptions)
})
} as TerserPlugin.BasePluginOptions)
}
export const getCssoWebpackPlugin = ([cssoOption]) => {
return pipe(
Expand Down

0 comments on commit 7a48772

Please sign in to comment.