-
Notifications
You must be signed in to change notification settings - Fork 0
Move the package to esm only #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
Conversation
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.
Pull request overview
This PR migrates the vaul package to ESM-only by removing CommonJS (CJS) build support and upgrading the bundler (bunchee) from version 5.x to 6.x.
- Upgrades bunchee from ^5.1.5 to ^6.6.2, which brings ESM-only build capabilities
- Removes CJS exports from package.json, keeping only ESM entry points
- Updates lock file with new dependencies for bunchee 6.x (nanospinner, tinyglobby) and removes ora-related dependencies
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/vaul/package.json | Updates package configuration to ESM-only by removing module, require exports, and CJS-related configuration; upgrades bunchee to 6.6.2 |
| pnpm-lock.yaml | Updates dependency tree with bunchee 6.6.2 and its new dependencies (@rollup/[email protected], nanospinner), removes ora and related packages |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Closing for now, as we don't want breaking changes in the first release |
This PR stops compiling the package to CJS. This was meant to be in 2.0 of #5, however, it's far easier to implement as ESM only than figuring how how to implement react-compiler with bunchee.