Fix source maps in production builds (#28499)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
renovate/css
Michael Telatynski 2024-11-20 16:28:03 +00:00 committed by GitHub
parent 5cdcf44b6f
commit 7329a5f1fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 9 deletions

View File

@ -106,15 +106,10 @@ module.exports = (env, argv) => {
// Embedded source maps for dev builds, can't use eval-source-map due to CSP // Embedded source maps for dev builds, can't use eval-source-map due to CSP
development["devtool"] = "inline-source-map"; development["devtool"] = "inline-source-map";
} else { } else {
if (process.env.CI_PACKAGE) { // High quality source maps in separate .map files which include the source. This doesn't bulk up the .js
// High quality source maps in separate .map files which include the source. This doesn't bulk up the .js // payload file size, which is nice for performance but also necessary to get the bundle to a small enough
// payload file size, which is nice for performance but also necessary to get the bundle to a small enough // size that sentry will accept the upload.
// size that sentry will accept the upload. development["devtool"] = "source-map";
development["devtool"] = "source-map";
} else {
// High quality source maps in separate .map files which don't include the source
development["devtool"] = "nosources-source-map";
}
} }
// Resolve the directories for the js-sdk for later use. We resolve these early, so we // Resolve the directories for the js-sdk for later use. We resolve these early, so we