Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
e14d2da4
Commit
e14d2da4
authored
8 years ago
by
ekaradon
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix poor performance with firefox when using `eval` as `devtool` (#924)
Enable sourcemaps in development
parent
a5c30b94
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.dev.js
+3
-5
packages/react-scripts/config/webpack.config.dev.js
with
3 additions
and
5 deletions
+3
-5
packages/react-scripts/config/webpack.config.dev.js
+
3
-
5
View file @
e14d2da4
...
...
@@ -33,11 +33,9 @@ var env = getClientEnvironment(publicUrl);
// It is focused on developer experience and fast rebuilds.
// The production configuration is different and lives in a separate file.
module
.
exports
=
{
// This makes the bundle appear split into separate modules in the devtools.
// We don't use source maps here because they can be confusing:
// https://github.com/facebookincubator/create-react-app/issues/343#issuecomment-237241875
// You may want 'cheap-module-source-map' instead if you prefer source maps.
devtool
:
'
eval
'
,
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
devtool
:
'
cheap-module-source-map
'
,
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets