angular/packages/core/schematics/collection.json
Alan Agius 3896f86865 refactor(migrations): switch from esbuild to Rollup for schematics bundling (#57602)
Replaces esbuild with Rollup for bundling schematics to support code splitting, as esbuild does not handle code splitting when targeting CommonJS modules.

**Before:**
```
du -sh dist/bin/packages/core/npm_package/schematics
7.7M    dist/bin/packages/core/npm_package/schematics
```

**After:**
```
du -sh dist/bin/packages/core/npm_package/schematics
3.1M    dist/bin/packages/core/npm_package/schematics
```

PR Close #57602
2024-09-03 09:07:03 -07:00

28 lines
1.2 KiB
JSON

{
"schematics": {
"standalone-migration": {
"description": "Converts the entire application or a part of it to standalone",
"factory": "./bundles/standalone-migration#migrate",
"schema": "./ng-generate/standalone-migration/schema.json",
"aliases": ["standalone"]
},
"control-flow-migration": {
"description": "Converts the entire application to block control flow syntax",
"factory": "./bundles/control-flow-migration#migrate",
"schema": "./ng-generate/control-flow-migration/schema.json",
"aliases": ["control-flow"]
},
"inject-migration": {
"description": "Converts usages of constructor-based injection to the inject() function",
"factory": "./bundles/inject-migration#migrate",
"schema": "./ng-generate/inject-migration/schema.json",
"aliases": ["inject"]
},
"route-lazy-loading-migration": {
"description": "Updates route definitions to use lazy-loading of components instead of eagerly referencing them",
"factory": "./bundles/route-lazy-loading#migrate",
"schema": "./ng-generate/route-lazy-loading/schema.json",
"aliases": ["route-lazy-loading"]
}
}
}