Skip to content

Commit 33fd3ee

Browse files
committed
fix(@angular-devkit/build-angular): don't load an input sourcemap from file when using Babel
This ensures that vendor sourcemaps are not loaded from file when they have not been previously loaded via sourcemap-loader. When vendor sourcemap is enabled, `inputSourceMap` is not needed, since the sourcemap is already available and the `sourceMappingURL` comment is removed from source. (cherry picked from commit 9714aa9)
1 parent f6bca53 commit 33fd3ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/babel/webpack-loader.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default custom<AngularCustomOptions>(() => {
6464
compact: false,
6565
cacheCompression: false,
6666
sourceType: 'unambiguous',
67+
inputSourceMap: false,
6768
});
6869

6970
return {

0 commit comments

Comments
 (0)