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 11import * as fs from 'fs';
2+ import { getGlobalVariable } from '../../utils/env';
23import { writeFile } from '../../utils/fs';
34import { ng } from '../../utils/process';
45import { updateJsonFile } from '../../utils/project';
56
67
78export default async function() {
9+ if (!(getGlobalVariable('argv')['ve'])) {
10+ // Only applicable to VE. Does not apply to Ivy.
11+ return;
12+ }
13+
814 // Add a lazy module
915 await ng('generate', 'module', 'lazy');
1016 await updateJsonFile('angular.json', workspaceJson => {
Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ if (!argv.ve) {
102102 // Ivy doesn't support i18n externally at the moment.
103103 .filter(name => !name.includes('tests/i18n/'))
104104 .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'))
107105 // We don't have a platform-server usage story yet for Ivy.
108106 // It's contingent on lazy loading and factory shim considerations that are still being
109107 // discussed.
You can’t perform that action at this time.
0 commit comments