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:
parent
fe7f4c0241
commit
2881355f37
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ export function inferredProjectCompilerOptions(
|
||||||
): Proto.ExternalProjectCompilerOptions {
|
): Proto.ExternalProjectCompilerOptions {
|
||||||
const projectConfig: Proto.ExternalProjectCompilerOptions = {
|
const projectConfig: Proto.ExternalProjectCompilerOptions = {
|
||||||
module: 'commonjs' as Proto.ModuleKind,
|
module: 'commonjs' as Proto.ModuleKind,
|
||||||
target: 'es2016' as Proto.ScriptTarget,
|
target: 'es2020' as Proto.ScriptTarget,
|
||||||
jsx: 'preserve' as Proto.JsxEmit,
|
jsx: 'preserve' as Proto.JsxEmit,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue