v3.ocaml.org-rescript icon indicating copy to clipboard operation
v3.ocaml.org-rescript copied to clipboard

Fix bundle size

Open rdavison opened this issue 4 years ago • 0 comments

Reported in https://github.com/ocaml/v3.ocaml.org/issues/519#issuecomment-914690486

The functor at Pages.MakeSimple may be causing bundle sizes to be too large. The working theory is that webpack is unable to perform its tree-shaking algorithm correctly. @patricoferris demonstrated an example proof-of-concept solution in the linked issue by inlining the functor application, and copying the resulting output over the top of one page, and saw that the bundle size was no longer a problem.

rdavison avatar Sep 09 '21 14:09 rdavison