-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Switch to ESM only #84
Comments
Hey @yandeu, I tried setting up a project with SSR and To reduce entry point size, I'd like to import every export from I thought when pointing to Is it actually possible to already use the |
It is ready. But I believe Webpack can't bundle Node.js modules yet. So you can't use it Isomorphic. At least I failed setting it up. To use it on the server you can use the |
Oki, I didn't use Webpack, I used Vite with vite-plugin-ssr which is using ESBuild to compile Typescript. I gonna read the docs again and see if I can get it working. |
I finally got a working example :) |
Nice, thanks. I also tried but couldn't get it working. Will you remove cjs support in the future? |
In the future, I will make esm the default. But I will still ship both. |
Is this something we may use already? |
Yes |
Make nanojsx esm only and drop cjs completely.
The text was updated successfully, but these errors were encountered: