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
This commit is contained in:
zkldi
2022-04-25 08:56:16 +01:00
parent 96fc20349b
commit 1756937a83
+1 -1
View File
@@ -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";