Open aelbore opened 3 years ago
react is not the only library/framework that uses jsx, for example atomicojs (https://atomico.gitbook.io/doc/) i want to import source other that react.
jsx
const App = () => { return ( <h1>Hello World</h1> ) }
{ "jsc": { "parser": { "syntax": "ecmascript", "jsx": true }, "transform": { "react": { "pragma": "_jsx", "runtime": "automatic", "importSource": "import {h as _jsx} from 'atomico'" } }, "target": "es2019", "loose": false, "minify": { "compress": false, "mangle": false } }, "module": { "type": "es6" }, "minify": false, "isModule": true }
No response
import {h as _jsx} from 'atomico' const App = ()=>{ return _jsx("h1", { children: "Hello World" }); };
1.2.106
You can already use import sources other than react.
@kdy1 is this applicable to my case? or is there something i missed in the config? i tried importSource but it always add jsx-runtime
Describe the bug
react is not the only library/framework that uses
jsx
, for example atomicojs (https://atomico.gitbook.io/doc/) i want to import source other that react.Input code
Config
Playground link
No response
Expected behavior
Version
1.2.106
Additional context
No response