Skip to content

Commit

Permalink
fix(bundle): continue build in case of incorrect sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVinke committed Jun 27, 2017
1 parent cc65ec9 commit 4988dd6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/build/bundle.js
Expand Up @@ -164,9 +164,14 @@ exports.Bundle = class {

let parsedPath = path.parse(file.path);

let base64SourceMap = Convert.fromSource(file.contents.toString());
try {
let base64SourceMap = Convert.fromSource(file.contents.toString());

if (base64SourceMap) {
if (base64SourceMap) {
return null;
}
} catch (error) {
// we don't want the build to fail when a sourcemap file can't be parsed
return null;
}

Expand Down

0 comments on commit 4988dd6

Please sign in to comment.