Skip to content

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.
Play the vite-plugin-lit promo: a tour inside the Lit DevTools panel, from HMR that keeps a counter at 42, through one stylesheet recolouring a thousand shadow roots and the Timeline explaining each update, to the litPlugin() setup line
Terminal window
npm i -D @oddsquad/vite-plugin-lit

Lit Inspector puts the same panel in Chrome and Firefox DevTools, for production builds and sites you don’t serve. No Vite needed. Install Lit Inspector.

Get it on theChrome Web StoreComing soon toFirefox Add-ons