publint icon indicating copy to clipboard operation
publint copied to clipboard

Suggest avoiding UMD for CJS only packages

Open bluwy opened this issue 2 years ago • 1 comments

~~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 avatar Sep 09 '23 06:09 bluwy

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.

bluwy avatar Sep 28 '23 11:09 bluwy