Skip to content

Commit

Permalink
make sure srcURLs are truthy. see meirish@0395cb1
Browse files Browse the repository at this point in the history
  • Loading branch information
dproft committed Oct 17, 2023
1 parent 8e5decf commit 7f1ec93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/get-sourcemap-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 7f1ec93

Please sign in to comment.