bluwy / publint

Lint packaging errors
https://publint.dev
MIT License
932 stars 19 forks source link

Suggest avoiding UMD for CJS only packages #70

Open bluwy opened 10 months ago

bluwy commented 10 months ago

ESM importing a UMD package does not work as the named imports interop fails in nodejs.

ESM importing a UMD package does not work well for treeshaking

bluwy commented 9 months ago

Gave an attempt at https://github.com/bluwy/publint/tree/umd-suggestion. Also updated the description about named imports interop. It seems to affect IIFE specifically, not UMD.