v0.21.0What's new ยท Oct 19, 2026
vite-plugin-lit
Edit a Lit component. Keep the page. In-place HMR, one shared stylesheet for every shadow root, and a DevTools panel that explains re-renders.

HMR that keeps stateEdit a component and the page stays put. Focus, scroll, inputs, and child state survive.
One stylesheet, every shadow rootShare a single CSSStyleSheet across thousands of components. An edit restyles them all without a re-render.
A DevTools panel that explains re-rendersSee which components updated, how long they took, and what triggered each one.
Ask your coding agentThe same component tree and timeline as MCP tools, read straight from the running page.
npm i -D @oddsquad/vite-plugin-litpnpm add -D @oddsquad/vite-plugin-lityarn add -D @oddsquad/vite-plugin-litbun add -d @oddsquad/vite-plugin-lit