Skip to content

Commit

Permalink
Merge pull request #2313 from daostack/revert-2312-feature/CW-2299-di…
Browse files Browse the repository at this point in the history
…sable-sorce-mapping

Revert "Disable source mapping in staging"
  • Loading branch information
andreymikhadyuk authored Nov 14, 2023
2 parents 701c4e9 + f610309 commit e84028a
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 e84028a

Please sign in to comment.