Ver código fonte

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

This reverts commit e9a8fd5392.
factor2
Saúl Ibarra Corretgé 4 meses atrás
pai
commit
bc99a72984
3 arquivos alterados com 182 adições e 129 exclusões
  1. 178
    127
      package-lock.json
  2. 2
    0
      package.json
  3. 2
    2
      react/features/mobile/polyfills/browser.js

+ 178
- 127
package-lock.json
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 2
- 0
package.json Ver arquivo

@@ -75,6 +75,8 @@
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",
78 80
     "punycode": "2.3.0",
79 81
     "react": "18.2.0",
80 82
     "react-dom": "18.2.0",

+ 2
- 2
react/features/mobile/polyfills/browser.js Ver arquivo

@@ -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 'core-js/features/promise/all-settled'; // Promise.allSettled.
8
-import 'core-js/features/promise/with-resolvers'; // Promise.withResolvers.
7
+import 'promise.allsettled/auto'; // Promise.allSettled.
8
+import 'promise.withresolvers/auto'; // Promise.withResolvers.
9 9
 import 'react-native-url-polyfill/auto'; // Complete URL polyfill.
10 10
 
11 11
 import Storage from './Storage';

Carregando…
Cancelar
Salvar