question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lodash is incorrectly added to the bundle size?

See original GitHub issue

Type

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.

image

P.S. This is such a helpful tool! Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jameslnewellcommented, Jul 23, 2018

Yeah I originally had lodash.omit but apparently lodash won’t be releasing individual packages starting with lodash@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!

1reaction
pastelskycommented, Dec 15, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found