In the current version of purescript-react, react is required, so I need to use pulp browserify -O instead of pulp build -O. Compiling the purescript-react-example project, this leaves me with a 684K javascript file where most of the react stuff is still included. This feels quite heavy for a small demo project.
I am in the progress of updating a Thermite project to the newest version (of Thermite and -react) and this change increased the bundle filesize by a factor of 4-5. My guess is that the psc-bundle dead code eliminiation is somehow better than the browserify one.
Does someone have any ideas on how to address this problem?
In the current version of purescript-react, react is
required, so I need to usepulp browserify -Oinstead ofpulp build -O. Compiling the purescript-react-example project, this leaves me with a 684K javascript file where most of thereactstuff is still included. This feels quite heavy for a small demo project.I am in the progress of updating a
Thermiteproject to the newest version (ofThermiteand-react) and this change increased the bundle filesize by a factor of 4-5. My guess is that thepsc-bundledead code eliminiation is somehow better than thebrowserifyone.Does someone have any ideas on how to address this problem?