Skip to content

Commit

Permalink
fix(@ngtools/webpack): provide a TS-like path to ngProgram.listLazyRo…
Browse files Browse the repository at this point in the history
…utes

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 #13531
  • Loading branch information
filipesilva authored and hansl committed Jan 30, 2019
1 parent f0807c0 commit 08e2483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/angular_compiler_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class AngularCompilerPlugin {
});
timeEnd('AngularCompilerPlugin._listLazyRoutesFromProgram.createProgram');

entryRoute = this.entryModule.path + '#' + this.entryModule.className;
entryRoute = workaroundResolve(this.entryModule.path) + '#' + this.entryModule.className;
} else {
ngProgram = this._program as Program;
}
Expand Down

0 comments on commit 08e2483

Please sign in to comment.