Re:Lists of JavaScript methods which you can use natively
by madeofpalk on Friday July 01, 2016 @10:21AM
(#12016219)
Actually, a full version of loadash is not insignificant.
[ Parent
| on HN ]
Re:Lists of JavaScript methods which you can use natively
by jdd on Friday July 01, 2016 @10:30AM
(#12016286)
You might dig
Re:Lists of JavaScript methods which you can use natively
by madeofpalk on Friday July 01, 2016 @10:53AM
(#12016489)
We do plenty fine with just `import get from 'lodash/get', however we're fairly eager to upgrade to webpack to to take advantage of it's tree-shaking capabilities.
Re:Lists of JavaScript methods which you can use natively
by jdd on Friday July 01, 2016 @05:22PM
(#12019750)
Webpack 2 or Rollup don't tree-shake Lodash well.
You'll need something like https://github.com/lodash/babel-plugin-lodash.
Re:Lists of JavaScript methods which you can use natively
by seanwilson on Friday July 01, 2016 @11:40AM
(#12016997)
Compared to what? I meant in the sense that the full gzipped version wouldn't even be as big as a single small image on a website.
Re:Lists of JavaScript methods which you can use natively
by joshstrange on Friday July 01, 2016 @10:37AM
(#12016338)
Core build (~4 kB gzipped)
Full build (~22 kB gzipped)