melange-re / melange-re.github.io

Documentation site for Melange
https://melange.re
25 stars 6 forks source link

Guide: Integrate melange with vite and vitest #144

Open davesnx opened 11 months ago

davesnx commented 11 months ago
jchavarri commented 11 months ago

ftr https://github.com/melange-re/melange-examples/tree/9024b59cf1788fe1aa81f153423bec5d39a87123/examples/3-vite

jchavarri commented 11 months ago

cc @dmmulroy if you have ideas on the best ways to write this guide.

dmmulroy commented 11 months ago

I'll spend some time thinking on this tomorrow

dmmulroy commented 9 months ago

After much trial and error I have found this to be the best approach for integrating vite: https://github.com/dmmulroy/create-melange-app/issues/34#issuecomment-1874516504

As part of my efforts on create-melange-app I plan to work on rewriting/refactoring vite-plugin-melange to utilize Dune's rpc server rather than watching and parsing the log file w/ chokidar

I have an issue made for this work here: https://github.com/dmmulroy/create-melange-app/issues/37