Skip to content

Commit

Permalink
Revert "Disable source mapping in staging"
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk authored Nov 14, 2023
1 parent 701c4e9 commit f610309
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ module.exports = {
{
plugin: {
overrideWebpackConfig: ({ webpackConfig }) => {
if (process.env.REACT_APP_ENV === "stage") {
delete webpackConfig.devtool;
}
webpackConfig.devtool =
process.env.REACT_APP_ENV === "dev"
? "source-map"
: "eval-cheap-module-source-map";

return webpackConfig;
},
Expand Down

0 comments on commit f610309

Please sign in to comment.