pkg-size.dev icon indicating copy to clipboard operation
pkg-size.dev copied to clipboard

Support syntax and Node.js ESM/CJS checks

Open privatenumber opened this issue 1 year ago • 0 comments

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:

  • https://github.com/nodejs/cjs-module-lexer
  • https://github.com/esm-dev/esm.sh/tree/main/packages/esm-cjs-lexer

privatenumber avatar Jul 30 '23 03:07 privatenumber