add existence check when merging source map - fixes #1111
This commit is contained in:
parent
94f005e324
commit
e26f994075
@ -535,7 +535,9 @@ export default class File {
|
||||
result.code = `${this.shebang}\n${result.code}`;
|
||||
}
|
||||
|
||||
result.map = this.mergeSourceMap(result.map);
|
||||
if (result.map) {
|
||||
result.map = this.mergeSourceMap(result.map);
|
||||
}
|
||||
|
||||
if (opts.sourceMaps === "inline" || opts.sourceMaps === "both") {
|
||||
result.code += "\n" + convertSourceMap.fromObject(result.map).toComment();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user