Skip to content

Releases: Zixtar/vite-plugin-svelte-devtools

v0.1.5

19 May 12:53

Choose a tag to compare

[0.1.5] - 2026-05-19

Fixed

  • Component tree collapse on selection: selecting a component (via click, component picker, or programmatically) now automatically expands all collapsed ancestor nodes so the selected item is always visible and scrolled into view. Previously the tree could collapse around the selected node, leaving it invisible.

Changed

  • Dropped collapsed-state persistence: the buggy name-based localStorage persistence for collapsed tree nodes has been removed. Collapsed state now resets on page refresh. The previous implementation collapsed every component sharing the same name whenever any one of them was collapsed, and could re-collapse nodes that were intentionally expanded during selection.

Added

  • Plugin-level tests moved into repo: tests/preprocessor.test.ts (53 tests) and tests/open-in-editor.test.ts (9 tests) are now versioned in the plugin repo. Previously they lived only in the untracked demo-app.

v0.1.4 — Source map fix

18 May 07:18

Choose a tag to compare

What's changed

Fixed

  • Source maps broken in browser devtools — breakpoints always snapped to line 1 of the .svelte file and could not be placed on specific lines. The preprocessor now returns a magic-string source map with source: filename set, so Vite's internal getCombinedSourcemap() keeps the correct source reference instead of replacing it with the original unprocessed file content.

Added

  • Source map regression tests (tests/sourcemap.test.ts) — 8 unit tests run via npm test, covering: map presence, correct sources[0] filename, per-line mappings for original code, and absence of mappings on injected lines.
  • npm test script — vitest is now a dev dependency; the plugin repo has its own test suite.
  • CHANGELOG.md

Changed

  • magic-string added as an explicit runtime dependency (was already pulled in transitively).
  • @vitejs/devtools-kit dev dependency upgraded 0.1.210.1.24.

v0.1.3

14 May 09:48

Choose a tag to compare

Changelog

v0.1.3

  • Remove Settings tab — the Settings panel has been removed as none of its options were functional

v0.1.2

  • Hover-only highlight — components are now highlighted on hover in the component tree; selecting a node no longer triggers a highlight
  • ContextPanel copy buttons — each row in the Context panel now has a per-row copy button (matching the ComponentDetail pattern)
  • Migrate to rolldownOptions — build config updated from rollupOptions to rolldownOptions for Vite 8 / Rolldown compatibility