Haxe plugin for Vite

I’ve just created a simple Vite plugin that lets you compile Haxe code to js in the very nice web dev environment that Vite provides:



Not trying to hijack your thread, but I figured I’d mention that I recently created an OpenFL plugin for Vite too!


I’m curious, since Vite bundles the output, if it’s possible to output the compiled js to stdout instead of to a file, that needs to be temporary and read after compilation, so it would certainly be more optimal to just pipe from stdout to the build pipeline.

Any examples or hints how to use it with sveltekit?