Skip to content

Commit f4b8f51

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

+5-3
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ 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
}
173-
175+
174176
// still no _entryModule? => try to resolve from mainPath
175177
if (!this._entryModule && options.mainPath) {
176178
this._entryModule = resolveEntryModuleFromMain(options.mainPath, this._compilerHost,

0 commit comments

Comments
 (0)