From 7f1ec93d35d4d7066c54bc0c4a162afc317b13f8 Mon Sep 17 00:00:00 2001 From: David Proft Date: Tue, 17 Oct 2023 10:55:12 -0500 Subject: [PATCH] make sure srcURLs are truthy. see https://github.com/meirish/broccoli-uglify-sourcemap/commit/0395cb1097ff5b90d77b6a1daf68ece96cd8be47 --- lib/get-sourcemap-content.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/get-sourcemap-content.js b/lib/get-sourcemap-content.js index 102c676..6eefdce 100644 --- a/lib/get-sourcemap-content.js +++ b/lib/get-sourcemap-content.js @@ -11,6 +11,7 @@ module.exports = function getSourceMapContent(src, inFileDirname, relativePath, urls.push(matchedUrl); src = srcURL.removeFrom(src); } + urls = urls.filter(Boolean); if (urls.length) { for (let i = urls.length - 1; i >= 0; --i) { let sourceMapPath = path.join(inFileDirname, urls[i]);