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) {
1818 'propDecorators' ,
1919 'ctorParameters' ,
2020 'ɵsetClassMetadata' ,
21- 'ɵɵsetNgModuleScope' ,
2221 ] ;
2322
2423 return markers . some ( ( marker ) => content . indexOf ( marker ) !== - 1 ) ;
@@ -313,8 +312,7 @@ function isIvyPrivateCallExpression(exprStmt: ts.ExpressionStatement) {
313312 return false ;
314313 }
315314
316- if ( propAccExpr . name . text != 'ɵsetClassMetadata'
317- && propAccExpr . name . text != 'ɵɵsetNgModuleScope' ) {
315+ if ( propAccExpr . name . text != 'ɵsetClassMetadata' ) {
318316 return false ;
319317 }
320318
Original file line number Diff line number Diff line change @@ -735,20 +735,5 @@ describe('scrub-file', () => {
735735 expect ( testScrubFile ( input ) ) . toBeTruthy ( ) ;
736736 expect ( tags . oneLine `${ transform ( input ) } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
737737 } ) ;
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- } ) ;
753738 } ) ;
754739} ) ;
You can’t perform that action at this time.
0 commit comments