File tree 1 file changed +4
-4
lines changed
packages/@ngtools/webpack/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,8 @@ export class AotPlugin implements Tapable {
213
213
( _ : any , cb : any ) => cb ( null , this . _lazyRoutes ) ) ;
214
214
215
215
return callback ( null , result ) ;
216
- } ) . catch ( ( err ) => callback ( err ) ) ;
216
+ } , ( ) => callback ( null ) )
217
+ . catch ( err => callback ( err ) ) ;
217
218
} ) ;
218
219
} ) ;
219
220
@@ -228,9 +229,7 @@ export class AotPlugin implements Tapable {
228
229
// Virtual file system.
229
230
compiler . resolvers . normal . plugin ( 'resolve' , ( request : any , cb ?: ( err ?: any ) => void ) => {
230
231
if ( request . request . match ( / \. t s $ / ) ) {
231
- this . done
232
- . then ( ( ) => cb ( ) )
233
- . catch ( ( err ) => cb ( err ) ) ;
232
+ this . done . then ( ( ) => cb ( ) , ( ) => cb ( ) ) ;
234
233
} else {
235
234
cb ( ) ;
236
235
}
@@ -320,6 +319,7 @@ export class AotPlugin implements Tapable {
320
319
} )
321
320
. then ( ( ) => cb ( ) , ( err : any ) => {
322
321
compilation . errors . push ( err ) ;
322
+ cb ( ) ;
323
323
} ) ;
324
324
}
325
325
}
You can’t perform that action at this time.
0 commit comments