Skip to content

Commit

Permalink
Merge pull request #2304 from daostack/feature/CW-2299-sorce-map-config
Browse files Browse the repository at this point in the history
Enable source mapping in production #2299
  • Loading branch information
budnik9 authored Nov 8, 2023
2 parents f65cf5c + 8a66bb6 commit 36c411b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,17 @@ module.exports = {
tsConfigPath: "./tsconfig.paths.json",
},
},
{
plugin: {
overrideWebpackConfig: ({ webpackConfig }) => {
webpackConfig.devtool =
process.env.REACT_APP_ENV === "dev"
? "source-map"
: "eval-cheap-module-source-map";

return webpackConfig;
},
},
},
],
};

0 comments on commit 36c411b

Please sign in to comment.