Skip to content

Comments

fix(react): preserve first-line leading whitespace with entity JSX text#11557

Closed
kdy1 wants to merge 1 commit intomainfrom
codex/fix-11541-jsx-whitespace
Closed

fix(react): preserve first-line leading whitespace with entity JSX text#11557
kdy1 wants to merge 1 commit intomainfrom
codex/fix-11541-jsx-whitespace

Conversation

@kdy1
Copy link
Member

@kdy1 kdy1 commented Feb 18, 2026

Summary\n- preserve first-line leading whitespace in entity-aware JSX text handling\n- keep existing trimming behavior for non-first lines\n- add fixtures for issue #11541 (single-line and multiline regression cases)\n\n## Testing\n- cargo test -p swc_ecma_transforms_react issue_11541 -- --ignored\n\nFixes #11541

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

⚠️ No Changeset found

Latest commit: cc2444d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@github-actions
Copy link
Contributor

Binary Sizes

File Size
swc.linux-x64-gnu.node 28M (28573896 bytes)

Commit: 79fbcfd

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 18, 2026

Merging this PR will not alter performance

✅ 184 untouched benchmarks


Comparing codex/fix-11541-jsx-whitespace (cc2444d) with main (366a16b)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (40bbdd2) during the generation of this report, so 366a16b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@kdy1 kdy1 closed this Feb 19, 2026
@kdy1 kdy1 deleted the codex/fix-11541-jsx-whitespace branch February 19, 2026 04:24
@github-actions github-actions bot modified the milestones: Planned, 1.15.13 Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant