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.

Remove lodash as an entire dependency

See original GitHub issue

I just ran

npm la lodash in my project and I see this

suman-utils@0.0.73121
│ /Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman-utils
│ Shared module within the Suman test runner ecosystem
│ git+https://github.com/sumanjs/suman-utils.git
│ https://github.com/sumanjs/suman-utils#readme
└─┬ async@2.5.0
  │ Higher-order functions and common patterns for asynchronous code
  │ git+https://github.com/caolan/async.git
  │ https://github.com/caolan/async#readme
  └── lodash@4.17.4 
      Lodash modular utilities.
      git+https://github.com/lodash/lodash.git
      https://lodash.com/

so it looks like async depends on lodash, but when I look at the async v2.6.0 package.json, I don’t see lodash as a dependency.

I was simply wondering if async could depend on:

lodash.x // import only the functions from lodash that async needs

instead of importing all of lodash.

let me know how async does it, thanks

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fmntfcommented, May 9, 2018

I also have the disk footprint issue. async is 840k, lodash 5.1M!

1reaction
ORESoftwarecommented, Nov 8, 2017

yeah personally I am more concerned about footprint on disk than install speed, but yeah

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get rid of whole lodash dependency when importing rx.js in ...
Does anyone have experience how to remove whole lodash from a project if it contains rx.js? Please, share you experience. Here is my...
Read more >
Uninstalling packages and dependencies
To uninstall an unscoped global package, on the command line, use the uninstall command with the -g flag. Include the scope if the...
Read more >
lodash.remove - npm Package Health Analysis
The npm package lodash.remove was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >
Lodash in 2022: necessary or obsolete? - Nico Zerpa
If you use Lodash just for these utilities, you can replace with Vanilla and remove the dependency. Concatenate arrays, without mutating the ...
Read more >
Custom Builds
To top it off, we handle all function dependency & alias mapping for you. ... to pass comma separated function/category names to remove...
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