import-cost
import-cost copied to clipboard
Doesn't work on local packages in monorepo
I'm leveraging yarn workspaces and lerna in one of my projects and it'd be nice to know the import cost of linked, local packages. The packages are linked locally using tsconfig.json
. Strangely enough, it works for raw typescript dependencies but not TSX components. Any ideas?
We don't count the package size manually, we use import-cost package (https://citw.dev/posts/import-cost) which uses webpack under the hood. So, the limitations are on the package or webpack side.