Skip to content

fix(ssr): fix adjacent text node concatenation#5079

Merged
nolanlawson merged 8 commits intomasterfrom
nolan/adjacent-text-light-dom-slotted
Jan 7, 2025
Merged

fix(ssr): fix adjacent text node concatenation#5079
nolanlawson merged 8 commits intomasterfrom
nolan/adjacent-text-light-dom-slotted

Conversation

@nolanlawson
Copy link
Contributor

Details

Fixes #5078

This does two things:

  • Moves text concatenation from the runtime to the compiler, which makes the generated code more efficient
  • Fixes text concatenation in light DOM slots.

This ended up being a bit tricky due to needing to set the cxt.nextSibling properly during light DOM slotted content generation, but I think it's still pretty clean. Light DOM slots in general may need a cleanup in the future.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

Co-Authored-By: jhefferman-sfdc <83669775+jhefferman-sfdc@users.noreply.github.com>
Co-Authored-By: Will Harney <62956339+wjhsf@users.noreply.github.com>
@nolanlawson nolanlawson merged commit 8274541 into master Jan 7, 2025
8 checks passed
@nolanlawson nolanlawson deleted the nolan/adjacent-text-light-dom-slotted branch January 7, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants