@npmcli/config and npm-registry-fetch significantly contribute to the installation size of taze. We can mitigate this by bundling them.
As previously discussed, unbuild struggles to bundle these dependencies when they are directly imported. However, I discovered that unbuild can easily handle these dependencies when they are dynamically imported.
This PR could potentially reduce the installation size by an additional 35% or possibly even more.
Description
@npmcli/config
andnpm-registry-fetch
significantly contribute to the installation size oftaze
. We can mitigate this by bundling them.As previously discussed,
unbuild
struggles to bundle these dependencies when they are directly imported. However, I discovered thatunbuild
can easily handle these dependencies when they are dynamically imported.This PR could potentially reduce the installation size by an additional 35% or possibly even more.
Linked Issues
N/A
Additional context
The final dist size is 1.5 MiB: