From 3f51b10245161fdfa4c382e9c125fe7f5d5061fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 3 Feb 2025 13:21:33 +0100 Subject: [PATCH] fix(ts) set ES2024 as our target for web We depend on ES2024 features. For environments without full support, webpack will add polyfills. --- react/features/app/components/AbstractApp.ts | 5 ----- tsconfig.web.json | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/react/features/app/components/AbstractApp.ts b/react/features/app/components/AbstractApp.ts index 10069d5284..e1dd92087d 100644 --- a/react/features/app/components/AbstractApp.ts +++ b/react/features/app/components/AbstractApp.ts @@ -26,11 +26,6 @@ export interface IProps { * @abstract */ export class AbstractApp

extends BaseApp

{ - /** - * The deferred for the initialization {{promise, resolve, reject}}. - */ - _init: PromiseWithResolvers; - /** * Initializes the app. * diff --git a/tsconfig.web.json b/tsconfig.web.json index 1d0ee77a12..25f045649b 100644 --- a/tsconfig.web.json +++ b/tsconfig.web.json @@ -3,9 +3,9 @@ "compilerOptions": { "allowSyntheticDefaultImports": true, "module": "es2020", - "target": "es2020", + "target": "es2024", "jsx": "react", - "lib": [ "ES2020", "ES2024.Promise", "DOM" ], + "lib": [ "ES2024", "DOM" ], "skipLibCheck": true, "moduleResolution": "Node", "strict": true,