From: Nicolas Coden Date: Sat, 2 Jun 2018 18:43:57 +0000 (+0200) Subject: fix: use the "env" babel preset for browserify transformation X-Git-Tag: v6.6.0~3^2~159^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4174473b3;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: use the "env" babel preset for browserify transformation Foundation now require the `env` babel preset with a browserlist, but browserify config is oudated and still uses the `es2015` preset. Changes: * use the `env` babel prese for browserify transformation instead of `es2015` --- diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 000000000..3739808dc --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,5 @@ +# Browsers that we support +last 2 versions +ie >= 9 +ios >= 7 +android >= 4.4 diff --git a/package.json b/package.json index deec53c4b..b13952f57 100644 --- a/package.json +++ b/package.json @@ -139,9 +139,7 @@ [ "babelify", { - "presets": [ - "es2015" - ] + "presets": ["env"] } ] ]