How to set babel config options for internal jsx compiler? #21200
-
I want to compile "compilerOptions": {
"jsx":"react-jsx",
"jsxImportSource": "npm:preact"
}, I get the following error message, when trying to compile:
But unfortunately I didn't figured how to set the throwIfNamespace option. :/ |
Beta Was this translation helpful? Give feedback.
Answered by
kazunetakeda25
Nov 14, 2023
Replies: 1 comment 2 replies
-
Hi @melvindraaijer |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
0xazuki7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @melvindraaijer
This appears to be an option in swc, I think namespaces should be allowed by default, as this behaviour is also inconsistent with TypeScript.
Here is open PR for a workround:
denoland/deno_ast#155
It was approved and merged to main branch already.