Sfoglia il codice sorgente

cleanup: drop polyfills which were required for IE11

master
Saúl Ibarra Corretgé 6 anni fa
parent
commit
453c4b99dc
4 ha cambiato i file con 3 aggiunte e 47 eliminazioni
  1. 0
    19
      package-lock.json
  2. 0
    2
      package.json
  3. 1
    4
      react/features/base/lib-jitsi-meet/_.web.js
  4. 2
    22
      webpack.config.js

+ 0
- 19
package-lock.json Vedi File

@@ -4178,25 +4178,6 @@
4178 4178
         "babel-types": "^6.24.1"
4179 4179
       }
4180 4180
     },
4181
-    "babel-polyfill": {
4182
-      "version": "6.26.0",
4183
-      "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
4184
-      "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=",
4185
-      "dev": true,
4186
-      "requires": {
4187
-        "babel-runtime": "^6.26.0",
4188
-        "core-js": "^2.5.0",
4189
-        "regenerator-runtime": "^0.10.5"
4190
-      },
4191
-      "dependencies": {
4192
-        "regenerator-runtime": {
4193
-          "version": "0.10.5",
4194
-          "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
4195
-          "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=",
4196
-          "dev": true
4197
-        }
4198
-      }
4199
-    },
4200 4181
     "babel-preset-env": {
4201 4182
       "version": "1.6.1",
4202 4183
       "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.6.1.tgz",

+ 0
- 2
package.json Vedi File

@@ -80,7 +80,6 @@
80 80
     "babel-core": "6.26.0",
81 81
     "babel-eslint": "8.0.3",
82 82
     "babel-loader": "7.1.2",
83
-    "babel-polyfill": "6.26.0",
84 83
     "babel-preset-env": "1.6.1",
85 84
     "babel-preset-react": "6.24.1",
86 85
     "babel-preset-stage-1": "6.24.1",
@@ -102,7 +101,6 @@
102 101
     "string-replace-loader": "1.3.0",
103 102
     "style-loader": "0.19.0",
104 103
     "uglifyjs-webpack-plugin": "1.2.2",
105
-    "whatwg-fetch": "2.0.3",
106 104
     "webpack": "3.9.1",
107 105
     "webpack-dev-server": "2.9.5"
108 106
   },

+ 1
- 4
react/features/base/lib-jitsi-meet/_.web.js Vedi File

@@ -1,7 +1,4 @@
1
-/* @flow */
2
-
3
-// Polyfill URL for Internet Explorer.
4
-import 'url-polyfill';
1
+// @flow
5 2
 
6 3
 declare var JitsiMeetJS: Object;
7 4
 

+ 2
- 22
webpack.config.js Vedi File

@@ -89,11 +89,6 @@ const config = {
89 89
 
90 90
             loader: 'expose-loader?$!expose-loader?jQuery',
91 91
             test: /\/node_modules\/jquery\/.*\.js$/
92
-        }, {
93
-            // Set scope to window for URL polyfill.
94
-
95
-            loader: 'imports-loader?this=>window',
96
-            test: /\/node_modules\/url-polyfill\/.*\.js$/
97 92
         }, {
98 93
             // Allow CSS to be imported into JavaScript.
99 94
 
@@ -137,13 +132,7 @@ const config = {
137 132
 module.exports = [
138 133
     Object.assign({}, config, {
139 134
         entry: {
140
-            'app.bundle': [
141
-
142
-                // babel-polyfill and fetch polyfill are required for IE11.
143
-                'babel-polyfill',
144
-                'whatwg-fetch',
145
-                './app.js'
146
-            ],
135
+            'app.bundle': './app.js',
147 136
 
148 137
             'device_selection_popup_bundle':
149 138
                 './react/features/settings/popup.js',
@@ -153,10 +142,6 @@ module.exports = [
153 142
 
154 143
             'dial_in_info_bundle': [
155 144
 
156
-                // babel-polyfill and fetch polyfill are required for IE11.
157
-                'babel-polyfill',
158
-                'whatwg-fetch',
159
-
160 145
                 // atlaskit does not support React 16 prop-types
161 146
                 './react/features/base/react/prop-types-polyfill.js',
162 147
 
@@ -172,12 +157,7 @@ module.exports = [
172 157
     // JitsiMeetExternalAPI).
173 158
     Object.assign({}, config, {
174 159
         entry: {
175
-            'external_api': [
176
-
177
-                // XXX Required by at least IE11 at the time of this writing.
178
-                'babel-polyfill',
179
-                './modules/API/external/index.js'
180
-            ]
160
+            'external_api': './modules/API/external/index.js'
181 161
         },
182 162
         output: Object.assign({}, config.output, {
183 163
             library: 'JitsiMeetExternalAPI',

Loading…
Annulla
Salva