-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
styled-jsx plugin doesn't handle interpolation braces correctly in some cases #340
Comments
Issue just showed up after upgrading swc. Used to work on very old versions. |
@kdy1 Can you give pointers as to where this fix could be made? It is blocking my team from upgrading, but the general vicinity of the parsing fix is difficult for me to locate |
plugins/packages/styled-jsx/transform/src/transform_css_swc.rs Lines 39 to 45 in 75df607
Those are for lightningcss mode and swc_css mode respectively |
Minimal repro -- color: blue won't be applied. The parser appears to be matching on the
}
in${FontStyle.Headline2}
If I paste in the value of FontStyle.Headline2 directly, it works correctly. OR if I add in extra attributes below like:
Then it also works fine.
FontStyle.Headline2:
The text was updated successfully, but these errors were encountered: