2018-11-21 18:47:56 +01:00
|
|
|
module.exports = function(api) {
|
|
|
|
api.cache.forever();
|
|
|
|
|
2018-12-18 14:50:10 +01:00
|
|
|
return {
|
2018-11-21 18:47:56 +01:00
|
|
|
"presets": [
|
|
|
|
["@babel/preset-env", {
|
|
|
|
"targets": {
|
|
|
|
"chrome": 40,
|
|
|
|
"firefox": 35,
|
|
|
|
"edge": 14,
|
|
|
|
"node": "6.5"
|
|
|
|
},
|
|
|
|
"modules": false,
|
2019-03-30 15:56:43 +01:00
|
|
|
"useBuiltIns": "entry",
|
|
|
|
"corejs": 3
|
2018-11-21 18:47:56 +01:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
"plugins": [
|
2019-02-01 11:52:21 +01:00
|
|
|
"babel-plugin-syntax-dynamic-import",
|
2019-03-30 15:56:43 +01:00
|
|
|
[
|
|
|
|
"babel-plugin-transform-builtin-extend", {
|
|
|
|
"globals": ["Error"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@babel/plugin-transform-runtime", {
|
|
|
|
"regenerator": true
|
|
|
|
}
|
|
|
|
]
|
2018-11-21 18:47:56 +01:00
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|