diff --git a/craco.config.js b/craco.config.js index 4398b2d0ed..5f90400839 100644 --- a/craco.config.js +++ b/craco.config.js @@ -25,10 +25,9 @@ module.exports = { { plugin: { overrideWebpackConfig: ({ webpackConfig }) => { - webpackConfig.devtool = - process.env.REACT_APP_ENV === "dev" - ? "source-map" - : "eval-cheap-module-source-map"; + if (process.env.REACT_APP_ENV === "stage") { + delete webpackConfig.devtool; + } return webpackConfig; },