Skip to content

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

Merged
Wesley Wigham (weswigham) merged 1 commit into
microsoft:mainfrom
weswigham:esm-index-entrypoints
Feb 11, 2022
Merged

ESM mode nonrelative imports should assume index.js entrypoints even …#47854
Wesley Wigham (weswigham) merged 1 commit into
microsoft:mainfrom
weswigham:esm-index-entrypoints

Conversation

@weswigham

Copy link
Copy Markdown
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
Wesley Wigham (weswigham) merged commit 1bdb0d9 into microsoft:mainFeb 11, 2022
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Milestone BugPRs 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

@weswigham@andrewbranch@typescript-bot