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", {
|
|
|
|
"modules": false,
|
2019-03-30 15:56:43 +01:00
|
|
|
"useBuiltIns": "entry",
|
|
|
|
"corejs": 3
|
2018-11-21 18:47:56 +01:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
"plugins": [
|
2019-04-05 18:15:21 +02:00
|
|
|
"dynamic-import-node",
|
2022-03-25 15:59:54 +01:00
|
|
|
"@babel/plugin-syntax-import-assertions",
|
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
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|