Pārlūkot izejas kodu

fix(ts) set ES2024 as our target for web

We depend on ES2024 features. For environments without full support,
webpack will add polyfills.
factor2
Saúl Ibarra Corretgé 4 mēnešus atpakaļ
vecāks
revīzija
3f51b10245
2 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. 0
    5
      react/features/app/components/AbstractApp.ts
  2. 2
    2
      tsconfig.web.json

+ 0
- 5
react/features/app/components/AbstractApp.ts Parādīt failu

@@ -26,11 +26,6 @@ export interface IProps {
26 26
  * @abstract
27 27
  */
28 28
 export class AbstractApp<P extends IProps = IProps> extends BaseApp<P> {
29
-    /**
30
-     * The deferred for the initialization {{promise, resolve, reject}}.
31
-     */
32
-    _init: PromiseWithResolvers<any>;
33
-
34 29
     /**
35 30
      * Initializes the app.
36 31
      *

+ 2
- 2
tsconfig.web.json Parādīt failu

@@ -3,9 +3,9 @@
3 3
     "compilerOptions": {
4 4
         "allowSyntheticDefaultImports": true,
5 5
         "module": "es2020",
6
-        "target": "es2020",
6
+        "target": "es2024",
7 7
         "jsx": "react",
8
-        "lib": [ "ES2020", "ES2024.Promise", "DOM" ],
8
+        "lib": [ "ES2024", "DOM" ],
9 9
         "skipLibCheck": true,
10 10
         "moduleResolution": "Node",
11 11
         "strict": true,

Notiek ielāde…
Atcelt
Saglabāt