jsr icon indicating copy to clipboard operation
jsr copied to clipboard

Built-in bundlephobia

Open sillvva opened this issue 1 year ago • 3 comments

Any chance of having built-in bundlephobia package size, module size, and gzipped size for each module?

sillvva avatar Mar 03 '24 15:03 sillvva

May I suggest using https://bundlejs.com/ or a custom solution. Bundlephobia still uses Webpack 4 to build the package, and there are packages it fails to build. And it does not support exports and imports package.json fields.

Demivan avatar Mar 04 '24 06:03 Demivan

whats the usecase for this?

crowlKats avatar Mar 28 '24 09:03 crowlKats

whats the usecase for this?

Take schema validation libraries for example. You have Zod, Yup, Valibot, Typebox, etc. They all pretty much do the same thing. Being able to determine tree-shakeability, gzip size, etc helps developers make an informed decision when it comes to similar packages.

sillvva avatar Mar 31 '24 17:03 sillvva