Bladeren bron

fix(rn,polyfills) use core-js for promise polyfills

We use the same on the web, on browsers that don't support them.
factor2
Saúl Ibarra Corretgé 4 maanden geleden
bovenliggende
commit
e9a8fd5392
3 gewijzigde bestanden met toevoegingen van 129 en 182 verwijderingen
  1. 127
    178
      package-lock.json
  2. 0
    2
      package.json
  3. 2
    2
      react/features/mobile/polyfills/browser.js

+ 127
- 178
package-lock.json
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 0
- 2
package.json Bestand weergeven

@@ -75,8 +75,6 @@
75 75
     "null-loader": "4.0.1",
76 76
     "optional-require": "1.0.3",
77 77
     "pixelmatch": "5.3.0",
78
-    "promise.allsettled": "1.0.4",
79
-    "promise.withresolvers": "1.0.3",
80 78
     "punycode": "2.3.0",
81 79
     "react": "18.2.0",
82 80
     "react-dom": "18.2.0",

+ 2
- 2
react/features/mobile/polyfills/browser.js Bestand weergeven

@@ -4,8 +4,8 @@ import { NativeModules, Platform } from 'react-native';
4 4
 import BackgroundTimer from 'react-native-background-timer';
5 5
 import { TextDecoder, TextEncoder } from 'text-encoding';
6 6
 
7
-import 'promise.allsettled/auto'; // Promise.allSettled.
8
-import 'promise.withresolvers/auto'; // Promise.withResolvers.
7
+import 'core-js/features/promise/all-settled'; // Promise.allSettled.
8
+import 'core-js/features/promise/with-resolvers'; // Promise.withResolvers.
9 9
 import 'react-native-url-polyfill/auto'; // Complete URL polyfill.
10 10
 
11 11
 import Storage from './Storage';

Laden…
Annuleren
Opslaan