Skip to content

chore(deps): upgrade to Vite 8 and @vitejs/plugin-react 6 - #13

Open
DevRyuki wants to merge 1 commit into
mainfrom
chore/vite-8
Open

chore(deps): upgrade to Vite 8 and @vitejs/plugin-react 6#13
DevRyuki wants to merge 1 commit into
mainfrom
chore/vite-8

Conversation

@DevRyuki

Copy link
Copy Markdown
Contributor

Dependabot が自動クローズしてしまった vite 8 更新を、検証したうえで復活させる PR です。

  • vite ^7.3.6 → ^8.2.2
  • @vitejs/plugin-react ^4.6.0 → ^6.1.0

経緯

元は Dependabot の「Bump vite and @vitejs/plugin-react」でした。#10 のマージでコンフリクトしたため rebase を依頼したところ、Dependabot が「dependencies are up-to-date now」と誤判定して PR を自動クローズしブランチも削除しました。再オープンは API で拒否されるため、検証済みの同じ内容を手動ブランチとして起こし直しています。

破壊的変更とこのプロジェクトへの影響

Vite 8 は esbuild と Rollup を Rolldown / Oxc に置き換えるメジャー更新ですが、このプロジェクトは設定面の影響を受けません。

Vite 8 の破壊的変更 本プロジェクトへの影響
build.rollupOptionsbuild.rolldownOptions なしvite.config.ts は未使用
optimizeDeps.esbuildOptionsrolldownOptions なし — 未使用
esbuild オプション → oxc なし — 未使用
プラグインフック削除(shouldTransformCachedModule 等) なし — カスタムプラグインなし
plugin-react 6 の Babel 完全削除 なし — React Compiler 未使用。@babel/core を含む 51 パッケージが依存ツリーから外れます

vite.config.ts が持っているのは plugins: [react()] と Tauri 向けの server 設定(port 1420 固定、src-tauri の watch 除外、HMR)だけです。

検証結果

項目 結果
npm run build 成功 — 252 modules、371ms / 744.93 kB(vite 7 では 1.36s / 751.52 kB)
npm run lint 成功 — 54 ファイル、指摘なし
npm run dev 成功 — port 1420 で起動、React Refresh 注入を確認(Tauri の devUrl と一致)、App.tsx のトランスフォームも確認
npm ci からの再現 成功 — lockfileVersion 3 / タブインデント維持

マージ前にご確認いただきたい点

  1. 実アプリの動作は未確認です。 npm run tauri dev での TipTap エディタや画面遷移の挙動はご確認ください。ビルドと dev サーバーまでは通っています。
  2. デフォルトのブラウザターゲットが上がります(Safari 16.0 → 16.4 = macOS 13.3 以降相当)。tauri.conf.jsonminimumSystemVersion の指定が無いため、macOS 13.0〜13.2 を対象に含める場合は build.target の明示をご検討ください。
  3. Node.js 20.19+ / 22.12+ が必要になります(package.jsonengines の記載はありません)。
  4. chore(deps): resolve open security advisories (esbuild / tauri / rand) #12 とマージ順が競合します。 chore(deps): resolve open security advisories (esbuild / tauri / rand) #12(セキュリティ修正)を先にマージしてから、この PR を rebase してください。なお vite 8 では esbuild 自体が依存から消えるため、esbuild のアラートはこの PR でも解消されます。

🤖 Generated with Claude Code

https://claude.ai/code/session_01WdXV2urCsuq2i4gRaT3W44

- vite ^7.3.6 -> ^8.2.2
- @vitejs/plugin-react ^4.6.0 -> ^6.1.0

Vite 8 replaces esbuild and Rollup with Rolldown and Oxc. This project
is unaffected by the config-level breaking changes: vite.config.ts only
sets `plugins: [react()]` plus the Tauri server options, and never
touches build.rollupOptions, optimizeDeps.esbuildOptions or the esbuild
option. plugin-react 6 drops Babel entirely, which is fine here since
React Compiler is not in use — @babel/core leaves the tree along with
51 other packages.

Restores the upgrade from the Dependabot PR that was auto-closed:
asking it to rebase after #10 made it decide the deps were already
up-to-date, so it closed the PR and deleted the branch.

Verified: npm run build, npm run lint, and `npm run dev` serving on
port 1420 with React Refresh injected (the port Tauri's devUrl expects).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WdXV2urCsuq2i4gRaT3W44
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.

1 participant