installing @codspeed/core currently takes up 5MB of space on disk, which can be reduced quite a bit
https://npmgraph.js.org/?q=@codspeed/core
axios can be replaced with just fetch, or if mroe complex utilities are needed ky or xior can also work
- this alone would reduce the install size by 3MB
find-up can be replaced with empathic, which is smaller and faster
- the packages is currently publishing both CJS and ESM files, along with source maps for both the code and types.
- node 20.12+ supports
require(esm), so you could drop the CJS build if you drop support for versions below it
- source maps are generally not necessary if you don't minify the packaged code, and not-minified code without source maps has the best size-to-benefit ratio out of the possibilities
all in all i think core could be brought down to about 1/9th of the original size
i would be up for helping with this if you want!
installing
@codspeed/corecurrently takes up 5MB of space on disk, which can be reduced quite a bithttps://npmgraph.js.org/?q=@codspeed/core
axioscan be replaced with justfetch, or if mroe complex utilities are neededkyorxiorcan also workfind-upcan be replaced withempathic, which is smaller and fasterrequire(esm), so you could drop the CJS build if you drop support for versions below itall in all i think
corecould be brought down to about 1/9th of the original sizei would be up for helping with this if you want!