File tree 1 file changed +5
-3
lines changed
packages/@ngtools/webpack/src
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,12 @@ export class AotPlugin implements Tapable {
167
167
168
168
if ( options . entryModule ) {
169
169
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 ) ;
172
174
}
173
-
175
+
174
176
// still no _entryModule? => try to resolve from mainPath
175
177
if ( ! this . _entryModule && options . mainPath ) {
176
178
this . _entryModule = resolveEntryModuleFromMain ( options . mainPath , this . _compilerHost ,
You can’t perform that action at this time.
0 commit comments