feat(ecmascript)!: switch to ES2024 (#2505)

The ECMAScript upgrade is needed for `Object.groupBy`, which we use across the codebase
This commit is contained in:
Fernando Fernández
2026-03-22 11:25:36 +01:00
committed by GitHub
parent 9d8c9080ed
commit 3398fefdcd
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
/**
* Top-level await requires ES2022 (at least) as target and module
* for TypeScript compiler (check tsconfig.json)
* https://caniuse.com/mdn-javascript_operators_await_top_level
* These features are used across the codebase and requires specific
* ECMAScript versions as target in TypeScript compiler (check tsconfig.json):
* - Top-level: ES2022 https://caniuse.com/mdn-javascript_operators_await_top_level
* - Object.groupBy: ES2024 https://caniuse.com/mdn-javascript_builtins_object_groupby
*/
import '@jellyfin-vue/i18n';
import { createApp } from 'vue';
+1 -1
View File
@@ -63,7 +63,7 @@ export default defineConfig({
/**
* See main.ts for an explanation of this target
*/
target: 'esnext',
target: 'es2024',
cssCodeSplit: true,
cssMinify: 'lightningcss',
modulePreload: {