We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b873677 commit b061bb9Copy full SHA for b061bb9
packages/@ngtools/webpack/src/plugin.ts
@@ -167,8 +167,9 @@ 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, (tsConfig.raw['angularCompilerOptions'] as any).entryModule);
173
}
174
175
// still no _entryModule? => try to resolve from mainPath
0 commit comments