melange-re / melange-re.github.io

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

Remove rollup treeshake #148

Closed jchavarri closed 10 months ago

jchavarri commented 10 months ago

There's a bug in rollup that prevents us to bundle the melange compiler and ocamlformat, see https://github.com/ocsigen/js_of_ocaml/issues/1547 and https://github.com/rollup/rollup/issues/5292.

For now disabling treeshaking, I briefly tried removing vite and use just esbuild but ran into a bunch of separate issues.

jchavarri commented 10 months ago

ftr difference in main bundle size:

before: 3440614 bytes
after:  3530948 bytes