Vite Plugin
Telefunc's Vite plugin automatically adds Telefunc to Vite apps.
See Get started > Vite.
The plugin:
- Transforms our
.telefunc.js
files, see Telefunc Transformer. - Automatically adds the Telefunc Server Middleware to Vite's development server as well as Vite's preview server.
- Lazy-loads our
.telefunc.js
files for optimal development speed (aka on-demand compilation).
We can pass Telefunc server configurations to the Vite plugin: