-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(compiler): JIT mode incorrectly interpreting host directive configuration in partial compilation #57002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…guration in partial compilation Fixes that the runtime implementation of `ɵɵngDeclareDirective` was interpreting the `hostDirectives` mapping incorrectly. Instead of treating the inputs/outputs as `['binding', 'alias']` arrays, it was parsing them as `['binding: alias']`. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode. Fixes angular#54096.
| }; | ||
| } | ||
|
|
||
| function convertHostDirectivesToMetadata( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up inlining this function into the two call sites to avoid confusion in the future since we have two different representations of host directives depending on the compilation format.
|
This PR was merged into the repository by commit 9167fc8. The changes were merged into the following branches: main, 18.1.x |
…guration in partial compilation (#57002) Fixes that the runtime implementation of `ɵɵngDeclareDirective` was interpreting the `hostDirectives` mapping incorrectly. Instead of treating the inputs/outputs as `['binding', 'alias']` arrays, it was parsing them as `['binding: alias']`. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode. Fixes #54096. PR Close #57002
…guration in partial compilation (angular#57002) Fixes that the runtime implementation of `ɵɵngDeclareDirective` was interpreting the `hostDirectives` mapping incorrectly. Instead of treating the inputs/outputs as `['binding', 'alias']` arrays, it was parsing them as `['binding: alias']`. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode. Fixes angular#54096. PR Close angular#57002
…guration in partial compilation (#57002) (#57003) Fixes that the runtime implementation of `ɵɵngDeclareDirective` was interpreting the `hostDirectives` mapping incorrectly. Instead of treating the inputs/outputs as `['binding', 'alias']` arrays, it was parsing them as `['binding: alias']`. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode. Fixes #54096. PR Close #57002 PR Close #57003
|
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. |
Fixes that the runtime implementation of
ɵɵngDeclareDirectivewas interpreting thehostDirectivesmapping incorrectly. Instead of treating the inputs/outputs as['binding', 'alias']arrays, it was parsing them as['binding: alias']. This was leading to runtime errors if a user is consuming a partially-compiled library in JIT mode.Fixes #54096.