Skip to content

Commit 33beb56

Browse files
committed
Remove sourceMappingURL from output (#12)
1 parent 99a6c7a commit 33beb56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function loader(contents) {
190190
sourceMap.sources = [loaderUtils.getRemainingRequest(this)];
191191
sourceMap.file = loaderUtils.getCurrentRequest(this);
192192
sourceMap.sourcesContent = [contents];
193-
contents = output.outputFiles[1].text;
193+
contents = output.outputFiles[1].text.replace(/^\/\/# sourceMappingURL=[^\r\n]*/gm, '');
194194
}
195195
else {
196196
contents = output.outputFiles[0].text;

0 commit comments

Comments
 (0)