Use es2020 as the default target for js/ts implicit projects

Fixes https://github.com/microsoft/TypeScript/issues/43596

For users targetting browsers, this should be a reasonable default. We'd like more feedback during insiders for users targetting other environments
This commit is contained in:
Matt Bierner 2021-04-14 17:26:55 -07:00
parent fe7f4c0241
commit 2881355f37
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -28,7 +28,7 @@ export function inferredProjectCompilerOptions(
): Proto.ExternalProjectCompilerOptions {
const projectConfig: Proto.ExternalProjectCompilerOptions = {
module: 'commonjs' as Proto.ModuleKind,
target: 'es2016' as Proto.ScriptTarget,
target: 'es2020' as Proto.ScriptTarget,
jsx: 'preserve' as Proto.JsxEmit,
};