Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

build: drop dependency on babel-pollyfill

Saúl Ibarra Corretgé673dc6e87374
diff --git a/app.js b/app.js
index f892d3e156..0f65aaf250 100644
--- a/app.js
+++ b/app.js
@@ -1,6 +1,5 @@
/* application specific logic */
-import "babel-polyfill";
import "jquery";
import "jquery-contextmenu";
import "jquery-ui";
diff --git a/package.json b/package.json
index 52b13216c4..c233e84cc2 100644
--- a/package.json
+++ b/package.json
@@ -65,7 +65,6 @@
"babel-core": "6.24.0",
"babel-eslint": "7.2.1",
"babel-loader": "6.4.1",
- "babel-polyfill": "6.23.0",
"babel-preset-es2015": "6.24.0",
"babel-preset-react": "6.23.0",
"babel-preset-stage-1": "6.22.0",
diff --git a/webpack.config.js b/webpack.config.js
index 8d31ab60a8..1f2a56aacb 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,28 +1,26 @@
/* global __dirname */
-require('babel-polyfill'); // Define Object.assign() from ES6 in ES5.
+const HasteResolverPlugin = require('haste-resolver-webpack-plugin');
+const process = require('process');
+const webpack = require('webpack');
-var HasteResolverPlugin = require('haste-resolver-webpack-plugin');
-var process = require('process');
-var webpack = require('webpack');
-
-var aui_css = __dirname + '/node_modules/@atlassian/aui/dist/aui/css/';
+const aui_css = __dirname + '/node_modules/@atlassian/aui/dist/aui/css/';
/**
* The URL of the Jitsi Meet deployment to be proxy to in the context of
* development with webpack-dev-server.
*/
-var devServerProxyTarget
+const devServerProxyTarget
= process.env.WEBPACK_DEV_SERVER_PROXY_TARGET || 'https://beta.meet.jit.si';
-var minimize
+const minimize
= process.argv.indexOf('-p') !== -1
|| process.argv.indexOf('--optimize-minimize') !== -1;
-var node_modules = __dirname + '/node_modules/';
-var plugins = [
+const node_modules = __dirname + '/node_modules/';
+const plugins = [
new HasteResolverPlugin()
];
-var strophe = /\/node_modules\/strophe(js-plugins)?\/.*\.js$/;
+const strophe = /\/node_modules\/strophe(js-plugins)?\/.*\.js$/;
if (minimize) {
// XXX Webpack's command line argument -p is not enough. Further
@@ -54,7 +52,7 @@ if (minimize) {
// The base Webpack configuration to bundle the JavaScript artifacts of
// jitsi-meet such as app.bundle.js and external_api.js.
-var config = {
+const config = {
devServer: {
https: true,
inline: true,
@@ -160,7 +158,7 @@ var config = {
}
};
-var configs = [
+const configs = [
// The Webpack configuration to bundle app.bundle.js (aka APP).
Object.assign({}, config, {
@@ -196,7 +194,7 @@ module.exports = configs;
* target, undefined; otherwise, the path to the local file to be served.
*/
function devServerProxyBypass(request) {
- var path = request.path;
+ let path = request.path;
// Use local files from the css and libs directories.
if (path.startsWith('/css/')) {