浏览代码

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 个月前
父节点
当前提交
e9a8fd5392
共有 3 个文件被更改,包括 129 次插入182 次删除
  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
文件差异内容过多而无法显示
查看文件


+ 0
- 2
package.json 查看文件

@@ -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 查看文件

@@ -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';

正在加载...
取消
保存