Skip to content

chore(deps): upgrade vite toolchain to v8 - #897

Merged
YusukeHirao merged 1 commit into
devfrom
worktree-sleepy-knitting-platypus
Aug 24, 2026
Merged

chore(deps): upgrade vite toolchain to v8#897
YusukeHirao merged 1 commit into
devfrom
worktree-sleepy-knitting-platypus

Conversation

@YusukeHirao

Copy link
Copy Markdown
Member

背景

Renovate PR #888@vitejs/plugin-react 5.2.0→6.0.5)のCIが継続的に失敗していた。

原因は @vitejs/plugin-react@6.0.5peerDependenciesvite: ^8.0.0 を要求するのに対し、リポジトリの vite7.3.6 に固定されており、ビルド時に以下のエラーで失敗していたこと。

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './internal' is not defined by "exports" in node_modules/vite/package.json imported from node_modules/@vitejs/plugin-react/dist/index.js

変更内容

  • vite: 7.3.68.2.1client / local / runtime / storybook
  • @vitejs/plugin-react: 5.2.06.0.5client。PR #888と同内容)
  • vite-plugin-dts: 4.5.45.0.3client / runtime。vite 8対応の同時メジャーアップ)
  • client/vite.config.ts: esbuild.supported['top-level-await'] を削除
    • vite 8(rolldown/oxcベース)ではデフォルトトランスフォーマーがesbuildからoxcに変わり、このesbuildオプションは無視されるようになった(ビルド時に警告が出る)
    • build.target: 'esnext' で実質的にカバーされており、ソース中にトップレベルawaitの使用もないため削除
  • client/vite.config.ts, runtime/vite.config.ts: // eslint-disable-next-line import-x/default コメントを削除
    • vite-plugin-dts 5.0.3がdefault exportを正規に持つようになったため不要に
  • .github/renovate.json: vite グループに @vitejs/plugin-react を追加
    • 今回のように片方だけ更新されてビルドが壊れる事態を防止するため、既存の vite / vite-plugin-dts グループに合流

検証

  • yarn build: 16プロジェクト全て成功
  • yarn lint: エラーなし(既存warning 4件のみ、変更と無関係)
  • yarn test(Docker経由、VR含む): 99ファイル / 1059テスト成功、VR差分なし
    • local/src/commands/server.spec.ts のCLI起動待ちタイムアウトが4回中1回失敗したが、既存issue #841と同種のDocker内CPU競合によるflakyと判断(4回中3回成功、今回の変更とは無関係)。スコープ外のため対応せず

影響範囲

  • UIの見た目変更なし(VRベースライン更新は不要)
  • 公開 exports の変更なし

@vitejs/plugin-react@6 requires vite ^8.0.0 as a peer dependency, which the
5.2.0->6.0.5 Renovate PR (#888) could not satisfy against the repo's pinned
vite@7.3.6, failing the build with ERR_PACKAGE_PATH_NOT_EXPORTED on the
vite/internal subpath.

Bump vite (7.3.6->8.2.1), @vitejs/plugin-react (5.2.0->6.0.5), and
vite-plugin-dts (4.5.4->5.0.3, its own vite-8-compatible major) together
across client/local/runtime/storybook. Drop the now-redundant
esbuild.supported.top-level-await override in client/vite.config.ts (vite 8's
rolldown/oxc default transformer ignores it; build.target: 'esnext' already
covers it) and the import-x/default eslint-disable comments made unnecessary
by vite-plugin-dts 5's default export.

Group @vitejs/plugin-react into the existing "vite" Renovate group alongside
vite and vite-plugin-dts so future bumps stay in lockstep instead of
reproducing this peer-dependency mismatch.
@YusukeHirao
YusukeHirao merged commit f450184 into dev Aug 24, 2026
1 check passed
@YusukeHirao
YusukeHirao deleted the worktree-sleepy-knitting-platypus branch August 24, 2026 09:58
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