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

Allow extensionless mains for cjs mode packages even from an esm import #47893

Merged

Conversation

weswigham
Copy link
Member

Do note that type: module package do still require the extension on main; if you actually try to author an esm package with an extensionless main in node you'll get a deprecation warning saying the extension is required.

Fixes #46770

@weswigham weswigham merged commit e32281c into microsoft:main Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot import some packages when tsconfig.json specifies "module": "nodenext"
3 participants