Skip to content

refactor!: reframe devframe positioning + rename Vite integration#2

Merged
antfu merged 2 commits into
mainfrom
antfu/reframe-vite-devtools-positioning
May 12, 2026
Merged

refactor!: reframe devframe positioning + rename Vite integration#2
antfu merged 2 commits into
mainfrom
antfu/reframe-vite-devtools-positioning

Conversation

@antfu
Copy link
Copy Markdown
Contributor

@antfu antfu commented May 11, 2026

Summary

  • Reframe docs/skill to position devframe as a portable, framework- and build-tool-agnostic asset — Vite DevTools is one host built on top of it (reached via the vite adapter), not a hub that holds "missing" features. The docs no longer enumerate what devframe doesn't provide; users who want hub-level features (docks, palette, terminals, …) are pointed at Vite DevTools or custom adapters.
  • Rename the kit-integration adapter (createPluginFromDevframe from @vitejs/devtools-kit/node) to the vite adapter throughout the user-facing surfaces.
  • Move the previous SPA-mounting createVitePlugin out of the adapter list — it's not actually an adapter. Relocated to devframe/helpers/vite and renamed createVitePluginviteDevBridge. @devframes/nuxt consumer, error doc DF0033, internal JSDoc, DevframeRuntime literal, and tsnapi snapshots updated to match.
  • Code-level polish: rebrand [Vite DevTools] timeout error to [devframe]; generalize a couple of embed-context JSDoc comments. The BroadcastChannel('vite-devtools-auth') literal is kept (cross-tab interop with the existing Vite DevTools auth page) and annotated.

Test plan

  • Build: pnpm --filter devframe build
  • Type-check: pnpm -r typecheck
  • tsnapi snapshots: pnpm test — confirm the new helpers/vite.snapshot.{js,d.ts} are accepted and no stale adapters/vite snapshot remains
  • Docs render: pnpm docs:dev and spot-check the rewritten guide pages
  • Nuxt consumer: confirm @devframes/nuxt still bridges in dev mode after the import path change

antfu added 2 commits May 11, 2026 19:40
Reframe the docs/skill to position devframe as a portable, framework-
and build-tool-agnostic asset rather than a single-tool surface that
"lacks" hub features. Vite DevTools is now described as one host
built on devframe, reached via the renamed `vite` adapter (was the
`kit` adapter); the docs no longer enumerate things devframe doesn't
provide and instead point at Vite DevTools or custom adapters as the
escape valve.

The previous `vite` SPA-mounting plugin is no longer an adapter — moved
to `devframe/helpers/vite` and the factory renamed `createVitePlugin`
→ `viteDevBridge`. Updated the `@devframes/nuxt` consumer, internal
JSDoc, error doc DF0033, tsnapi snapshots, `DevframeRuntime` type
literal, and rebranded the client-side `[Vite DevTools]` timeout error
to `[devframe]`. The `vite-devtools-auth` BroadcastChannel literal is
kept for cross-tab interop with the existing Vite DevTools auth page.
tsnapi emits interfaces alphabetically; the hand-edited snapshot had
ViteDevBridgeOptions before DevframeVitePlugin, causing a snapshot
mismatch on all CI matrix jobs. Reordered to DevframeVitePlugin first.
Also picks up tsdown's idempotent re-sort of package.json exports
(./helpers/vite slotted between ./constants and ./node).
@antfu antfu changed the title refactor: reframe devframe positioning + rename Vite integration refactor!: reframe devframe positioning + rename Vite integration May 12, 2026
@antfu antfu merged commit 1fc40af into main May 12, 2026
7 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.

1 participant