-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix invalid exports by changing package type #16
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I quickly fixed the test issue: since the package is now a module, cjs files must be clearly identified.
Oups, I forgot type:module was not the correct approach.
Apparently, newer version of Next.js pages dir does not support external ESM modules by default
…insights into fix-package-import
Closing in favor of #17 Thanks for the work done! |
📓 What's in there?
Our build output didn't align with what's stated in the
package.json
. This change, makes the ESM file the default, and outputs ".cjs" for CommonJS. tsup docs for reference.This also aligns with how it works in Web Analytics.