Skip to content

Commit 7a0c380

Browse files
committed
fix: Update babel deps to babel 7
1 parent 87bdfa8 commit 7a0c380

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = function(grunt) {
6060
options: {
6161
babelrc: false,
6262
comments: false,
63-
presets: ["babili"],
63+
presets: ["minify"],
6464
sourceMap: true,
6565
},
6666
files: {
@@ -72,7 +72,7 @@ module.exports = function(grunt) {
7272
babelrc: false,
7373
comments: true,
7474
plugins: [
75-
["transform-es2015-modules-umd", {
75+
["@babel/transform-modules-umd", {
7676
globals: {
7777
"webextension-polyfill": "browser",
7878
},

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
},
1818
"homepage": "https://github.com/mozilla/webextension-polyfill",
1919
"devDependencies": {
20+
"@babel/core": "^7.0.0",
21+
"@babel/plugin-transform-modules-umd": "^7.0.0",
22+
"@babel/preset-env": "^7.0.0",
23+
"@babel/register": "^7.0.0",
2024
"async-wait-until": "^1.1.5",
21-
"babel-core": "^6.26.3",
2225
"babel-eslint": "^8.0.1",
23-
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
24-
"babel-preset-babili": "^0.0.10",
25-
"babel-preset-es2017": "^6.24.1",
26+
"babel-preset-minify": "^0.5.1",
2627
"browserify": "^16.2.2",
2728
"chai": "^3.5.0",
2829
"chromedriver": "^78.0.1",
@@ -32,7 +33,7 @@
3233
"geckodriver": "^1.11.2",
3334
"global-replaceify": "^1.0.0",
3435
"grunt": "^1.0.1",
35-
"grunt-babel": "^6.0.0",
36+
"grunt-babel": "^8.0.0",
3637
"grunt-contrib-concat": "^1.0.1",
3738
"grunt-coveralls": "^1.0.1",
3839
"grunt-replace": "^1.0.1",

test/mocha-babel.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
require("babel-core/register")({
2-
presets: ["es2017"],
1+
require("@babel/register")({
2+
presets: [["@babel/env", {
3+
targets: {
4+
node: "current",
5+
},
6+
}]],
37
});

0 commit comments

Comments
 (0)