Skip to content

Commit

Permalink
fix(taro-webpack5-runner): enableSourceMap (#12248)
Browse files Browse the repository at this point in the history
* fix(webpack5): enableSourceMap

* style(taro-webpack5-runner): code style

* fix(taro-webpack5-runner): enableSourceMap

Co-authored-by: lidonglin <lidonglin.dl@bytedance.com>
  • Loading branch information
alexlees and lidonglin authored Aug 22, 2022
1 parent bde2462 commit eb50480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-webpack5-runner/src/webpack/Combination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Combination<T extends MiniBuildConfig | H5BuildConfig = CommonBuild
this.outputRoot = config.outputRoot || 'dist'
this.sourceDir = path.join(appPath, this.sourceRoot)
this.outputDir = path.join(appPath, this.outputRoot)
this.enableSourceMap = process.env.NODE_ENV !== 'production'
this.enableSourceMap = config.enableSourceMap ?? process.env.NODE_ENV !== 'production'
}

async make () {
Expand Down

0 comments on commit eb50480

Please sign in to comment.