From: Nicolas Coden Date: Mon, 2 Apr 2018 16:28:08 +0000 (+0200) Subject: chore: switch to `babel-preset-env` X-Git-Tag: v6.6.0~3^2~241^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb33ceea7;p=thirdparty%2Ffoundation%2Ffoundation-sites.git chore: switch to `babel-preset-env` --- diff --git a/.babelrc b/.babelrc index c501d42ac..75c7dc6c5 100644 --- 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" + ] + } + }] ] } diff --git a/package.json b/package.json index acea280fd..4ebf2917b 100644 --- a/package.json +++ b/package.json @@ -36,15 +36,7 @@ "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",