Skip to content

Commit

Permalink
make sure srcURLs are truthy
Browse files Browse the repository at this point in the history
We ran across a case where `''` ended up in the `urls` array. I don't believe this is a fix for this issue, more of a workaround. See ember-cli#232 for more details.
  • Loading branch information
meirish authored Jul 10, 2020
1 parent 34264d5 commit 0395cb1
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 0395cb1

Please sign in to comment.