diff --git a/gulpfile.js b/gulpfile.js index 98c97f7cfd..ed7ac89be6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -317,6 +317,8 @@ function ESM_pluginStream(plugin, destinationPath) { } } + contents = contents.replace(/\/\/# sourceMappingURL=.*((\r?\n)|$)/g, ''); + data.contents = Buffer.from(contents); this.emit('data', data); }))