-
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.
Replies: 1 comment 2 replies
-
Hi @melvindraaijer |
Beta Was this translation helpful? Give feedback.
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.