Telefunc can be used in any JavaScript environment without using a transformer but, for improved convenience, we recommend using a transformer plugin if possible.
Telefunc plugins transform *.telefunc.js browser-side imports into a thin HTTP client.
Without transformer
Without TypeScript:
With TypeScript:
This feature is not implemented yet, reach out on GitHub if you need this.
Vite plugin
If we use Vite, we can transform *.telefunc.js files by using the Telefunc's Vite plugin:
Webpack plugin
If we use webpack, we can transform *.telefunc.js files by using the Telefunc's webpack plugin:
Babel plugin
Telefunc's Babel plugin is work-in-progress.
Reach out on GitHub if you want to use the Babel plugin.