Skip to content

Commit b061bb9

Browse files
committed
make type checker happy
1 parent b873677 commit b061bb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@ngtools/webpack/src/plugin.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ export class AotPlugin implements Tapable {
167167

168168
if (options.entryModule) {
169169
this._entryModule = options.entryModule;
170-
} else if (this._angularCompilerOptions.entryModule) {
171-
this._entryModule = path.resolve(this._basePath, this._angularCompilerOptions.entryModule);
170+
} else if ((tsConfig.raw['angularCompilerOptions'] as any)
171+
&& (tsConfig.raw['angularCompilerOptions'] as any).entryModule) {
172+
this._entryModule = path.resolve(this._basePath, (tsConfig.raw['angularCompilerOptions'] as any).entryModule);
172173
}
173174

174175
// still no _entryModule? => try to resolve from mainPath

0 commit comments

Comments
 (0)