The use of createElement creates a bit of complication in Deno because then we need to analyze the code to tell if the createElement entrypoint is used in various cases. Since this scenario has never worked in Deno and the scenario is being deprecated everywhere, we'd like to just not transform with createElement ever.
Describe the feature
Background: https://github.com/swc-project/swc/issues/8215
The use of
createElement
creates a bit of complication in Deno because then we need to analyze the code to tell if thecreateElement
entrypoint is used in various cases. Since this scenario has never worked in Deno and the scenario is being deprecated everywhere, we'd like to just not transform withcreateElement
ever.There is this comment here, which suggests that
createElement
won't be used in the transform in the future: https://github.com/swc-project/swc/blob/f2c1da891b9263c560f6475b41b1d5d100144691/crates/swc_ecma_transforms_react/src/jsx/static_check.rs#L3-L7Would you accept a PR to add an option to not transform with createElement and always use the automatic jsx transform?
Babel plugin or link to the feature description
No response
Additional context
No response