Skip to content

Conversation

weswigham
Copy link
Member

@weswigham weswigham commented May 23, 2022

Since import.meta itself is keyed off module and not target (and thus should always be allowed in esm files in node module targets).

Fixes #48876

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug For Milestone Bug PRs that fix a bug with a specific milestone and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels May 23, 2022
@weswigham weswigham merged commit 194a2ae into microsoft:main May 24, 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.

import=require emits incorrectly with NodeNext, target<=es2018, when emitting as ESM
3 participants