Skip to content

chore(v2/templates): bump to Vite 8 and Typescript 6#5644

Open
xiaoxustudio wants to merge 2 commits into
wailsapp:masterfrom
xiaoxustudio:chore/update-vite-and-ts
Open

chore(v2/templates): bump to Vite 8 and Typescript 6#5644
xiaoxustudio wants to merge 2 commits into
wailsapp:masterfrom
xiaoxustudio:chore/update-vite-and-ts

Conversation

@xiaoxustudio

@xiaoxustudio xiaoxustudio commented Jun 21, 2026

Copy link
Copy Markdown

Description

Refresh all starter template package manifests to use Vite 8.0.16 and
TypeScript 6 where applicable. Framework-specific Vite plugins are also
updated to versions compatible with the newer toolchain.

vite@^7.0.0 -> vite@^8.0.16
typescript@^5.6.3 -> typescript@^6.0.0
@preact/preset-vite@^2.10.0 -> @preact/preset-vite@^2.10.4
@vitejs/plugin-react@^5.0.0 -> @vitejs/plugin-react@^6.0.0

Issue #3705

Type of change

Please select the option that is relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using wails doctor.

  • Windows
  • macOS
  • Linux

If you checked Linux, please specify the distro and version.

Test Configuration

PS F:\ex\go\wails> wails doctor

                                
          Wails Doctor          
                                

                                                                                                                           
# Wails
Version | v2.12.0


# System
┌─────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Home China                                                    |
| Version      | 2009 (Build: 26200)                                                      |
| ID           | 25H2                                                                     |
| Branding     | Windows 11 家庭版 中文版                                                 |
| Go Version   | go1.26.4                                                                 |
| Platform     | windows                                                                  |
| Architecture | amd64                                                                    |
| CPU          | 12th Gen Intel(R) Core(TM) i7-1255U                                      |
| GPU          | Intel(R) Iris(R) Xe Graphics (Intel Corporation) - Driver: 32.0.101.7077 |
| Memory       | 32GB                                                                     |
└─────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 149.0.4022.80 |
| Nodejs     | N/A          | Installed | 24.17.0       |
| npm        | N/A          | Installed | 11.13.0       |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
|                                                       |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details: 
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

Checklist:

  • (v2 only) I have updated website/src/pages/changelog.mdx with details of this PR (v3 changelog entries are added automatically)
  • My code follows the general coding style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Summary by CodeRabbit

  • Chores
    • Updated development dependency versions across all frontend templates (including Vite, TypeScript, and relevant framework plugins/presets).
    • Added an Unreleased changelog entry documenting the template dependency updates.
@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7d20588c-0520-4ae7-8a07-27bff5f870e2

📥 Commits

Reviewing files that changed from the base of the PR and between 61719df and 6dc29d0.

📒 Files selected for processing (1)
  • website/src/pages/changelog.mdx
✅ Files skipped from review due to trivial changes (1)
  • website/src/pages/changelog.mdx

Walkthrough

Bumps vite to ^8.0.16 and typescript to ^6.0.0 across all ten v2 frontend template package.json files (vanilla, lit, preact, react, svelte — JS and TS variants). Framework-specific Vite plugins (@vitejs/plugin-react, @preact/preset-vite) are also updated. A changelog entry is added under [Unreleased] > Changed.

Changes

Frontend Template Dependency Updates

Layer / File(s) Summary
Template package.json version bumps
v2/pkg/templates/templates/vanilla/frontend/package.json, v2/pkg/templates/templates/vanilla-ts/frontend/package.json, v2/pkg/templates/templates/lit/frontend/package.json, v2/pkg/templates/templates/lit-ts/frontend/package.json, v2/pkg/templates/templates/preact/frontend/package.json, v2/pkg/templates/templates/preact-ts/frontend/package.json, v2/pkg/templates/templates/react/frontend/package.json, v2/pkg/templates/templates/react-ts/frontend/package.json, v2/pkg/templates/templates/svelte/frontend/package.json, v2/pkg/templates/templates/svelte-ts/frontend/package.json, website/src/pages/changelog.mdx
vite is bumped to ^8.0.16 and typescript to ^6.0.0 across all templates; @vitejs/plugin-react moves to ^6.0.0 and @preact/preset-vite to ^2.10.4. A changelog entry documents these as changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • wailsapp/wails#5386: Bumps vite and related Vite plugins across multiple frontend templates to Vite 8, directly overlapping with this PR's dependency update scope.
  • wailsapp/wails#5447: Modifies the same v2/pkg/templates/templates/*/frontend/package.json scaffolds by bumping vite, TypeScript, and related frontend tooling versions.

Suggested labels

templates, size:XS, Windows

Suggested reviewers

  • leaanthony

🐇 Vite eight, TypeScript six,
Templates patched without any tricks.
Plugins updated, versions aligned,
All ten packages freshly refined —
The rabbit hops with versions just right! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: bumping Vite to version 8 and TypeScript to version 6 across all frontend templates.
Description check ✅ Passed The PR description includes a clear summary of changes, specific version bumps, an issue reference (#3705), type selection, test configuration with wails doctor output, and a completed checklist including changelog updates.
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

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.

@xiaoxustudio xiaoxustudio force-pushed the chore/update-vite-and-ts branch from 61719df to d883e1c Compare June 21, 2026 15:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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 `@website/src/pages/changelog.mdx`:
- Line 19: The changelog entry on line 19 contains inconsistent punctuation and
non-English formatting that makes it awkward to read. Fix the formatting by
removing the space before the colon in "dependencies :" and replacing the
Chinese punctuation mark (、) with standard English punctuation (comma or
semicolon as appropriate). This will improve readability and maintain
consistency with standard English changelog formatting.
🪄 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: 14852cfa-e87b-4e01-ba3e-7e5fea07ae38

📥 Commits

Reviewing files that changed from the base of the PR and between 3d2b823 and 61719df.

📒 Files selected for processing (11)
  • v2/pkg/templates/templates/lit-ts/frontend/package.json
  • v2/pkg/templates/templates/lit/frontend/package.json
  • v2/pkg/templates/templates/preact-ts/frontend/package.json
  • v2/pkg/templates/templates/preact/frontend/package.json
  • v2/pkg/templates/templates/react-ts/frontend/package.json
  • v2/pkg/templates/templates/react/frontend/package.json
  • v2/pkg/templates/templates/svelte-ts/frontend/package.json
  • v2/pkg/templates/templates/svelte/frontend/package.json
  • v2/pkg/templates/templates/vanilla-ts/frontend/package.json
  • v2/pkg/templates/templates/vanilla/frontend/package.json
  • website/src/pages/changelog.mdx
Comment thread website/src/pages/changelog.mdx Outdated

### Fixed

- Update template dependencies : `vite@8.0.16` and `typescript@6`、plugins `@preact/preset-vite@2.10.4`、`@vitejs/plugin-react@6`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Polish the changelog bullet formatting for readability.

Line 19 uses inconsistent punctuation and spacing (dependencies : and ), which reads awkwardly in an English changelog entry.

Suggested rewrite
-- Update template dependencies : `vite@8.0.16` and `typescript@6`、plugins `@preact/preset-vite@2.10.4`、`@vitejs/plugin-react@6`
+- Updated template dependencies: `vite@8.0.16`, `typescript@6.0.0`, `@preact/preset-vite@2.10.4`, and `@vitejs/plugin-react@6.0.0`.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Update template dependencies : `vite@8.0.16` and `typescript@6`、plugins `@preact/preset-vite@2.10.4``@vitejs/plugin-react@6`
- Updated template dependencies: `vite@8.0.16`, `typescript@6.0.0`, `@preact/preset-vite@2.10.4`, and `@vitejs/plugin-react@6.0.0`.
🤖 Prompt for 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.

In `@website/src/pages/changelog.mdx` at line 19, The changelog entry on line 19
contains inconsistent punctuation and non-English formatting that makes it
awkward to read. Fix the formatting by removing the space before the colon in
"dependencies :" and replacing the Chinese punctuation mark (、) with standard
English punctuation (comma or semicolon as appropriate). This will improve
readability and maintain consistency with standard English changelog formatting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant