Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest avoiding UMD for CJS only packages #70

Open
bluwy opened this issue Sep 9, 2023 · 1 comment
Open

Suggest avoiding UMD for CJS only packages #70

bluwy opened this issue Sep 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bluwy
Copy link
Owner

bluwy commented Sep 9, 2023

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 bluwy added the enhancement New feature or request label Sep 9, 2023
@bluwy
Copy link
Owner Author

bluwy commented Sep 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant