Skip to content

Commit bd5c279

Browse files
committed
perf(@angular-devkit/build-angular): enforce Babel not to load sourcemaps from file
Workaround for babel/babel-loader#896 (cherry picked from commit 2d6e82f)
1 parent 3d6ad81 commit bd5c279

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ export default custom<AngularCustomOptions>(() => {
136136
config(configuration, { customOptions }) {
137137
return {
138138
...configuration.options,
139+
// Workaround for https://github.com/babel/babel-loader/pull/896 is available
140+
// Delete once the above PR is released
141+
inputSourceMap: (configuration.options.inputSourceMap || false as {}), // Typings are not correct
139142
presets: [
140143
...(configuration.options.presets || []),
141144
[

0 commit comments

Comments
 (0)