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]);