Open SukkaW opened 3 months ago
https://npmgraph.js.org/?q=taze@0.16.7
So acorn
is back, through unconfig -> importx -> mlly -> acorn
.
I created a PR to drop mlly
from unconfig
before (https://github.com/antfu-collective/unconfig/pull/27) and now it is back. This increases installation size by 500 KiB.
Also jiti
(which bundles a full Babel inside the dist) has an installation size of 1.9 MiB, and has been required by taze
through unconfig -> importx -> jiti
.
Also esbuild
(along with its binary) has also been required through unconfig -> import -> tsx -> esbuild
.
What would you suggest? In a way they are "modern" dependencies that you are likely to have installed by some other packages, on the other way, there isn't really "smaller" alternative to solve the problem (see https://github.com/antfu-collective/importx). Until someday that Node.js supports loading TS files natively without cache, we might get rid of the complexity of importx
, otherwise I see we still need esbuild/jiti for correctness.
What would you suggest?
Previously npm-registry-fetch
and npm-package-args
were bundled. After they were removed and brought back they became direct dependencies again.
Let's start with re-bundling them first. This should help a lot.
As we discussed before, when taze
is installed as a devDependency
inside projects it would be fine. Since npm i -g
doesn't share dependencies, the installation size matters more when using taze
as a globally available cli.
After my two PRs, the installation size of taze
has dropped by nearly 50%. IMHO we could still do better.
I'll try to reduce the size of importx
later as the JITI v2 release
Describe the bug
So
taze@0.13.8
has an installation size of 5.06 MiB: https://packagephobia.com/result?p=taze@0.13.8And now
taze@0.16.7
has an installation size of 24.4 MiB: https://packagephobia.com/result?p=taze@0.16.7Reproduction
https://packagephobia.com/result?p=taze@0.16.7
System Info
Used Package Manager
pnpm
Validations
Contributions