Skip to content

Commit 3893653

Browse files
committed
make type checker and linter happy
1 parent b873677 commit 3893653

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ 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,
173+
(tsConfig.raw['angularCompilerOptions'] as any).entryModule);
172174
}
173175

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

0 commit comments

Comments
 (0)