File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/@ngtools/webpack/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -601,9 +601,9 @@ export class AngularCompilerPlugin implements Tapable {
601
601
// Wait for the plugin to be done when requesting `.ts` files directly (entry points), or
602
602
// when the issuer is a `.ts` or `.ngfactory.js` file.
603
603
compiler . resolvers . normal . plugin ( 'before-resolve' , ( request : any , cb : ( ) => void ) => {
604
- if ( request . request . endsWith ( '.ts' )
605
- || ( request . context . issuer && / \. t s | n g f a c t o r y \. j s $ / . test ( request . context . issuer ) ) ) {
606
- this . done ! . then ( ( ) => cb ( ) , ( ) => cb ( ) ) ;
604
+ if ( this . done && ( request . request . endsWith ( '.ts' )
605
+ || ( request . context . issuer && / \. t s | n g f a c t o r y \. j s $ / . test ( request . context . issuer ) ) ) ) {
606
+ this . done . then ( ( ) => cb ( ) , ( ) => cb ( ) ) ;
607
607
} else {
608
608
cb ( ) ;
609
609
}
You can’t perform that action at this time.
0 commit comments