Skip to content

Commit

Permalink
fix(cli-bundler): avoid passing empty source map to concat-with-sourc…
Browse files Browse the repository at this point in the history
…emaps

closes #1157
  • Loading branch information
3cp committed Dec 9, 2019
1 parent be2430a commit 578bec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ exports.Bundle = class {
concat.add(
currentFile.path ? path.relative(process.cwd(), currentFile.path) : null,
content,
sourceMap ? JSON.stringify(sourceMap) : undefined
sourceMap && sourceMap.sources.length ? JSON.stringify(sourceMap) : undefined
);
}

Expand Down

0 comments on commit 578bec4

Please sign in to comment.