Procházet zdrojové kódy

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é před 8 měsíci
rodič
revize
3f51b10245
2 změnil soubory, kde provedl 2 přidání a 7 odebrání
  1. 0
    5
      react/features/app/components/AbstractApp.ts
  2. 2
    2
      tsconfig.web.json

+ 0
- 5
react/features/app/components/AbstractApp.ts Zobrazit soubor

26
  * @abstract
26
  * @abstract
27
  */
27
  */
28
 export class AbstractApp<P extends IProps = IProps> extends BaseApp<P> {
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
      * Initializes the app.
30
      * Initializes the app.
36
      *
31
      *

+ 2
- 2
tsconfig.web.json Zobrazit soubor

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

Načítá se…
Zrušit
Uložit