UNPKG

vite-plugin-stimulus-hmr

Version:

HMR for Stimulus controllers in Vite.js, tweak your JS without refreshing the page.

15 lines (11 loc) 339 B
import { Plugin } from 'vite'; declare type Options = { /** * Name of a global `window` variable where the Stimulus app is defined. * * @default '$$StimulusApp$$' */ appGlobal?: string; }; declare function StimulusHMRPlugin({ appGlobal }?: Options): Plugin; export { Options, StimulusHMRPlugin as default };