We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6223fd9 commit 0fad4c0Copy full SHA for 0fad4c0
packages/react-scripts/config/webpack.config.js
@@ -376,6 +376,13 @@ module.exports = function (webpackEnv) {
376
],
377
include: paths.appSrc,
378
},
379
+ // Handle node_modules packages that contain sourcemaps
380
+ shouldUseSourceMap && {
381
+ enforce: 'pre',
382
+ exclude: /@babel(?:\/|\\{1,2})runtime/,
383
+ test: /\.(js|mjs|jsx|ts|tsx|css)$/,
384
+ use: 'source-map-loader',
385
+ },
386
{
387
// "oneOf" will traverse all following loaders until one will
388
// match the requirements. When no loader matches it will fall
0 commit comments