chore(templates): upgrade all remaining templates to Vite 8#5386
chore(templates): upgrade all remaining templates to Vite 8#5386leaanthony merged 3 commits intomasterfrom
Conversation
Bumps vite from ^5.x to ^8.0.0 across all non-Svelte templates. Also bumps framework-specific plugins that require a major version update to remain compatible with Vite 8: | Plugin | Old | New | |--------|-----|-----| | @vitejs/plugin-react | ^4.2.1 | ^6.0.0 | | @vitejs/plugin-react-swc | ^3.5.0 | ^4.0.0 | | @vitejs/plugin-vue | ^4.0.0 | ^6.0.0 | Plugins that already support Vite 8 without a major bump (vite-plugin-solid, @preact/preset-vite) are left at their current ranges. Svelte/SvelteKit templates are excluded — covered by PR #5385. Co-authored-by: multica-agent <github@multica.ai>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (18)
WalkthroughBumps ChangesVite and Plugin Version Updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR upgrades the Wails v3 frontend templates (non-Svelte) from Vite 5 to Vite 8, including required major-version bumps for the official React/Vue Vite plugins to maintain compatibility.
Changes:
- Bumped
viteto^8.0.0across the remaining (non-Svelte/SvelteKit) templates. - Upgraded Vite framework plugins where required for Vite 8 compatibility:
@vitejs/plugin-react→^6.0.0@vitejs/plugin-react-swc→^4.0.0@vitejs/plugin-vue→^6.0.0
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| v3/internal/templates/base/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/ios/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/vanilla/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/vanilla-ts/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/lit/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/lit-ts/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/preact/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/preact-ts/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/solid/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/solid-ts/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/qwik/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/qwik-ts/frontend/package.json | Bump template Vite dev dependency to ^8.0.0. |
| v3/internal/templates/react/frontend/package.json | Bump Vite to ^8.0.0 and @vitejs/plugin-react to ^6.0.0. |
| v3/internal/templates/react-ts/frontend/package.json | Bump Vite to ^8.0.0 and @vitejs/plugin-react to ^6.0.0. |
| v3/internal/templates/react-swc/frontend/package.json | Bump Vite to ^8.0.0 and @vitejs/plugin-react-swc to ^4.0.0. |
| v3/internal/templates/react-swc-ts/frontend/package.json | Bump Vite to ^8.0.0 and @vitejs/plugin-react-swc to ^4.0.0. |
| v3/internal/templates/vue/frontend/package.json | Bump Vite to ^8.0.0 and @vitejs/plugin-vue to ^6.0.0. |
| v3/internal/templates/vue-ts/frontend/package.json | Bump Vite to ^8.0.0 and @vitejs/plugin-vue to ^6.0.0. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@v3/internal/templates/vue-ts/frontend/package.json`:
- Line 17: The package.json currently allows vulnerable Vite versions via the
"vite" dependency spec; update the "vite" entry in package.json from ^8.0.0 to
^8.0.5 (or newer) to exclude 8.0.0–8.0.4, then reinstall/update the lockfile
(npm/yarn/pnpm) to ensure the fixed version is resolved; note that
"@vitejs/plugin-vue" (dependency "@vitejs/plugin-vue": "^6.0.0") is compatible
with Vite 8 so no plugin change is required.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0aa0b14e-c6d1-42d3-9064-e1dc856124a3
📒 Files selected for processing (18)
v3/internal/templates/base/frontend/package.jsonv3/internal/templates/ios/frontend/package.jsonv3/internal/templates/lit-ts/frontend/package.jsonv3/internal/templates/lit/frontend/package.jsonv3/internal/templates/preact-ts/frontend/package.jsonv3/internal/templates/preact/frontend/package.jsonv3/internal/templates/qwik-ts/frontend/package.jsonv3/internal/templates/qwik/frontend/package.jsonv3/internal/templates/react-swc-ts/frontend/package.jsonv3/internal/templates/react-swc/frontend/package.jsonv3/internal/templates/react-ts/frontend/package.jsonv3/internal/templates/react/frontend/package.jsonv3/internal/templates/solid-ts/frontend/package.jsonv3/internal/templates/solid/frontend/package.jsonv3/internal/templates/vanilla-ts/frontend/package.jsonv3/internal/templates/vanilla/frontend/package.jsonv3/internal/templates/vue-ts/frontend/package.jsonv3/internal/templates/vue/frontend/package.json
Vite 8.0.0-8.0.4 contain a path traversal vulnerability in optimized dep .map handling (published 2026-04-06, MODERATE severity). Pinning to ^8.0.5 ensures newly generated projects cannot install a vulnerable version. Co-authored-by: multica-agent <github@multica.ai>
|
Fixed in commit fb54541: bumped Same fix applied to the Svelte templates in PR #5385 (commit 8052c44). CC @leaanthony |
…es): upgrade all remaining templates to Vite 8
Summary
Upgrades Vite from
^5.xto^8.0.0across all remaining templates (18 templates). Svelte/SvelteKit templates are excluded — they are covered by PR #5385 which is in review.Plugin changes required for Vite 8
Some plugins needed a major bump to be compatible with Vite 8:
@vitejs/plugin-react^4.2.1^6.0.0@vitejs/plugin-react-swc^3.5.0^4.0.0@vitejs/plugin-vue^4.0.0^6.0.0Plugins that already declare Vite 8 in their peer dep range —
vite-plugin-solidand@preact/preset-vite— are left at their current ranges.Templates updated
base,ios,vanilla,vanilla-ts,lit,lit-ts,preact,preact-ts,solid,solid-ts,qwik,qwik-ts,react,react-ts,react-swc,react-swc-ts,vue,vue-tsTest plan
wails3 init -n test -t react && cd test && npm install— no ERESOLVE errorsreact-ts,vue,vue-tsnpm run buildcompletes in a vanilla projectCC @leaanthony
Summary by CodeRabbit