Repository navigation
refactor(compiler-cli): implement ɵɵngDeclareNgModule and ɵɵngDeclareInjector - #41080
petebacondarwin wants to merge 10 commits into
Conversation
|
|
6fe83e7 to
375883e
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
Reviewed-for: size-tracking
The only file affected by the change from the public-api standpoint: goldens/public-api/core/core.d.ts
(similar to #41022)
jessicajaniuk
left a comment
There was a problem hiding this comment.
Just a couple of nits / questions, but otherwise looks good. LGTM!
reviewed-for: public-api
16e1812 to
2396157
Compare
|
FYI, presubmits are successful for the changes in this PR. Note to Caretaker: GitHub UI and NgBot indicate 3 pending code reviews, but it looks like everyone on that list already reviewed and approved these changes, so this PR should be ready to go. |
…n()` By consistently using the `DefinitionMap` class there is no longer any need for the `mapToMapExpression()` function.
This function is declared in multiple places. The instances inside `compiler` are slightly different to those in `compiler-cli`. So this commit consolidates them into two reusable functions.
…rface All interfaces that extend `R3PartialDeclaration` require a `type` property so it makes sense to put it in the base interface.
These functions are not used so can be removed.
There were a number of almost identical interfaces used in the same way throughout the Render3 compiler code. This commit changes the compiler to use the same interface throughout.
…areInjector` This commit changes the partial compilation so that it outputs declaration calls rather than definition calls for NgModules and Injectors. The JIT compiler and the linker are updated to be able to handle these new declarations.
…ɵngDeclareInjector`
…ɵngDeclareInjector`
d10968b to
34a7d54
Compare
|
There are conflicts with |
|
@petebacondarwin The merge conflicts with |
This function is declared in multiple places. The instances inside `compiler` are slightly different to those in `compiler-cli`. So this commit consolidates them into two reusable functions. PR Close #41080
These functions are not used so can be removed. PR Close #41080
There were a number of almost identical interfaces used in the same way throughout the Render3 compiler code. This commit changes the compiler to use the same interface throughout. PR Close #41080
|
Thanks @jessicajaniuk - since the next PR in the sequence is major-only anyway, and all PRs following that one will only go in major, there is not much benefit in this one landing in patch by itself. So I think we are good. |
|
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. |
This commit changes the partial compilation so that it outputs declaration
calls rather than definition calls for NgModules and Injectors.
The JIT compiler and the linker are updated to be able to handle these
new declarations.
This sits on top of #41022 so only commits after refactor(compiler-cli): implement
ɵɵngDeclareNgModuleandɵɵngDeclareInjectorneed to be considered.Note that this creates a new LinkerOption called
linkerJitMode, which I think needs to be made available ontsconfig.jsonangularCompilerOptions. Open for discussion.