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

fix(vite): revert vite-plugin-commonjs upgrade #8279

Merged
merged 5 commits into from
May 10, 2023

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented May 10, 2023

@jtoar jtoar added the release:fix This PR is a fix label May 10, 2023
@jtoar jtoar changed the title fix: import default from commonjs plugin fix(vite): import default from vite-plugin-commonjs May 10, 2023
@dac09
Copy link
Contributor

dac09 commented May 10, 2023

This probably happened because the commonjs plugin switched to ESM only (or changed their exports field) - let me double check when it was updated and what changed!

@jtoar
Copy link
Contributor Author

jtoar commented May 10, 2023

@dac09 yeah something like that for sure! I Just a miss on my part as I merged the upgrade in for v5.1.0, so this is an as-of-today bug. Can't find the commit, but inspecting the dist between vite-plugin-commonjs 0.6.2 and 0.7.0, I see:

0.6.2

image

0.7.0

image

packages/vite/src/index.ts Outdated Show resolved Hide resolved
@jtoar jtoar added this to the next-release-patch milestone May 10, 2023
This reverts commit 3c2b22b.
@jtoar jtoar merged commit 2a2e9cb into main May 10, 2023
@jtoar jtoar deleted the ds-vite/fix-commonjs-plugin-import branch May 10, 2023 05:09
@jtoar jtoar changed the title fix(vite): import default from vite-plugin-commonjs fix(vite): revert vite-plugin-commonjs upgrade May 10, 2023
jtoar added a commit that referenced this pull request May 10, 2023
* fix: import default from commonjs plugin

* prefer import

* style: remove comment

* downgrade vite-plugin-commonjs

* Revert most changes

This reverts commit 3c2b22b.
@jtoar jtoar modified the milestones: next-release-patch, v5.1.2 May 10, 2023
jtoar added a commit that referenced this pull request May 10, 2023
* fix: import default from commonjs plugin

* prefer import

* style: remove comment

* downgrade vite-plugin-commonjs

* Revert most changes

This reverts commit 3c2b22b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants