mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2026-09-03 05:10:26 +03:00
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:
@@ -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';
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user