You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
There are extra
\r\n
s appearing theJSXText
value and raw. That causes the AST mismatch the original source code.Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.6.5&code=H4sIAAAAAAAAA0srzUsuyczPUyhJLS7R0FSo5uVSUChKLSktylPQALEVFGxSMsvsIEwFhcSkZKioPkxY05qXqxYAMvsHs0gAAAA%3D&config=H4sIAAAAAAAAA1WPSw6DMAxE95wi8roLxKKL3qGHiFKDgvKTHaQixN0b8mu7i9%2FMeJxjEAJWVvAQR3qmIUhipD4nwruL8p0IoLKSFekQ4dbUlS8p0oaZnEWAKGnBmEM8jdNYA2C8Z0x4loaxMqudnvffSuVtIGT%2BN15W6RbT86VxqK1g%2FWvLYv1K3AOWC%2B7wNbWyvhg0P1uyrD0%2F0IfHixcBAAA%3D
SWC Info output
No response
Expected behavior
Both value and raw should be
"\n abc\n "
.Here is a screenshot of the AST from https://astexplorer.net/.
Actual behavior
Both value and raw are
"\n\r\n abc\n\r\n "
.Version
1.6.5
Additional context
No response
The text was updated successfully, but these errors were encountered: