From fb362707162f858a88fe87436ca776e7574b70cc Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 12 Feb 2024 22:22:59 -0500 Subject: [PATCH] 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. --- scripts/rollup/build.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 0a2a584c5a5a7..d6f4155194af3 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -575,6 +575,9 @@ function getPlugins( sourcemapAfterClosure.sources = [preMinifiedFilename]; sourcemapAfterClosure.file = filename; + // All our code is considered "third-party" and should be ignored by default. + sourcemapAfterClosure.ignoreList = [0]; + // We'll write the pre-minified source to disk as a separate file. // Because it sits on disk, there's no need to have it in the `sourcesContent` array. // That also makes the file easier to read, and available for use by scripts.