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:

https://www.npmjs.com/package/vite-plugin-haxe

4 Likes

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

2 Likes

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?