-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.SuggestionAn idea for TypeScriptAn idea for TypeScript
Description
From #44656
Should this function return ModuleKind.ES2020 and ES2022 following the
target
version? It seems #33893 missed this, and I wonder this needs to be fixed.TypeScript/src/compiler/utilities.ts
Lines 6035 to 6039 in 5afe42e
export function getEmitModuleKind(compilerOptions: {module?: CompilerOptions["module"], target?: CompilerOptions["target"]}) { return typeof compilerOptions.module === "number" ? compilerOptions.module : getEmitScriptTarget(compilerOptions) >= ScriptTarget.ES2015 ? ModuleKind.ES2015 : ModuleKind.CommonJS; }
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.SuggestionAn idea for TypeScriptAn idea for TypeScript