Closed maraisr closed 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Optimizing output is in the plans already, and I don't want to track it here.
In the meantime, use a JS minifier like Closure Compiler or UglifyJS. Output that starts as 300kb will go down to ~50kb with minification, and then down to ~30kb after gzip. So the output is not actually very big as is. It's often about as much as jQuery.
There are many ways to do better than this though, and that's quite high on my priority list.
Any news on that @evancz ? Are there any plans to integrate a minifier / uglyfier into elm-make
?
First off - love the language! Absolutely brilliant, just a tad concerned about the output size.
With reference to line 386 onwards, can we do something like:
or es5:
to like dynamically create these functions? That way in the future we can analyse the app, work out what the max arity is going to be an adjust that array.
You could do something similar with the F* functions.
Just a thought...
Would like to spark the conversion (if not already sparked), to output some sort of ES6 output, so that we can have the goodness of tree shaking or something.