-
Notifications
You must be signed in to change notification settings - Fork 380
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
fix: JSX attribute parsing issue when using html entities #1234
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## main #1234 +/- ##
==========================================
- Coverage 81.69% 81.68% -0.02%
==========================================
Files 56 56
Lines 1770 1769 -1
Branches 491 490 -1
==========================================
- Hits 1446 1445 -1
Misses 194 194
Partials 130 130
Continue to review full report at Codecov.
|
@semoal the size testing check failure seems unrelated. |
@semoal let me know if there is anything I can do to land this. |
As far as I see in the tests, now it's impossible to just use:
|
No you can still do that. Note that it is just all the expected output that are updated – not the test input. There should be a <Trans>
<Text>This should work </Text>
</Trans> |
Let me know if there is anything needed before releasing this. Thanks! |
Just released 3.14.0 :) |
* Handle html entities in macro * Update test expectations
I stumbled over that problem while migrating our project from Webpack to Vite (which uses esbuild). Upgrade to 3.17.2 make it work 👍 |
Issue: #1225
#1226 added support for handling quotes in JSX attributes. Turns out there are other cases related to this where the
jsxAttribute
string literal value should be wrapped in anjsxExpressionContainer
:The case here fails in compilers such as ESBuild. This requires updated a lot of test expectations, but the change is not a breaking change.