javascript: transpile compatible JS for all browsers we support
This commit is contained in:
parent
2e87218480
commit
fdbda30877
2 changed files with 11 additions and 1 deletions
11
.babelrc
11
.babelrc
|
@ -3,7 +3,16 @@
|
||||||
["env", {
|
["env", {
|
||||||
"modules": false,
|
"modules": false,
|
||||||
"targets": {
|
"targets": {
|
||||||
"browsers": "> 1%",
|
// See config/browser.rb
|
||||||
|
"browsers": [
|
||||||
|
"> 1%",
|
||||||
|
"Chrome 40",
|
||||||
|
"IE 11",
|
||||||
|
"Edge 12",
|
||||||
|
"Firefox 45",
|
||||||
|
"Safari 8",
|
||||||
|
"iOS 8"
|
||||||
|
],
|
||||||
"uglify": true
|
"uglify": true
|
||||||
},
|
},
|
||||||
"useBuiltIns": true
|
"useBuiltIns": true
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# See .babelrc
|
||||||
Browser.modern_rules.clear
|
Browser.modern_rules.clear
|
||||||
Browser.modern_rules << -> b { b.chrome? && b.version.to_i >= 40 }
|
Browser.modern_rules << -> b { b.chrome? && b.version.to_i >= 40 }
|
||||||
Browser.modern_rules << -> b { b.ie?([">=11"]) }
|
Browser.modern_rules << -> b { b.ie?([">=11"]) }
|
||||||
|
|
Loading…
Reference in a new issue