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

Tech: bundle @vitejs/plugin-vue in #20343

Merged
merged 6 commits into from
Jan 9, 2023
Merged

Conversation

ndelangen
Copy link
Member

Issue: vitejs/plugin-vue has an exact dep on vite4, when we try to make it vite3 compatible. It IS actually compatible, but the version range said it is not.

What I did

I bundled the package in, therefore the dependency disappears and can also not give a unsatisfied peerDependency warning in pnpm

@ndelangen ndelangen self-assigned this Dec 20, 2022
@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Dec 20, 2022
@ndelangen ndelangen requested a review from IanVS December 20, 2022 14:46
@ndelangen ndelangen changed the title bundle @vitejs/plugin-vue in Tech: bundle @vitejs/plugin-vue in Dec 20, 2022
code/frameworks/vue3-vite/src/preset.ts Outdated Show resolved Hide resolved
"externals": [
"util",
"tty",
"path"
Copy link
Member

Choose a reason for hiding this comment

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

Why do these need to be listed as externals now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question.. I do not remember 2 weeks later..
I think something relating to the package being bundled in using this, but them being node-internals?

scripts/prepare/bundle.ts Outdated Show resolved Hide resolved
@ndelangen ndelangen merged commit fdb8cf8 into next Jan 9, 2023
@ndelangen ndelangen deleted the norbert/bundle-vitejs-plugin-vue branch January 9, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants