Skip to content

Commit e709eb9

Browse files
ekaradonalexdriaguine
authored andcommitted
fix poor performance with firefox when using eval as devtool (facebook#924)
Enable sourcemaps in development
1 parent f7a3dfd commit e709eb9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/react-scripts/config/webpack.config.dev.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ var env = getClientEnvironment(publicUrl);
3333
// It is focused on developer experience and fast rebuilds.
3434
// The production configuration is different and lives in a separate file.
3535
module.exports = {
36-
// This makes the bundle appear split into separate modules in the devtools.
37-
// We don't use source maps here because they can be confusing:
38-
// https://github.com/facebookincubator/create-react-app/issues/343#issuecomment-237241875
39-
// You may want 'cheap-module-source-map' instead if you prefer source maps.
40-
devtool: 'eval',
36+
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
37+
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
38+
devtool: 'cheap-module-source-map',
4139
// These are the "entry points" to our application.
4240
// This means they will be the "root" imports that are included in JS bundle.
4341
// The first two entry points enable "hot" CSS and auto-refreshes for JS.

0 commit comments

Comments
 (0)