Skip to content

build(deps-dev): vite 8 + vite-plugin-svelte 7 (supersedes #237, #239)#240

Merged
chhoumann merged 1 commit into
masterfrom
deps/vite-8-plugin-svelte-7
Jul 6, 2026
Merged

build(deps-dev): vite 8 + vite-plugin-svelte 7 (supersedes #237, #239)#240
chhoumann merged 1 commit into
masterfrom
deps/vite-8-plugin-svelte-7

Conversation

@chhoumann

Copy link
Copy Markdown
Owner

Combines dependabot #237 (vite 8.1.3) and #239 (@sveltejs/vite-plugin-svelte 7.1.2), which are mutually dependent majors: plugin-svelte 6 peers on vite ^7 while plugin-svelte 7 peers on vite ^8, so each PR fails ERESOLVE alone. They only install together.

Config migration for the rolldown/oxc-based vite 8:

  • esbuild.drop is gone (the esbuild transform pipeline was replaced by oxc). Prod minification + console stripping now use rolldown's native rollupOptions.output.minify with compress.dropConsole. Verified empirically: prod main.js is minified/mangled and contains 0 console.* calls, matching the old behavior.
  • vite-plugin-svelte 7 removed the hot option (Svelte 5 HMR is automatic); dropped from vitest.config.ts where it was already forced off under vitest.

Verification: lint, biome, typecheck, build, svelte-check, 876/876 unit tests green; plugin reloaded in live Obsidian (dev vault) with the oxc-minified bundle - loads clean, API + protocol handler registered, no console errors. E2E runtime tests pass (the live-playback ones flake under full-suite load on the local machine regardless of branch - known harness/transport issue, each passes individually).

Note: oxc-minified bundle is 411 kB vs 406 kB with esbuild - negligible.

Closes #237
Closes #239

The two dependabot PRs (#237, #239) each fail alone: plugin-svelte 6
peers on vite ^7 and plugin-svelte 7 peers on vite ^8, so the majors
have to move together.

Config migration for vite 8 (rolldown/oxc):
- esbuild.drop no longer exists; prod console stripping and
  minification move to rolldown's oxc minifier via
  rollupOptions.output.minify (verified: 0 console.* calls in the
  minified prod bundle)
- vite-plugin-svelte 7 removed the hot option (Svelte 5 HMR is
  automatic); it was already disabled under vitest
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b2b0e7
Status: ✅  Deploy successful!
Preview URL: https://3903c919.podnotes.pages.dev
Branch Preview URL: https://deps-vite-8-plugin-svelte-7.podnotes.pages.dev

View logs

@chhoumann chhoumann marked this pull request as ready for review July 6, 2026 14:38
@chhoumann chhoumann merged commit ddbb289 into master Jul 6, 2026
2 checks passed
@chhoumann chhoumann deleted the deps/vite-8-plugin-svelte-7 branch July 6, 2026 14:38

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread vite.config.ts
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