Skip to content

Commit

Permalink
Fix source maps in production builds (#28499)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Nov 20, 2024
1 parent 5cdcf44 commit 7329a5f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,10 @@ module.exports = (env, argv) => {
// Embedded source maps for dev builds, can't use eval-source-map due to CSP
development["devtool"] = "inline-source-map";
} 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
// 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.
development["devtool"] = "source-map";
} else {
// High quality source maps in separate .map files which don't include the source
development["devtool"] = "nosources-source-map";
}
// 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
// size that sentry will accept the upload.
development["devtool"] = "source-map";
}

// Resolve the directories for the js-sdk for later use. We resolve these early, so we
Expand Down

0 comments on commit 7329a5f

Please sign in to comment.