Skip to content

Commit

Permalink
fix: Update babel deps to babel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl committed Nov 26, 2019
1 parent 87bdfa8 commit 7a0c380
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Expand Up @@ -60,7 +60,7 @@ module.exports = function(grunt) {
options: {
babelrc: false,
comments: false,
presets: ["babili"],
presets: ["minify"],
sourceMap: true,
},
files: {
Expand All @@ -72,7 +72,7 @@ module.exports = function(grunt) {
babelrc: false,
comments: true,
plugins: [
["transform-es2015-modules-umd", {
["@babel/transform-modules-umd", {
globals: {
"webextension-polyfill": "browser",
},
Expand Down
11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -17,12 +17,13 @@
},
"homepage": "https://github.com/mozilla/webextension-polyfill",
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-transform-modules-umd": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"async-wait-until": "^1.1.5",
"babel-core": "^6.26.3",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-preset-babili": "^0.0.10",
"babel-preset-es2017": "^6.24.1",
"babel-preset-minify": "^0.5.1",
"browserify": "^16.2.2",
"chai": "^3.5.0",
"chromedriver": "^78.0.1",
Expand All @@ -32,7 +33,7 @@
"geckodriver": "^1.11.2",
"global-replaceify": "^1.0.0",
"grunt": "^1.0.1",
"grunt-babel": "^6.0.0",
"grunt-babel": "^8.0.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-coveralls": "^1.0.1",
"grunt-replace": "^1.0.1",
Expand Down
8 changes: 6 additions & 2 deletions test/mocha-babel.js
@@ -1,3 +1,7 @@
require("babel-core/register")({
presets: ["es2017"],
require("@babel/register")({
presets: [["@babel/env", {
targets: {
node: "current",
},
}]],
});

0 comments on commit 7a0c380

Please sign in to comment.