Fixes #1305: avoid pointing to missing source maps

This commit is contained in:
Alex Dima 2019-09-19 11:12:59 +02:00
parent c854d18c35
commit d3fdf3bfc7

View file

@ -317,6 +317,8 @@ function ESM_pluginStream(plugin, destinationPath) {
} }
} }
contents = contents.replace(/\/\/# sourceMappingURL=.*((\r?\n)|$)/g, '');
data.contents = Buffer.from(contents); data.contents = Buffer.from(contents);
this.emit('data', data); this.emit('data', data);
})) }))