From 4174473b31b701d40208e4b70b730abf7e7ca63d Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sat, 2 Jun 2018 20:43:57 +0200 Subject: [PATCH] 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` --- .browserslistrc | 5 +++++ package.json | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .browserslistrc 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"] } ] ] -- 2.47.2