]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
chore: switch to `babel-preset-env`
authorNicolas Coden <nicolas@ncoden.fr>
Mon, 2 Apr 2018 16:28:08 +0000 (18:28 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Mon, 2 Apr 2018 16:28:08 +0000 (18:28 +0200)
.babelrc
package.json

index c501d42ac057cc78eb084a079269c46c99091fec..75c7dc6c5bf423b83677c6abc553ea848885fc44 100644 (file)
--- a/.babelrc
+++ b/.babelrc
@@ -1,13 +1,14 @@
 {
-       "plugins": [
-       "transform-es2015-arrow-functions",
-       "transform-es2015-block-scoped-functions",
-       "transform-es2015-block-scoping",
-       "transform-es2015-classes",
-       "transform-es2015-destructuring",
-       "transform-es2015-template-literals",
-       "transform-es2015-parameters",
-       "transform-es2015-shorthand-properties",
-       "transform-es2015-spread"
+  "presets": [
+    ["env", {
+      "targets": {
+        "browsers": [
+          "last 2 versions",
+          "ie >= 9",
+          "ios >= 7",
+          "android >= 4.4"
+        ]
+      }
+    }]
   ]
 }
index acea280fdf95d71e60fb7ec88af01e30aaffc437..4ebf2917bcce24e2355db450bd0a8dd4e93d2d2d 100644 (file)
     "autoprefixer": "^6.7.7",
     "babel-core": "^6.26.0",
     "babel-loader": "^7.1.2",
-    "babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
-    "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0",
-    "babel-plugin-transform-es2015-block-scoping": "^6.26.0",
-    "babel-plugin-transform-es2015-classes": "^6.24.1",
-    "babel-plugin-transform-es2015-destructuring": "^6.23.0",
-    "babel-plugin-transform-es2015-parameters": "^6.24.1",
-    "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1",
-    "babel-plugin-transform-es2015-spread": "^6.22.0",
-    "babel-plugin-transform-es2015-template-literals": "^6.22.0",
+    "babel-preset-env": "^1.6.1",
     "browser-sync": "^2.18.12",
     "chai-jquery": "^2.0.0",
     "chalk": "^1.1.1",