Skip to content

Commit c9ea477

Browse files
committed
fix(@ngtools/webpack): provide a TS-like path to ngProgram.listLazyRoutes
The webpack plugin was leaking our internal Path abstraction to the Angular compiler via the `ngProgram.listLazyRoutes` call. This Path abstraction is provided by `@angular-devkit/core` and shouldn't leak. Instead a TS-like path should be provided to the Angular program. Fix angular#13531
1 parent d18f89d commit c9ea477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ngtools/webpack/src/angular_compiler_plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export class AngularCompilerPlugin {
454454
});
455455
timeEnd('AngularCompilerPlugin._listLazyRoutesFromProgram.createProgram');
456456

457-
entryRoute = this.entryModule.path + '#' + this.entryModule.className;
457+
entryRoute = workaroundResolve(this.entryModule.path) + '#' + this.entryModule.className;
458458
} else {
459459
ngProgram = this._program as Program;
460460
}

0 commit comments

Comments
 (0)