Explorar o código

Fixes #1305: avoid pointing to missing source maps

Alex Dima %!s(int64=5) %!d(string=hai) anos
pai
achega
d3fdf3bfc7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      gulpfile.js

+ 2 - 0
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);
 		}))