-
Notifications
You must be signed in to change notification settings - Fork 143
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
Support JSX xml-namespaced attributes #841
Comments
Looking at the generated tokens, <span foo:hi='bar'></span> produces
So a quick fix would just be to run through tokens, and when you find |
So far, this needs JSXTransformer.ts to have this inserted at line 420: } else if (this.tokens.matches4(tt.jsxName, tt.colon, tt.name, tt.eq)) { Still not sure what to put in there though. I tried adding the two strings, and the linter said string concatenation is bad, so... |
Actually the tokenizer would probably be a better place. |
Never mind, switched to @swc/core and the issue is fixed with equivalent runtime performance. |
Specifically, allow transforming:
The text was updated successfully, but these errors were encountered: