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.

Reduce disk footprint of dependencies

See original GitHub issue

When analyzing the disk sizes of various dependencies in the node_modules of Chrome DevTools, I discovered core-js-pure which is our 3rd largest dependency at 6.9MB on disk. It appears that aria-query is the only package having a transitive dependency on core-js-pure via @babel/runtime-corejs3.

This package appears to be supporting Node 6, but Node 10 has recently gone EOL. Could you update your Node version compatibility to support those versions supported by Node itself (https://nodejs.org/en/about/releases/) and drop your usage of @babel/runtime-corejs3? Looking at the implementation of this package, that seems feasible, as it doesn’t use very many features that Node 12+ don’t support. Hence I think dropping corejs3 usage is feasible.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
eps1loncommented, May 12, 2021

I think it’s better to release a breaking change that is getting rid of some of the modern code/types (I suspect most of the map/set iterable usage is unnecessary) instead of releasing a breaking change that bumps the minimum node version. Downstream packages can adjust their code consuming aria-query but they can’t just bump the minimum node version.

@TimvdLippe I can’t make any statement about the timeframe here. Maybe you can convince your company to sponsor this work if this is such an important consideration for you.

1reaction
jessebeachcommented, Sep 25, 2021

I’ve got the basics of a fix working that removes the dependency on the Babel Runtime: #250

I’m improving the API on the changes to be more like it was before, but it will be breaking, so we’ll need to do a major release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReducingDiskFootprint - Ubuntu Wiki
The most obvious technique to reduce disk space is to strip out all unnecessary software packages from the install image.
Read more >
Reduce Disk Space in React App By 60% Using PNPM
Reduce the Disk space in microservices ReactJS application using pnpm by 60% ... Are you working on multiple React projects with common dependencies?...
Read more >
I reclaimed 10GB of disk space from node_modules
I reclaimed 10GB of disk space from node_modules ... Somewhat logically, each of the dependencies in your project's node_modules directory ...
Read more >
Reduce Dependency Proxy Storage - GitLab Documentation
To reclaim disk space used by image blobs that are no longer needed, use the Dependency Proxy API to clear the entire cache....
Read more >
Reduce size of target directory #66348 - rust-lang/rust - GitHub
If I compress a 4 GB target directory with 7-zip, it compresses to about 700 MB, so even if all of the data...
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