Skip to content

Commit bfa1433

Browse files
authored
Disable source maps for node_modules (facebook#5096)
1 parent 1be75bb commit bfa1433

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

config/webpack.config.dev.js

+5
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ module.exports = {
308308
]),
309309
// @remove-on-eject-end
310310
highlightCode: true,
311+
// If an error happens in a package, it's possible to be
312+
// because it was compiled. Thus, we don't want the browser
313+
// debugger to show the original code. Instead, the code
314+
// being evaluated would be much more helpful.
315+
sourceMaps: false,
311316
},
312317
},
313318
],

config/webpack.config.prod.js

+5
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ module.exports = {
342342
]),
343343
// @remove-on-eject-end
344344
highlightCode: true,
345+
// If an error happens in a package, it's possible to be
346+
// because it was compiled. Thus, we don't want the browser
347+
// debugger to show the original code. Instead, the code
348+
// being evaluated would be much more helpful.
349+
sourceMaps: false,
345350
},
346351
},
347352
],

0 commit comments

Comments
 (0)