preactjs / wmr

👩‍🚀 The tiny all-in-one development tool for modern web apps.
https://wmr.dev/
MIT License
4.92k stars 109 forks source link

Fix/jsx whitespace #900

Closed rschristian closed 2 years ago

rschristian commented 2 years ago

Fixes #899

Modifies JSXText creation to strip out leading and trailing whitespace if it contains newlines before then replacing any interior whitespace with a space character.

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 69b04968336ca3a3137a286381afe4dc8de2e03b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---- | ----- | | wmr | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

rschristian commented 2 years ago

CI failure is a segfault on prerendering, looks like a recreation of #893 and maybe #896