File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
packages/angular_devkit/build_optimizer/src/transforms Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ export function testScrubFile(content: string) {
18
18
'propDecorators' ,
19
19
'ctorParameters' ,
20
20
'ɵsetClassMetadata' ,
21
- 'ɵɵsetNgModuleScope' ,
22
21
] ;
23
22
24
23
return markers . some ( ( marker ) => content . indexOf ( marker ) !== - 1 ) ;
@@ -313,8 +312,7 @@ function isIvyPrivateCallExpression(exprStmt: ts.ExpressionStatement) {
313
312
return false ;
314
313
}
315
314
316
- if ( propAccExpr . name . text != 'ɵsetClassMetadata'
317
- && propAccExpr . name . text != 'ɵɵsetNgModuleScope' ) {
315
+ if ( propAccExpr . name . text != 'ɵsetClassMetadata' ) {
318
316
return false ;
319
317
}
320
318
Original file line number Diff line number Diff line change @@ -735,20 +735,5 @@ describe('scrub-file', () => {
735
735
expect ( testScrubFile ( input ) ) . toBeTruthy ( ) ;
736
736
expect ( tags . oneLine `${ transform ( input ) } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
737
737
} ) ;
738
-
739
- it ( 'removes ɵɵsetNgModuleScope call' , ( ) => {
740
- const output = tags . stripIndent `
741
- import { CommonModule } from '@angular/common';
742
- import * as i0 from "@angular/core";
743
- ${ clazz }
744
- ` ;
745
- const input = tags . stripIndent `
746
- ${ output }
747
- /*@__PURE__*/ i0.ɵɵsetNgModuleScope(Clazz, { declarations: [], imports: [CommonModule] });
748
- ` ;
749
-
750
- expect ( testScrubFile ( input ) ) . toBeTruthy ( ) ;
751
- expect ( tags . oneLine `${ transform ( input ) } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
752
- } ) ;
753
738
} ) ;
754
739
} ) ;
You can’t perform that action at this time.
0 commit comments