Skip to content

Upgrade Vite to v8 and Rollup to v4, remove vite-plugin-inspect#9

Merged
philippminder merged 7 commits intomainfrom
claude/update-vite-8-0JhMb
Mar 16, 2026
Merged

Upgrade Vite to v8 and Rollup to v4, remove vite-plugin-inspect#9
philippminder merged 7 commits intomainfrom
claude/update-vite-8-0JhMb

Conversation

@philippminder
Copy link
Collaborator

Summary

This PR upgrades the project's Vite dependency to v8.0.0 and updates Rollup to support both v3 and v4, while removing the unused vite-plugin-inspect dependency from the playground.

Key Changes

  • Updated Vite from ^6.4.0 to ^8.0.0 in main package.json devDependencies
  • Updated Vite from ^6.4.1 to ^8.0.0 in playground package.json
  • Updated Rollup peer dependency from ^3 to ^3 || ^4 to support both major versions
  • Removed vite-plugin-inspect (^11.3.3) from playground devDependencies
  • Removed Inspect plugin import and usage from playground/vite.config.ts

Implementation Details

The vite-plugin-inspect was only used in the playground configuration and has been removed as it's no longer needed. The main package.json now supports both Rollup v3 and v4, providing flexibility for downstream consumers during their upgrade process.

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4

claude and others added 7 commits March 16, 2026 08:04
- Bump vite devDependency from ^6.4.0 to ^8.0.0
- Bump playground vite from ^6.4.1 to ^8.0.0
- Add esbuild ^0.27.0 as devDependency (required by Vite 8)
- Remove vite-plugin-inspect from playground (no Vite 8 support yet)
- Update pnpm lockfile

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4
Vite 8 replaced esbuild with Oxc for transforms and Rolldown for
bundling. Since the plugin does not use transformWithEsbuild, no
esbuild dependency is needed. Also update rollup peer dep range to
^3 || ^4 for Rolldown compatibility.

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4
- src/index.ts: import process from 'node:process', add return type to log()
- src/core/generator.ts: fix regex backtracking (remove redundant \s* around [^}]+), remove semicolons from generated output, add trailing newline
- playground/src/interfaces/task.ts: prefix unused TaskCategory with _
- playground/src/types/interfaces.d.ts: remove semicolons, add trailing newline

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4
- unplugin 2.x → 3.0.0 (ESM-only, Node 20+)
- chokidar 4 → 5.0.0 (ESM-only, Node 20.19+)
- @antfu/eslint-config 6 → 7.7.2
- eslint 9 → 10.0.3
- vitest 3 → 4.1.0
- tsdown 0.15 → 0.21.3
- bumpp 10 → 11.0.1
- @nuxt/kit + @nuxt/schema 4.1 → 4.4.2
- @types/node 22 → 25.5.0
- rollup, tsx, nodemon, webpack: patch/minor bumps

Fix new lint rules from @antfu/eslint-config v7:
- Move regex literals to module scope (e18e/prefer-static-regex)
- Add pnpm-workspace.yaml settings: shellEmulator, trustPolicy

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4
- Remove eslint and @antfu/eslint-config
- Add oxlint (linter) and oxfmt (formatter)
- Create .oxlintrc.json with project-appropriate rule config
- Create .oxfmtrc.json with single quotes, semi, sorted imports
- Add format / format:check scripts in package.json
- oxfmt reformats all source files (semi, import order, trailing commas)
- Fix code issues found by oxlint:
  - Rename short param names m/i/f to match/iface/filename
  - Add curly braces to bare if statement
  - Merge duplicate unplugin imports into single statement
  - utf-8 -> utf8 encoding identifier
  - Remove useless empty array in new Set()

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4
Vite 8 declares esbuild@^0.27.0 as optional peer dependency.
npm 7+ enforces optional peers, causing ERESOLVE errors when
esbuild is missing or at the wrong version.

- Add esbuild@^0.27.0 as devDependency
- Add npm overrides to pin esbuild@^0.27.0 and vite@^8.0.0,
  preventing peer conflict with transitive deps (e.g. vitest)

Note: project still uses pnpm as primary package manager.

https://claude.ai/code/session_018v1SpxBqL5hSeNYjvYBjk4
@philippminder philippminder marked this pull request as ready for review March 16, 2026 09:00
@philippminder philippminder merged commit d4c1cb8 into main Mar 16, 2026
6 checks passed
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.

2 participants