Skip to content

ESM mode nonrelative imports should assume index.js entrypoints even … #47854

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

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

weswigham
Copy link
Member

…if no package main is present

In addition, esm-mode relative directory imports no longer attempt to read entrypoints from a directory's package.json, per node's runtime behavior.

Fixes #47848

@weswigham weswigham merged commit 1bdb0d9 into microsoft:main Feb 11, 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.

TypeScript module "NodeNext" does not resolve index.d.ts from CJS modules
3 participants