Open oscarotero opened 11 months ago
It was closed and that says it was intentional and why?
@codesculpture apparently this is an unfortunate scenario in react-jsx where it will do the old transform in addition to the new one https://github.com/swc-project/swc/issues/8215#issuecomment-1792911872
We'll have to handle it in Deno.
Opened https://github.com/swc-project/swc/issues/8230 -- going to work on this there.
@dsherret can this issue be closed now?
Its not related to here technically, but also not solved yet.
@bartlomieju no, the issue in swc is still open.
I have the following configuration:
And this code:
When I run it, I get the following error:
If I change the order of the properties (
key
first) it works fine:It works fine also with other properties names that are not
key
:or after removing the object destructuring:
In summary, JSX seems to fail if there's a destructuring assignment syntax before the
key
property. A very weird error.