Merge pull request #2345 from betagouv/improve-browser-compatibility
javascript: transpile compatible JS for all browsers we support
This commit is contained in:
commit
6f1d867054
2 changed files with 11 additions and 1 deletions
11
.babelrc
11
.babelrc
|
@ -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
|
||||
|
|
|
@ -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"]) }
|
||||
|
|
Loading…
Reference in a new issue