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

Commit

Permalink
[fixed] use cheaper "eval-source-map" in development mode when cons…
Browse files Browse the repository at this point in the history
…tructing a webpack compiler for faster rebuilds
  • Loading branch information
thealjey committed Feb 11, 2017
1 parent a507dbb commit 1e86281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function getConfig(react: boolean): Object {
export function getCompiler(inPath: string, outPath: string): Object {
const compiler = webpack({
...getConfig(false),
devtool: 'source-map',
devtool: isProduction ? 'source-map' : 'eval-source-map',
entry: ['babel-polyfill', inPath],
output: {path: dirname(outPath), filename: basename(outPath), publicPath: '/'},
plugins: isProduction ? productionPlugins : []
Expand Down

0 comments on commit 1e86281

Please sign in to comment.