-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
exports
changed between 4.6.0
and 4.7.0
#321
Comments
🎉 This issue has been resolved in version 4.7.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
https://unpkg.com/browse/rollup-plugin-esbuild@4.7.2/dist/index.js |
you should just use |
// Annotate the CommonJS export names for ESM import in node:
0 &&
(module.exports = {
minify,
}) Sorry, I just noticed The generated codes are a bit strange. 🤣 |
https://unpkg.com/browse/rollup-plugin-esbuild@4.7.0/dist/index.js
However, the above codes will just error after upgrading to
4.7.0
, I don't know how to write correct codes with native ESM and TypeScript at the same time now. :(Maybe it's time to publish this package as cjs/esm both.
The text was updated successfully, but these errors were encountered: