javascript: transpile compatible JS for all browsers we support

This commit is contained in:
Pierre de La Morinerie 2018-08-06 14:53:43 +00:00
parent 2e87218480
commit fdbda30877
2 changed files with 11 additions and 1 deletions

View file

@ -3,7 +3,16 @@
["env", {
"modules": false,
"targets": {
"browsers": "> 1%",
// See config/browser.rb
"browsers": [
"> 1%",
"Chrome 40",
"IE 11",
"Edge 12",
"Firefox 45",
"Safari 8",
"iOS 8"
],
"uglify": true
},
"useBuiltIns": true

View file

@ -1,3 +1,4 @@
# See .babelrc
Browser.modern_rules.clear
Browser.modern_rules << -> b { b.chrome? && b.version.to_i >= 40 }
Browser.modern_rules << -> b { b.ie?([">=11"]) }