Skip to content

Commit 13c5a62

Browse files
committed
chore(ecmascript): switch to ES2024
1 parent 1bc5a5c commit 13c5a62

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

frontend/src/main.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
2-
* Top-level await requires ES2022 (at least) as target and module
3-
* for TypeScript compiler (check tsconfig.json)
4-
* https://caniuse.com/mdn-javascript_operators_await_top_level
2+
* These features are used across the codebase and requires specific
3+
* ECMAScript versions as target in TypeScript compiler (check tsconfig.json):
4+
* - Top-level: ES2022 https://caniuse.com/mdn-javascript_operators_await_top_level
5+
* - Object.groupBy: ES2024 https://caniuse.com/mdn-javascript_builtins_object_groupby
56
*/
67
import { createApp } from 'vue';
78
import { routes } from 'vue-router/auto-routes';

frontend/types/global/components.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,4 @@ declare module 'vue' {
221221
WizardMetadata: typeof import('./../../src/components/Wizard/WizardMetadata.vue')['default']
222222
WizardRemoteAccess: typeof import('./../../src/components/Wizard/WizardRemoteAccess.vue')['default']
223223
}
224-
}
224+
}

frontend/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default defineConfig({
8080
/**
8181
* See main.ts for an explanation of this target
8282
*/
83-
target: 'esnext',
83+
target: 'es2024',
8484
/**
8585
* Disable chunk size warnings
8686
*/

packages/configs/typescript/base.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"compilerOptions": {
4-
"target": "ESNext",
4+
"target": "ES2024",
55
"module": "Preserve",
66
"moduleResolution": "Bundler",
77
"esModuleInterop": true,

0 commit comments

Comments
 (0)