3 ms·
Is it me or is the bundle generated by Elm a bit too big? Maybe it's gotten better lately but I've always thought it overkill for simple apps.
by sotojuan 10y ago
Is it me or is the bundle generated by Elm a bit too big? Maybe it's gotten better lately but I've always thought it overkill for simple apps.
- jose_zap 10y agoIt is considerably smaller that React is... actually it is a lot smaller than jQuery, a library most webpages have in one way or another
- sotojuan 10y agoThanks, looks like last time I tried Elm was too long ago!
- grayrest 10y agoI didn't remember this being too bad. I just checked with Elm 0.17 using the tutorial's [1] nesting/3-gif-pair.elm as the main. Size is 209k out of elm-make, 60k minified (closure compiler advanced), and 19k gzipped. I wouldn't use it for validating a form field but the size seems completely reasonable for a language runtime. [1] https://github.com/evancz/elm-architecture-tutorial https://github.com/evancz/elm-architecture-tutorial
- sotojuan 10y agoI stand corrected—thanks!
- bjz_ 10y agoIt used to be huge (including the entire standard library for simple apps). Afaik though the generated code has been improved in the last update to be compatible with google's closure compiler and things like browserify or webpack that can greatly optimise the size of your code. Could be wrong though.