From d3fdf3bfc70d7f74561cbfb7ec04d8b34c1a6fff Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 19 Sep 2019 11:12:59 +0200 Subject: [PATCH] Fixes #1305: avoid pointing to missing source maps --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 98c97f7c..ed7ac89b 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); }))