Skip to content

Commit 2d6e82f

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

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

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export default custom<AngularCustomOptions>(() => {
101101
config(configuration, { customOptions }) {
102102
return {
103103
...configuration.options,
104+
// Workaround for https://github.com/babel/babel-loader/pull/896 is available
105+
// Delete once the above PR is released
106+
inputSourceMap: (configuration.options.inputSourceMap || false as {}), // Typings are not correct
104107
presets: [
105108
...(configuration.options.presets || []),
106109
[

0 commit comments

Comments
 (0)