Skip to content

chore(templates): upgrade all remaining templates to Vite 8#5386

Merged
leaanthony merged 3 commits intomasterfrom
chore/vite8-all-templates
May 10, 2026
Merged

chore(templates): upgrade all remaining templates to Vite 8#5386
leaanthony merged 3 commits intomasterfrom
chore/vite8-all-templates

Conversation

@leaanthony
Copy link
Copy Markdown
Member

@leaanthony leaanthony commented May 10, 2026

Summary

Upgrades Vite from ^5.x to ^8.0.0 across 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:

Template Plugin Old New
react, react-ts @vitejs/plugin-react ^4.2.1 ^6.0.0
react-swc, react-swc-ts @vitejs/plugin-react-swc ^3.5.0 ^4.0.0
vue, vue-ts @vitejs/plugin-vue ^4.0.0 ^6.0.0

Plugins that already declare Vite 8 in their peer dep range — vite-plugin-solid and @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-ts

Test plan

  • wails3 init -n test -t react && cd test && npm install — no ERESOLVE errors
  • Same for react-ts, vue, vue-ts
  • npm run build completes in a vanilla project
  • No breaking changes from Vite 5 → 8 in template code (templates only use standard Vite build/dev — no Vite-internal APIs)

CC @leaanthony

Summary by CodeRabbit

  • Chores
    • Bumped Vite dev dependency across all frontend templates to 8.0.5.
    • Updated framework Vite plugins: Vue plugin → 6.0.0; React plugin → 6.0.0; React SWC plugin → 4.0.0; other template-specific plugin updates included to ensure compatibility.

Review Change Stack

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>
Copilot AI review requested due to automatic review settings May 10, 2026 11:33
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 10, 2026

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 614b2199-7746-482b-b4e7-b0562d2c01fc

📥 Commits

Reviewing files that changed from the base of the PR and between 03bd9aa and 9576b85.

📒 Files selected for processing (18)
  • v3/internal/templates/base/frontend/package.json
  • v3/internal/templates/ios/frontend/package.json
  • v3/internal/templates/lit-ts/frontend/package.json
  • v3/internal/templates/lit/frontend/package.json
  • v3/internal/templates/preact-ts/frontend/package.json
  • v3/internal/templates/preact/frontend/package.json
  • v3/internal/templates/qwik-ts/frontend/package.json
  • v3/internal/templates/qwik/frontend/package.json
  • v3/internal/templates/react-swc-ts/frontend/package.json
  • v3/internal/templates/react-swc/frontend/package.json
  • v3/internal/templates/react-ts/frontend/package.json
  • v3/internal/templates/react/frontend/package.json
  • v3/internal/templates/solid-ts/frontend/package.json
  • v3/internal/templates/solid/frontend/package.json
  • v3/internal/templates/vanilla-ts/frontend/package.json
  • v3/internal/templates/vanilla/frontend/package.json
  • v3/internal/templates/vue-ts/frontend/package.json
  • v3/internal/templates/vue/frontend/package.json

Walkthrough

Bumps devDependencies.vite to ^8.0.5 across 18 frontend templates; also upgrades React and Vue Vite plugins (@vitejs/plugin-react^6.0.0, @vitejs/plugin-react-swc^4.0.0, @vitejs/plugin-vue^6.0.0).

Changes

Vite and Plugin Version Updates

Layer / File(s) Summary
Vite Dependency Upgrade
v3/internal/templates/base/frontend/package.json, v3/internal/templates/ios/frontend/package.json, v3/internal/templates/lit-ts/frontend/package.json, v3/internal/templates/lit/frontend/package.json, v3/internal/templates/preact-ts/frontend/package.json, v3/internal/templates/preact/frontend/package.json, v3/internal/templates/qwik-ts/frontend/package.json, v3/internal/templates/qwik/frontend/package.json, v3/internal/templates/solid-ts/frontend/package.json, v3/internal/templates/solid/frontend/package.json, v3/internal/templates/vanilla-ts/frontend/package.json, v3/internal/templates/vanilla/frontend/package.json
devDependencies.vite bumped to ^8.0.5 (was ^5.x.x or ^5.0.8).
React Plugin Upgrades
v3/internal/templates/react-ts/frontend/package.json, v3/internal/templates/react/frontend/package.json
@vitejs/plugin-react bumped from ^4.2.1 to ^6.0.0; vite bumped to ^8.0.5.
React SWC Plugin Upgrades
v3/internal/templates/react-swc-ts/frontend/package.json, v3/internal/templates/react-swc/frontend/package.json
@vitejs/plugin-react-swc bumped from ^3.5.0 to ^4.0.0; vite bumped to ^8.0.5.
Vue Plugin Upgrades
v3/internal/templates/vue-ts/frontend/package.json, v3/internal/templates/vue/frontend/package.json
@vitejs/plugin-vue bumped from ^4.0.0 to ^6.0.0; vite bumped to ^8.0.5.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • wailsapp/wails#5386: Modifies the same template package.json files to bump the vite devDependency (retrieved PR uses ^8.0.0, this PR uses ^8.0.5).
  • wailsapp/wails#5385: Upgrades Vite across template package.json files, focusing on Svelte templates.

Suggested labels

Enhancement, size:XS, lgtm, ["Ready For Testing"]

Poem

🐰 From five to eight I hop with cheer,
Templates updated far and near,
Plugins, too, got polish bright,
Small bumps that make the devtools light,
A tiny hop — the builds take flight.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: upgrading all remaining templates to Vite 8. It directly matches the primary objective of the changeset.
Description check ✅ Passed The description is well-structured with a clear summary, detailed table of plugin changes, list of updated templates, and a comprehensive test plan. It addresses the repository's PR template requirements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/vite8-all-templates

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 vite to ^8.0.0 across 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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between af7bdec and 03bd9aa.

📒 Files selected for processing (18)
  • v3/internal/templates/base/frontend/package.json
  • v3/internal/templates/ios/frontend/package.json
  • v3/internal/templates/lit-ts/frontend/package.json
  • v3/internal/templates/lit/frontend/package.json
  • v3/internal/templates/preact-ts/frontend/package.json
  • v3/internal/templates/preact/frontend/package.json
  • v3/internal/templates/qwik-ts/frontend/package.json
  • v3/internal/templates/qwik/frontend/package.json
  • v3/internal/templates/react-swc-ts/frontend/package.json
  • v3/internal/templates/react-swc/frontend/package.json
  • v3/internal/templates/react-ts/frontend/package.json
  • v3/internal/templates/react/frontend/package.json
  • v3/internal/templates/solid-ts/frontend/package.json
  • v3/internal/templates/solid/frontend/package.json
  • v3/internal/templates/vanilla-ts/frontend/package.json
  • v3/internal/templates/vanilla/frontend/package.json
  • v3/internal/templates/vue-ts/frontend/package.json
  • v3/internal/templates/vue/frontend/package.json

Comment thread v3/internal/templates/vue-ts/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>
@leaanthony
Copy link
Copy Markdown
Member Author

Fixed in commit fb54541: bumped vite from ^8.0.0^8.0.5 across all 18 templates in this PR, excluding the vulnerable 8.0.0–8.0.4 range.

Same fix applied to the Svelte templates in PR #5385 (commit 8052c44).

CC @leaanthony

@leaanthony leaanthony merged commit dad04c2 into master May 10, 2026
12 of 15 checks passed
@leaanthony leaanthony deleted the chore/vite8-all-templates branch May 10, 2026 11:49
pull Bot pushed a commit to WangNingkai/wails that referenced this pull request May 10, 2026
…es): upgrade all remaining templates to Vite 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants