Files
Donny/강동윤andGitHub 03e550711a fix(es/jsx): Preserve quoted JSX attribute newlines (#11796)
## Summary
- preserve line terminators in quoted JSX attribute literals instead of
folding them like JSX text
- add parser, React transform, and end-to-end regressions for issue
#11550

## Why
`transform_jsx_attr_str` was normalizing quoted JSX attribute strings
with JSX text whitespace rules, even though the parser already preserved
the original line terminators. That changed `"bruh\nbruh"` into `"bruh
bruh"` and could cause downstream hydration mismatches.

## Impact
Quoted JSX attributes like `data-anything="bruh\nbruh"` now compile to
JS strings that preserve the embedded newline, matching Babel/TypeScript
behavior.



Fixes #11550
2026-04-17 21:36:35 +01:00
..
…
2024-07-05 06:19:35 +00:00
2024-07-05 06:19:35 +00:00