We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b873677 commit 3893653Copy full SHA for 3893653
packages/@ngtools/webpack/src/plugin.ts
@@ -167,8 +167,10 @@ export class AotPlugin implements Tapable {
167
168
if (options.entryModule) {
169
this._entryModule = options.entryModule;
170
- } else if (this._angularCompilerOptions.entryModule) {
171
- this._entryModule = path.resolve(this._basePath, this._angularCompilerOptions.entryModule);
+ } else if ((tsConfig.raw['angularCompilerOptions'] as any)
+ && (tsConfig.raw['angularCompilerOptions'] as any).entryModule) {
172
+ this._entryModule = path.resolve(this._basePath,
173
+ (tsConfig.raw['angularCompilerOptions'] as any).entryModule);
174
}
175
176
// still no _entryModule? => try to resolve from mainPath
0 commit comments