privatenumber / pkg-size.dev

📦🔍 Find the true size of an npm package
https://pkg-size.dev
688 stars 6 forks source link

Support syntax and Node.js ESM/CJS checks #18

Open privatenumber opened 1 year ago

privatenumber commented 1 year ago

https://twitter.com/grumd_osu/status/1684845992821026816?s=20

For ESM detection, we should use: https://github.com/guybedford/es-module-lexer

For CJS detection: