1
0
Эх сурвалжийг харах

Fixes #1305: avoid pointing to missing source maps

Alex Dima 5 жил өмнө
parent
commit
d3fdf3bfc7
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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);
 		}))