$ npm install babel-preset-af-react
Yet another babel preset for react application, used in ant-financial.
Notice: browsers don't work if targets is specified.
["af-react", {
"browsers": ['last 2 versions']
}]
e.g.
["af-react", {
"targets": {
"browsers": ['last 2 versions']
}
}]
or
["af-react", {
"targets": {
"node": "6"
}
}]
© 2010 - cnpmjs.org x YWFE | Home | YWFE