Skip to content

Commit b1585ec

Browse files
ekaradonrandycoulman
authored andcommitted
fix poor performance with firefox when using eval as devtool (facebook#924)
Enable sourcemaps in development
1 parent 67fe690 commit b1585ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: packages/react-scripts/config/webpack.config.dev.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ var env = getClientEnvironment(publicUrl);
4242
// ZEAL: Converted to a function to allow injecting the publicPath.
4343
module.exports = function(publicPath) {
4444
return {
45-
// This makes the bundle appear split into separate modules in the devtools.
46-
// We don't use source maps here because they can be confusing:
47-
// https://github.com/facebookincubator/create-react-app/issues/343#issuecomment-237241875
48-
// You may want 'cheap-module-source-map' instead if you prefer source maps.
49-
devtool: 'eval',
45+
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
46+
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
47+
devtool: 'cheap-module-source-map',
5048
// These are the "entry points" to our application.
5149
// This means they will be the "root" imports that are included in JS bundle.
5250
// The first two entry points enable "hot" CSS and auto-refreshes for JS.

0 commit comments

Comments
 (0)