Open
Conversation
Author
|
I've created a branch containing the dist files as well in case someone needs it: https://github.com/BALOTIAS/vite-plugin-vue2/tree/dist
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the peer dependency to Vite 8 and fixes the things that broke along the way.
Breaking Changes
What changed
JSON src custom blocks now work with rolldown
Vite 8 swaps rollup for rolldown under the hood, which is stricter about parsing module content. Raw JSON returned from the
loadhook would blow up with aPARSE_ERROR. Fixed by wrapping JSON src content asexport default <json>before it hits the bundler.Replaced
esnowithtsxesnochokes on Node.js v24 with a module cycle error. Swapped it out fortsxin the post-build script.Upgraded
unbuild(0.7.4 → 3.6.1) and added TypeScript 6The old unbuild shipped its own TypeScript 4.x, which doesn't understand the
"bundler"module resolution needed for Vite 8's package exports. Updated both.tsconfig.json:moduleResolution: "node"→"bundler"Vite 8 only exposes types via
exportsin itspackage.json. The old"node"resolution ignoresexports, so TypeScript couldn't find Vite at all.Vitest
hookTimeoutThe
beforeAllhooks (spin up dev server + launch puppeteer) were hitting the default 10s limit. BumpedhookTimeoutto match the existingtestTimeout: 100000.