Skip to content

Commit

Permalink
Disable source maps for node_modules (#5096)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Sep 26, 2018
1 parent adfb20c commit 969fb37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ module.exports = {
]),
// @remove-on-eject-end
highlightCode: true,
// If an error happens in a package, it's possible to be
// because it was compiled. Thus, we don't want the browser
// debugger to show the original code. Instead, the code
// being evaluated would be much more helpful.
sourceMaps: false,
},
},
],
Expand Down
5 changes: 5 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ module.exports = {
]),
// @remove-on-eject-end
highlightCode: true,
// If an error happens in a package, it's possible to be
// because it was compiled. Thus, we don't want the browser
// debugger to show the original code. Instead, the code
// being evaluated would be much more helpful.
sourceMaps: false,
},
},
],
Expand Down

0 comments on commit 969fb37

Please sign in to comment.