3 ms·
Leverage Rollup's "tree-shaking" optimisation along with ES6 modules ("import { Maybe } from 'ramda-fantasy'") and you'll only be adding what features you actua
by girvo 10y ago
Leverage Rollup's "tree-shaking" optimisation along with ES6 modules ("import { Maybe } from 'ramda-fantasy'") and you'll only be adding what features you actually use.
Combine it with a decent transpiler (I recommend Bublé) and Uglify and you're off to the races: tiny builds, that work wonderfully.
- frio 10y agoYep! As I mentioned, I agree that this is the future :). We're just not quite there yet (mainly because lots of libraries still don't ship `jsnext:main` entries, and plenty of downstream libraries end up doing an `import _ from 'lodash'` or similar).
- girvo 10y agoTotally agreed. I'm definitely looking forward to it though, that's for certain! Rollup still has a little ways to go, as does the ecosystem in general, but I'm optimistic for sure!