Reduce disk footprint of dependencies
See original GitHub issueWhen 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:
- Created 2 years ago
- Comments:20 (12 by maintainers)
Top 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 >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
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.
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.