We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac93f31 commit 09cbb89Copy full SHA for 09cbb89
packages/react-scripts/config/webpack.config.js
@@ -489,11 +489,11 @@ module.exports = function(webpackEnv) {
489
]
490
),
491
// @remove-on-eject-end
492
- // If an error happens in a package, it's possible to be
493
- // because it was compiled. Thus, we don't want the browser
494
- // debugger to show the original code. Instead, the code
495
- // being evaluated would be much more helpful.
496
- sourceMaps: false,
+ // Babel sourcemaps are needed for debugging into node_modules
+ // code. Without the options below, debuggers like VSCode
+ // show incorrect code and set breakpoints on the wrong lines.
+ sourceMaps: shouldUseSourceMap,
+ inputSourceMap: shouldUseSourceMap,
497
},
498
499
// "postcss" loader applies autoprefixer to our CSS.
0 commit comments