Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 42433c9

Browse files
author
Stanislav Panferov
committed
feat(*): ignore null source maps
1 parent 117cee9 commit 42433c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/index.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,11 @@ function compiler(webpack: IWebPack, text: string): void {
423423
}
424424
}
425425

426-
resultSourceMap.sources = [ fileName ];
427-
resultSourceMap.file = fileName;
428-
resultSourceMap.sourcesContent = [ text ];
426+
if (resultSourceMap) {
427+
resultSourceMap.sources = [ fileName ];
428+
resultSourceMap.file = fileName;
429+
resultSourceMap.sourcesContent = [ text ];
430+
}
429431

430432
applyDeps();
431433
isDepsApplied = true;

0 commit comments

Comments
 (0)