-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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(deps): update dependency @rollup/plugin-commonjs to v22 #7894
Conversation
@NMinhNguyen Are you still working on this PR? |
Not actively, no, sorry. Feel free to pick up where I left off |
Thanks for the quick reply. It seems we need to follow the advice given here to make it all work again, but I'm completely unfamiliar with this area of the codebase so I'd have a difficult time taking this on. |
Interesting, test-serve works fine locally for me. This should fix the build errors 8b43995 |
@fwouts did you have other fixes for the serve tests that aren't in that branch? The one there doesn't seem to make a difference. It is strange, maybe this is something with the rollup version? The commonjs plugin shouldn't affect serve. |
Here's my old PR attempt, I think it might be this particular line: https://github.com/vitejs/vite/pull/7892/files#diff-5ac5675edd621a639999ba602b8795d985ca4bc7c9098473e6692d04e34291d9 Sorry I don't have much time to dive deeper into this for the next couple of weeks! |
I don't think that change is ok @fwouts, as it will catch empty code too |
@bluwy was proposing we may want to look into using esbuild during build for CJS, as it was proposed also by Evan before |
I do agree this is the better solution in the longer term. We'll be much less likely to see build-specific issues. If this could be tackled for Vite 3, it would be amazing! |
I've add a commit which excludes Also when I don't set |
Testing appreciated 😉 |
Closing as #8743 was merged. |
Description
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).