-
Notifications
You must be signed in to change notification settings - Fork 47.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiler: fix jsx text attributes with double quotes #29079
compiler: fix jsx text attributes with double quotes #29079
Conversation
ff04156
to
3f0461e
Compare
Comparing: c93c30f...9e82704 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
3f0461e
to
9e82704
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh makes sense, this should be a no-op to jsx transforms that consume compiler output and make tools like playground easier to use.
Seems spec compatible as well as the spec doesn't define escaped characters (looking at esbuild facing the same problem here evanw/esbuild#959)
Fixes #29069 by detecting the presence of double-quotes in JSX attribute strings and falling back to using an expression container.