Quellcode durchsuchen

[RN] Polyfill __filename ASAP

master
Lyubo Marinov vor 7 Jahren
Ursprung
Commit
f35578c803

+ 0
- 1
react/features/base/lib-jitsi-meet/native/index.js Datei anzeigen

1
 import './polyfills-browser';
1
 import './polyfills-browser';
2
-import './polyfills-browserify';
3
 import './WiFiStats';
2
 import './WiFiStats';

react/features/base/lib-jitsi-meet/native/polyfills-browserify.js → react/features/base/lib-jitsi-meet/native/polyfills-bundler.js Datei anzeigen


+ 13
- 3
react/index.native.js Datei anzeigen

1
-// FIXME: remove once react-native-webrtc and react-native-prompt imports
2
-// PropTypes from the 'prop-types' lib instead of 'react'.
3
-import './features/base/react/prop-types-polyfill.js';
1
+// FIXME The bundler-related (and the browser-related) polyfills were born at
2
+// the very early days of prototyping the execution of lib-jitsi-meet on
3
+// react-native. Today, the feature base/lib-jitsi-meet should not be
4
+// responsible for such polyfills because it is not the only feature relying on
5
+// them. Additionally, the polyfills are usually necessary earlier than the
6
+// execution of base/lib-jitsi-meet (which is understandable given that the
7
+// polyfills are globals). The remaining problem to be solved here is where to
8
+// collect the polyfills' files.
9
+import './features/base/lib-jitsi-meet/native/polyfills-bundler';
10
+
11
+// FIXME: Remove once react-native-webrtc and react-native-prompt import
12
+// PropTypes from 'prop-types' instead of 'react'.
13
+import './features/base/react/prop-types-polyfill';
4
 
14
 
5
 import PropTypes from 'prop-types';
15
 import PropTypes from 'prop-types';
6
 import React, { Component } from 'react';
16
 import React, { Component } from 'react';

Laden…
Abbrechen
Speichern