diff --git a/packages/ngtools/webpack/src/angular_compiler_plugin.ts b/packages/ngtools/webpack/src/angular_compiler_plugin.ts index 67a26cf8d66d..37f687df5c84 100644 --- a/packages/ngtools/webpack/src/angular_compiler_plugin.ts +++ b/packages/ngtools/webpack/src/angular_compiler_plugin.ts @@ -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; }