Skip to content

Commit ce5c9a7

Browse files
sebmarkbageAndyPengc12
authored andcommitted
Add ignoreList to our source maps (facebook#28310)
All our sources are considered third party and should be hidden in stack traces unless expanded. Our internals aren't actionable anyway. This doesn't really do much without tooling that actually forwards this to new generated source maps, in which case they probably just add them to ignorelist anyway.
1 parent f607b2f commit ce5c9a7

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)