Skip to content

Plugins ​

Vite plugins and Sprig add-ons serve different roles. The repository's internal Sprig Vite plugin compiles .sprig files at build time. Optional runtime add-ons are separate package entries: sprig-framework/form, sprig-framework/router, and sprig-framework/animation.

There is no general app.use() plugin API. Add-ons are imported explicitly and externalize the core package so they share its reactive runtime. A fresh external Vite project still needs access to the .sprig compiler plugin; it is not currently a public package entry.