#Package Quality Score - Skypack Docs
▻https://docs.skypack.dev/package-authors/package-checks
- Recommended: Your package.json
contains an ESM export, e.g.: "exports": { "import": "./path/to/entry.js" }
or "exports": { ".": { "import": "…" } }
– Your package.json
contains "type": "module"
– Your package.json
contains a "module": "./path/to/entry.js"
entry (not officially supported by Node.js, but an organic community convention we respect).
This field ensures that you’re shipping modern, standards-compliant JavaScript that works best for users. This ensures your package has more longevity and can be used in more environments, from browsers to #Node to newer projects like Deno. Even traditional web bundlers can benefit from #ESM for more accurate tree-shaking and code analysis.