Skip to content

Commit 9b43a9c

Browse files
committed
fix(@ngtools/webpack): do not stringify JSON sourcemaps
They dont always get parsed by downstream loaders.
1 parent 40828aa commit 9b43a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ngtools/webpack/src/loader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export function ngcLoader(this: LoaderContext & { _compilation: any }, source: s
578578
sourceMap.sources = sourceMap.sources.map((fileName: string) => {
579579
return path.join(path.dirname(sourceFileName), fileName);
580580
});
581-
result.sourceMap = JSON.stringify(sourceMap);
581+
result.sourceMap = sourceMap;
582582
}
583583

584584
// Manually add the dependencies for TS files.

0 commit comments

Comments
 (0)