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 {
601601 // Wait for the plugin to be done when requesting `.ts` files directly (entry points), or
602602 // when the issuer is a `.ts` or `.ngfactory.js` file.
603603 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 ( ) ) ;
607607 } else {
608608 cb ( ) ;
609609 }
You can’t perform that action at this time.
0 commit comments