Skip to content
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

chore(rollup): migrate commonjs to esmodule #2939

Closed
wants to merge 9 commits into from

Conversation

sukvvon
Copy link
Contributor

@sukvvon sukvvon commented Jan 6, 2025

Summary

  • LIke eslint.config.mjs, migrate rollup.config.js to rollup.config.mjs

Check List

  • pnpm run fix:format for formatting code and docs

Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zustand-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 4:21am

Copy link

codesandbox-ci bot commented Jan 6, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

pkg-pr-new bot commented Jan 6, 2025

Open in Stackblitzdemostarter

npm i https://pkg.pr.new/zustand@2939

commit: 89173fb

rollup.config.mjs Outdated Show resolved Hide resolved
@dai-shi
Copy link
Member

dai-shi commented Jan 6, 2025

we should make sure that the resulting dist doesn't change a single byte with this change.

@sukvvon
Copy link
Contributor Author

sukvvon commented Jan 6, 2025

@dai-shi

we should make sure that the resulting dist doesn't change a single byte with this change.

Based on my observation, the size of the dist folder has not changed. The previous dist and the current dist code are identical.

Do you know a reliable way to accurately check the size of the dist folder?

@dai-shi
Copy link
Member

dai-shi commented Jan 7, 2025

Do you know a reliable way to accurately check the size of the dist folder?

Checking size in't enough. diff -r should do.

@sukvvon
Copy link
Contributor Author

sukvvon commented Jan 7, 2025

@dai-shi

Do you know a reliable way to accurately check the size of the dist folder?

Checking size in't enough. diff -r should do.

diff -r before_dist after_dist

I executed the above command and confirmed that there are no changes.

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Let's do the same for valtio and jotai.

rollup.config.mjs Outdated Show resolved Hide resolved
@dai-shi
Copy link
Member

dai-shi commented Jan 7, 2025

@sukvvon Reusing a PR is better than closing and reopening it. Hope you find out the way next time.

@sukvvon
Copy link
Contributor Author

sukvvon commented Jan 8, 2025

@dai-shi

@sukvvon Reusing a PR is better than closing and reopening it. Hope you find out the way next time.

It was my mistake. When i saw this page, Merge button was disabled, so i thought it's hard to merge main into this branch, but after i saw it in my editor, i realize it's not. I will do better next time.

@sukvvon sukvvon deleted the chore/cjs-to-esm-rollup branch January 8, 2025 01:28
@sukvvon
Copy link
Contributor Author

sukvvon commented Jan 8, 2025

@dai-shi Thanks your advice. 🙇🏻‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants