Lodash is incorrectly added to the bundle size?
See original GitHub issueType
Bug
Package name
styled-components-grid@2.1.0
Entire error (stringified) I see in my browser console
I don’t understand where lodash
is coming from as it’s not listed in dependencies
and I expected the size to be smaller.
P.S. This is such a helpful tool! Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Correctly Use Javascript's Imports To Improve Bundle Size
Importing libraries incorrectly will rapidly increase your bundle size, increase your build time and will make the user eventually wait more ...
Read more >webpack4 lodash size too big - Stack Overflow
import get from 'lodash/get'. But it didn't help me to lower bundle size. Below I enclose my webpack.config.js. I have no idea why...
Read more >Smaller Lodash bundles with Webpack and Babel
Recently we chatted about Lodash and the various plugins for making its bundle size smaller, such as lodash-webpack-plugin and babel-plugin- ...
Read more >6 Tools and Techniques to Analyze Webpack Bundle Size
Webpack Bundle Analyzer also works with minified bundles. You can use this in your application as follows: 1. Install the plugin. $ yarn...
Read more >Honey, I shrunk the bundle — A story about Angular ... - Medium
A story of reducing our Angular bundle size by one third in a few days ... The whole lodash library is included but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah I originally had
lodash.omit
but apparentlylodash
won’t be releasing individual packages starting withlodash@5
so I accepted a PR from someone to change it.4.8kb
is still huge for such a small utility so I’ll try getting rid of it all together. Thanks for your help!@styfle I’m afraid I don’t remember having raised a PR for that. It’s implemented here though - https://github.com/pastelsky/package-build-stats/blob/master/src/getDependencySizeTree.js
Closing this issue, let’s continue the discussion in a new issue if required.