File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/@ngtools/webpack/src Expand file tree Collapse file tree 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 {
213213 ( _ : any , cb : any ) => cb ( null , this . _lazyRoutes ) ) ;
214214
215215 return callback ( null , result ) ;
216- } ) . catch ( ( err ) => callback ( err ) ) ;
216+ } , ( ) => callback ( null ) )
217+ . catch ( err => callback ( err ) ) ;
217218 } ) ;
218219 } ) ;
219220
@@ -228,9 +229,7 @@ export class AotPlugin implements Tapable {
228229 // Virtual file system.
229230 compiler . resolvers . normal . plugin ( 'resolve' , ( request : any , cb ?: ( err ?: any ) => void ) => {
230231 if ( request . request . match ( / \. t s $ / ) ) {
231- this . done
232- . then ( ( ) => cb ( ) )
233- . catch ( ( err ) => cb ( err ) ) ;
232+ this . done . then ( ( ) => cb ( ) , ( ) => cb ( ) ) ;
234233 } else {
235234 cb ( ) ;
236235 }
@@ -320,6 +319,7 @@ export class AotPlugin implements Tapable {
320319 } )
321320 . then ( ( ) => cb ( ) , ( err : any ) => {
322321 compilation . errors . push ( err ) ;
322+ cb ( ) ;
323323 } ) ;
324324 }
325325}
You can’t perform that action at this time.
0 commit comments