melange-re.github.io
melange-re.github.io copied to clipboard
Guide: Integrate melange with vite and vitest
- Explain _build folder artifacts
- Explain node_resolve's rollup plugin
ftr https://github.com/melange-re/melange-examples/tree/9024b59cf1788fe1aa81f153423bec5d39a87123/examples/3-vite
cc @dmmulroy if you have ideas on the best ways to write this guide.
I'll spend some time thinking on this tomorrow
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