Skip to content

Commit 5c5943e

Browse files
feat: Bumped default tsconfig target from es2016 to es2022
All supported runtimes ought to support the 2022 standard. Can still manually change the target if desired. This change is to provide a better user experience by default.
1 parent 14e8cba commit 5c5943e

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@godot-js/editor": patch
3+
---
4+
5+
**Feature:** Bumped default tsconfig target from es2016 to es2022
6+
7+
All supported runtimes ought to support the 2022 standard. You can
8+
still manually change the target if desired. This change is to
9+
provide a better user experience by default.

scripts/jsb.editor/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1313

1414
/* Language and Environment */
15-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1616
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1717
// "jsx": "preserve", /* Specify what JSX code is generated. */
1818
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

scripts/jsb.runtime/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1313

1414
/* Language and Environment */
15-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1616
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1717
// "jsx": "preserve", /* Specify what JSX code is generated. */
1818
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

scripts/jsb.static/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1313

1414
/* Language and Environment */
15-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1616
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1717
// "jsx": "preserve", /* Specify what JSX code is generated. */
1818
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

scripts/presets/jsconfig.json.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
33
"module": "CommonJS",
4-
"target": "es2016"
4+
"target": "es2022"
55
}
66
}

scripts/presets/tsconfig.json.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

tests/project/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

0 commit comments

Comments
 (0)