Skip to content

Commit 3e73ea4

Browse files
committed
chore(ecmascript): switch to ES2024
1 parent 09b28f3 commit 3e73ea4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineConfig({
7373
/**
7474
* See main.ts for an explanation of this target
7575
*/
76-
target: 'esnext',
76+
target: 'es2024',
7777
cssCodeSplit: true,
7878
cssMinify: 'lightningcss',
7979
modulePreload: false,

0 commit comments

Comments
 (0)