Skip to content

chore(deps): upgrade vite toolchain (vite 7, plugin-vue 6, vue-tsc 3)#1269

Merged
mathuo merged 2 commits into
masterfrom
chore/upgrade-vite-toolchain
May 12, 2026
Merged

chore(deps): upgrade vite toolchain (vite 7, plugin-vue 6, vue-tsc 3)#1269
mathuo merged 2 commits into
masterfrom
chore/upgrade-vite-toolchain

Conversation

@mathuo
Copy link
Copy Markdown
Owner

@mathuo mathuo commented May 12, 2026

Summary

  • vite 5 → 7 — also fixes a latent peer-dep mismatch where vitest@4 requires vite >=6 (we were running vitest 4 against vite 5)
  • @vitejs/plugin-vue 5 → 6
  • vue-tsc 2 → 3
  • @vue/tsconfig 0.5 → 0.9 — turns out to be a near no-op for us; the scary verbatimModuleSyntax: true is already on in 0.5
  • Drop defineProps / defineEmits imports from the four Vue SFCs — vue-tsc 3 errors instead of warns on importing what are SFC compiler macros (Vue's compiler-sfc has been logging this warning for a while)

Scope

Only dockview-vue is exercised — no other package uses vite. The cleanup PR (#1268) hoists vue-tsc, vitest, vue, etc. to root devDeps; this PR keeps them where they currently live on master so it can land independently. Will rebase if both end up in flight.

Deferred

  • TypeScript 6 (blocked by ng-packagr@21 pinning typescript >=5.9 <6.0)
  • Vite 8 (just released — staying on 7 for stability)

Test plan

  • yarn install clean
  • yarn build — all packages build
  • yarn test — 77 dockview-vue tests pass (+ all other packages)
  • cd packages/docs && yarn build — docs site unchanged (doesn't use vite)

🤖 Generated with Claude Code

mathuo and others added 2 commits May 12, 2026 18:18
- vite 5 -> 7 (latest stable; fixes the latent "vitest 4 requires vite
  >=6" peer-dep mismatch)
- @vitejs/plugin-vue 5 -> 6
- vue-tsc 2 -> 3
- @vue/tsconfig 0.5 -> 0.9

Drop `defineProps` / `defineEmits` imports from the four Vue SFCs:
vue-tsc 3 now errors instead of warns on importing what are actually
SFC compiler macros. The @vue/compiler-sfc warning has been telling us
about this for a while.

Only dockview-vue is exercised by these upgrades; the rest of the
monorepo doesn't touch vite. Local build + 77 tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…toolchain

# Conflicts:
#	package.json
#	packages/dockview-vue/package.json
#	yarn.lock
@mathuo mathuo merged commit 760fb28 into master May 12, 2026
7 checks passed
@sonarqubecloud
Copy link
Copy Markdown

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