Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit 1e86281

Browse files
committed
[fixed] use cheaper "eval-source-map" in development mode when constructing a webpack compiler for faster rebuilds
1 parent a507dbb commit 1e86281

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function getConfig(react: boolean): Object {
136136
export function getCompiler(inPath: string, outPath: string): Object {
137137
const compiler = webpack({
138138
...getConfig(false),
139-
devtool: 'source-map',
139+
devtool: isProduction ? 'source-map' : 'eval-source-map',
140140
entry: ['babel-polyfill', inPath],
141141
output: {path: dirname(outPath), filename: basename(outPath), publicPath: '/'},
142142
plugins: isProduction ? productionPlugins : []

0 commit comments

Comments
 (0)