Skip to content

Commit bf688ed

Browse files
clydinfilipesilva
authored andcommitted
fix(@ngtools/webpack): clear mapRoot when no sourcemaps
1 parent c1ed5cf commit bf688ed

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export class AngularCompilerPlugin implements Tapable {
213213
this._compilerOptions.sourceRoot = undefined;
214214
this._compilerOptions.inlineSources = undefined;
215215
this._compilerOptions.inlineSourceMap = undefined;
216+
this._compilerOptions.mapRoot = undefined;
216217
}
217218

218219
// Compose Angular Compiler Options.

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

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export class AotPlugin implements Tapable {
199199
this._compilerOptions.sourceRoot = undefined;
200200
this._compilerOptions.inlineSources = undefined;
201201
this._compilerOptions.inlineSourceMap = undefined;
202+
this._compilerOptions.mapRoot = undefined;
202203
}
203204

204205
// Compose Angular Compiler Options.

0 commit comments

Comments
 (0)