mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Change default target from ES5 to ESNext in compiler
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
This commit is contained in:
co-authored by
DanielRosenwasser
parent
83d6a3d8db
commit
bd4ead17a3
@@ -583,7 +583,7 @@ export const targetOptionDeclaration: CommandLineOptionOfCustomType = {
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
|
||||
defaultValueDescription: ScriptTarget.ES5,
|
||||
defaultValueDescription: ScriptTarget.ESNext,
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -8989,7 +8989,7 @@ const _computedOptions = createComputedCompilerOptions({
|
||||
(compilerOptions.module === ModuleKind.Node18 && ScriptTarget.ES2022) ||
|
||||
(compilerOptions.module === ModuleKind.Node20 && ScriptTarget.ES2023) ||
|
||||
(compilerOptions.module === ModuleKind.NodeNext && ScriptTarget.ESNext) ||
|
||||
ScriptTarget.ES5);
|
||||
ScriptTarget.ESNext);
|
||||
},
|
||||
},
|
||||
module: {
|
||||
|
||||
Reference in New Issue
Block a user