]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: use the "env" babel preset for browserify transformation
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 2 Jun 2018 18:43:57 +0000 (20:43 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 2 Jun 2018 18:43:57 +0000 (20:43 +0200)
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 [new file with mode: 0644]
package.json

diff --git a/.browserslistrc b/.browserslistrc
new file mode 100644 (file)
index 0000000..3739808
--- /dev/null
@@ -0,0 +1,5 @@
+# Browsers that we support
+last 2 versions
+ie >= 9
+ios >= 7
+android >= 4.4
index deec53c4bd877392c89549f309ae4501c3ddc676..b13952f570d907b69b497bf8b6512570b3f24770 100644 (file)
       [
         "babelify",
         {
-          "presets": [
-            "es2015"
-          ]
+          "presets": ["env"]
         }
       ]
     ]