mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
use babel
This commit is contained in:
@@ -15,5 +15,6 @@
|
|||||||
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
|
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
|
||||||
"maxlen": 80, // {int} Max number of characters per line
|
"maxlen": 80, // {int} Max number of characters per line
|
||||||
"latedef": false, //This option prohibits the use of a variable before it was defined
|
"latedef": false, //This option prohibits the use of a variable before it was defined
|
||||||
"laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.
|
"laxbreak": true, //Ignore line breaks around "=", "==", "&&", etc.
|
||||||
|
"esnext": true //support ES2015
|
||||||
}
|
}
|
||||||
|
|||||||
1
app.js
1
app.js
@@ -1,6 +1,7 @@
|
|||||||
/* global $, JitsiMeetJS, config, Promise */
|
/* global $, JitsiMeetJS, config, Promise */
|
||||||
/* application specific logic */
|
/* application specific logic */
|
||||||
|
|
||||||
|
import "babel-polyfill";
|
||||||
require("jquery");
|
require("jquery");
|
||||||
require("jquery-ui");
|
require("jquery-ui");
|
||||||
require("strophe");
|
require("strophe");
|
||||||
|
|||||||
13
package.json
13
package.json
@@ -42,7 +42,10 @@
|
|||||||
"jshint": "2.8.0",
|
"jshint": "2.8.0",
|
||||||
"precommit-hook": "3.0.0",
|
"precommit-hook": "3.0.0",
|
||||||
"uglify-js": "2.4.24",
|
"uglify-js": "2.4.24",
|
||||||
"clean-css": "*"
|
"clean-css": "*",
|
||||||
|
"babelify": "*",
|
||||||
|
"babel-preset-es2015": "*",
|
||||||
|
"babel-polyfill": "*"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -54,9 +57,15 @@
|
|||||||
],
|
],
|
||||||
"browserify": {
|
"browserify": {
|
||||||
"transform": [
|
"transform": [
|
||||||
"browserify-shim"
|
"browserify-shim",
|
||||||
|
["babelify", {
|
||||||
|
"ignore": "node_modules"
|
||||||
|
}]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"babel": {
|
||||||
|
"presets": ["es2015"]
|
||||||
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"jquery": "./node_modules/jquery/dist/jquery.js",
|
"jquery": "./node_modules/jquery/dist/jquery.js",
|
||||||
"jquery-ui": "./node_modules/jquery-ui/jquery-ui.js",
|
"jquery-ui": "./node_modules/jquery-ui/jquery-ui.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user