File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs' ;
2
+ import { getGlobalVariable } from '../../utils/env' ;
2
3
import { writeFile } from '../../utils/fs' ;
3
4
import { ng } from '../../utils/process' ;
4
5
import { updateJsonFile } from '../../utils/project' ;
5
6
6
7
7
8
export default async function ( ) {
9
+ if ( ! ( getGlobalVariable ( 'argv' ) [ 've' ] ) ) {
10
+ // Only applicable to VE. Does not apply to Ivy.
11
+ return ;
12
+ }
13
+
8
14
// Add a lazy module
9
15
await ng ( 'generate' , 'module' , 'lazy' ) ;
10
16
await updateJsonFile ( 'angular.json' , workspaceJson => {
Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ if (!argv.ve) {
102
102
// Ivy doesn't support i18n externally at the moment.
103
103
. filter ( name => ! name . includes ( 'tests/i18n/' ) )
104
104
. filter ( name => ! name . endsWith ( 'tests/build/aot/aot-i18n.ts' ) )
105
- // The additional lazy modules array does not work with Ivy because it's not needed.
106
- . filter ( name => ! name . endsWith ( 'tests/build/dynamic-import.ts' ) )
107
105
// We don't have a platform-server usage story yet for Ivy.
108
106
// It's contingent on lazy loading and factory shim considerations that are still being
109
107
// discussed.
You can’t perform that action at this time.
0 commit comments