Skip to content

Commit

Permalink
Disable source maps for node_modules (facebook#5096)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Sep 26, 2018
1 parent 1be75bb commit bfa1433
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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 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 bfa1433

Please sign in to comment.