-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large bundled filesize #82
Comments
Another option is to write a little |
Interesting. This doesn't help with dead code elimination (i.e. the total JS file size), though? |
Yes, you can use |
Sorry for the poor explanation from my side. My point was that I (believe I) was previously able to use |
Ah I see. I wasn't aware that was possible before, I'm slightly surprised 😄 |
In the current version of purescript-react, react is
require
d, so I need to usepulp browserify -O
instead ofpulp build -O
. Compiling the purescript-react-example project, this leaves me with a 684K javascript file where most of thereact
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 (ofThermite
and-react
) and this change increased the bundle filesize by a factor of 4-5. My guess is that thepsc-bundle
dead code eliminiation is somehow better than thebrowserify
one.Does someone have any ideas on how to address this problem?
The text was updated successfully, but these errors were encountered: