-
-
Notifications
You must be signed in to change notification settings - Fork 930
Closed
Labels
A-transformerArea - Transformer / TranspilerArea - Transformer / TranspilerC-bugCategory - BugCategory - Bug
Description
According to JSX spec, this is legal syntax: <Foo.bar-qux> (because bar-qux is a valid JSXIdentifier).
Currently Oxc transforms this to _jsx(Foo.bar-qux, {}):
We should transform it to _jsx(Foo["bar-qux"], {}) instead.
NB: Babel just errors out on this input, and SWC gets it wrong the same way we do, so this is not a high priority. But it's probably easier to do it now while we're already making loads of changes to how we handle JSX.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-transformerArea - Transformer / TranspilerArea - Transformer / TranspilerC-bugCategory - BugCategory - Bug
Type
Fields
Give feedbackPriority
None yet