Skip to content

Commit fb36270

Browse files
committed
Add ignoreList to our source maps
All our sources are considered third party and should be hidden in stack traces unless expanded. Our internals aren't actionable anyway.
1 parent 32df74d commit fb36270

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/rollup/build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,9 @@ function getPlugins(
575575
sourcemapAfterClosure.sources = [preMinifiedFilename];
576576
sourcemapAfterClosure.file = filename;
577577

578+
// All our code is considered "third-party" and should be ignored by default.
579+
sourcemapAfterClosure.ignoreList = [0];
580+
578581
// We'll write the pre-minified source to disk as a separate file.
579582
// Because it sits on disk, there's no need to have it in the `sourcesContent` array.
580583
// That also makes the file easier to read, and available for use by scripts.

0 commit comments

Comments
 (0)