Skip to content
Permalink
Browse files

fix(cli-bundler): avoid passing empty source map to concat-with-sourc…

…emaps

closes #1157
  • Loading branch information
3cp committed Dec 9, 2019
1 parent be2430a commit 160a817a75b4a56322f9a606fe9a5fce76aee0d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/build/bundle.js
@@ -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
);
}

0 comments on commit 160a817

Please sign in to comment.
You can’t perform that action at this time.