Repository navigation
Ivy backwards compatible bootstrap - #13382
Conversation
|
Still need angular/angular#27848 to get prod build working correctly. |
|
@IgorMinar, 2 questions please: Should we add |
|
let's try not to turn on factoryShimming and see if we can get away with that without causing too much disruption. It would be better if we avoided factories and left it as a backup option for people that absolutely need them. ivy-ngcc as a postinstall script sounds good. let's try that. |
…ds compatible solution Usage: ``` ng new foo --experimentalIvy ``` Users will need to use `ngcc` so to process code coming from NPM and produce the equivalent Ivy version. This needs to be done once after installing the node packages. ``` node_modules/.bin/ivy-ngcc ``` `ngtsc` compilter will then be used when building using the `--aot` or `--prod` flag. Fixes #13024
Ivy compatible solution still uses the 'standard' bootstrapping code, however the difference is that there are no factories. Using a similar approach for `ngc` but without factories and instead of `bootstrapModuleFactory` it uses `bootstrapModule`.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
feat(@schematics/angular):
experimentalIvyshould generates backwards compatible solutionUsage:
Users will need to use
ngccso to process code coming from NPM and produce the equivalent Ivy version. This needs to be done once after installing the node packages.ngtsccompilter will then be used when building using the--aotor--prodflag.feat(@ngtools/webpack): add support for Ivy compatible solution
Ivy compatible solution still uses the 'standard' bootstrapping code, however the difference is that there are no factories.
Using a similar approach for
ngcbut without factories and instead ofbootstrapModuleFactoryit usesbootstrapModule.More context: #13024 (comment)
TODO check with Framework:
bootstrapModuleis the right approachlistLazyRoutesis not returning anything, - feat(ivy): implement listing lazy routes inngtscangular#27697ivy-ngccas a post install scriptallowEmptyCodegenFilesFixes: #13024