-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsx transform doesn't work #61
Comments
this has fixed in rc.12 |
if you set jsx mode as |
I will try it with rc.12. |
rc.12 is not exists in npmjs. how to install this version? |
i installed rc.12 but It is still not working . |
Hmm let me take a look. |
I guess it is because of tree-shaking. Can you try again with actually exporting to your module tree? |
it is old version compile. |
I also found other error. TypeError: Cannot read properties of undefined (reading 'toLowerCase')
@react-elf/shared:build: at result2tsconfig (file:///Users/user/github/test/react-elf/node_modules/tsconfck/dist/index.js:675:83)
@react-elf/shared:build: at parseFile2 (file:///Users/user/github/test/react-elf/node_modules/tsconfck/dist/index.js:622:15)
@react-elf/shared:build: at parseNative (file:///Users/user/github/test/react-elf/node_modules/tsconfck/dist/index.js:588:20)
@react-elf/shared:build: at async it (file:///Users/user/github/test/react-elf/node_modules/nanobundle/bin.min.mjs:151:104) |
Yeah, it's caused by upstream 😅 I've already submitted PR to fix that dominikg/tsconfck#73 |
So does it means you want to use the new jsxFactory ( |
I want it to be built in the form of React.createElement function. Existing esbuild worked like that. This worked similarly to vite, so I thought I could use it as it is. |
Ah my fault, compiles are belong to |
I will publish it as rc.13 soon |
rc.13 is just published |
good. i will test it . |
Oh it works fine. The compilation result is good. const buttonContent = /* @__PURE__ */ React.createElement("span", null, children || ""); |
We are building with the latest version.
The jsx syntax in the tsx file is expressed as it is without being built.
Is there no way?
The expected expression is:
Both cjs and mjs are the same.
jsx syntax doesn't compile.
The text was updated successfully, but these errors were encountered: