Skip to content

Commit

Permalink
make type checker and linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tsabirgaliev committed Jan 14, 2017
1 parent b873677 commit 3893653
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@ngtools/webpack/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ export class AotPlugin implements Tapable {

if (options.entryModule) {
this._entryModule = options.entryModule;
} else if (this._angularCompilerOptions.entryModule) {
this._entryModule = path.resolve(this._basePath, this._angularCompilerOptions.entryModule);
} else if ((tsConfig.raw['angularCompilerOptions'] as any)
&& (tsConfig.raw['angularCompilerOptions'] as any).entryModule) {
this._entryModule = path.resolve(this._basePath,
(tsConfig.raw['angularCompilerOptions'] as any).entryModule);
}

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

0 comments on commit 3893653

Please sign in to comment.