melange-re.github.io icon indicating copy to clipboard operation
melange-re.github.io copied to clipboard

Guide: Integrate melange with vite and vitest

Open davesnx opened this issue 1 year ago • 4 comments

  • Explain _build folder artifacts
  • Explain node_resolve's rollup plugin

davesnx avatar Nov 11 '23 23:11 davesnx

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

jchavarri avatar Nov 13 '23 07:11 jchavarri

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

jchavarri avatar Nov 23 '23 11:11 jchavarri

I'll spend some time thinking on this tomorrow

dmmulroy avatar Nov 24 '23 04:11 dmmulroy

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

dmmulroy avatar Jan 02 '24 20:01 dmmulroy