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

Ignore extension format check for module exports condition #10

Closed
bluwy opened this issue Dec 18, 2022 · 0 comments
Closed

Ignore extension format check for module exports condition #10

bluwy opened this issue Dec 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@bluwy
Copy link
Owner

bluwy commented Dec 18, 2022

The "module" exports condition can use any extension regardless of the code format (ESM or CJS) as nodejs ignores the condition by default. Similarly to the "exports" field, it's used by bundlers only so the extension restriction doesn't apply here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant