-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ssr): add back references to
esTemplate
and infer types (#…
…4660) * refactor: list all IR nodes explicitly * feat(ssr): implement iterator:* directive * test(ssr): add test for multiple iterator blocks * fix(ssr-for-of): use empty array as default for missing iterator * fix(ssr): update error in for-of directive for invalid value * chore(eslint): don't enforce header in spec files * test(lwc-if): add tests for lwc:if, lwc:elseif, and lwc:else * feat(ssr): handle lwc:elseif * fix(ssr): add comments to lwc:if output * fix(ssr): don't add comments for if:true and if:false * feat(ssr): explicitly disallow lwc:dynamic * fix(ssr): only complain about lwc:dynamic if it gets used * refactor(ssr): update `esTemplate` for better type inferencing * refactor(ssr): update `esTemplate` usage * refactor(ssr): re-use replacement node validation * refactor(ssr): update esTemplates to use back refs * fix(ssr): ensure `esTemplate` type inferences work properly * fix(ssr): add predicate return type * Update packages/@lwc/ssr-compiler/src/estemplate.ts Co-authored-by: Nolan Lawson <[email protected]> * chore(ssr): clean up `isBool` * chore(ssr): clean up types * chore(ssr): clean up `ToReplacementParameters` * chore(ssr): avoid unnecessary conditional --------- Co-authored-by: Nolan Lawson <[email protected]>
- Loading branch information
1 parent
f005927
commit 7802e27
Showing
13 changed files
with
256 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.