-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Support ES modules #68
Comments
Will it also be possible to make it generate .js for ESM and .cjs for CJS? so we can use EDIT: as suggested, we can check for |
I've released v3.0, now it uses esbuild to bundle your code so there's currently no way to change output extension, see https://github.com/egoist/tsup#bundle-formats |
Hope this can be resolved: evanw/esbuild#281 |
🎉 This issue has been resolved in version 3.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Node.js has native esm support now, it makes sense to generate an additional
.mjs
bundle.So by using
--esm
you will have two bundled files,index.js
andindex.mjs
The text was updated successfully, but these errors were encountered: