From 1756937a8370bdcc2f32fbdd03dec99d5a992e41 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 25 Apr 2022 08:56:15 +0100 Subject: [PATCH] feat: always generate and release sourcemaps We might aswell. It'll be nice for people who use devtools, and I don't mind this code becoming open source at some point --- client/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/config/webpack.config.js b/client/config/webpack.config.js index 19c49ad9a..c1d9d6c0b 100644 --- a/client/config/webpack.config.js +++ b/client/config/webpack.config.js @@ -30,7 +30,7 @@ const postcssNormalize = require("postcss-normalize"); const appPackageJson = require(paths.appPackageJson); // Source maps are resource heavy and can cause out of memory issue for large source files. -const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== "false" && process.env.NODE_ENV !== "production"; +const shouldUseSourceMap = true; // process.env.GENERATE_SOURCEMAP !== "false" && process.env.NODE_ENV !== "production"; // Some apps do not need the benefits of saving a web request, so not inlining the chunk // makes for a smoother build process. const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK !== "false";