2024-02-24 22:59:51 -05:00
|
|
|
module.exports = function (api) {
|
2018-11-21 17:47:56 +00:00
|
|
|
api.cache.forever();
|
|
|
|
|
2018-12-18 13:50:10 +00:00
|
|
|
return {
|
2024-02-24 22:59:51 -05:00
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
"@babel/preset-env",
|
|
|
|
{
|
|
|
|
modules: false,
|
|
|
|
useBuiltIns: "entry",
|
|
|
|
corejs: 3,
|
|
|
|
},
|
|
|
|
],
|
2018-11-21 17:47:56 +00:00
|
|
|
],
|
2024-02-24 22:59:51 -05:00
|
|
|
plugins: [
|
2019-04-05 17:15:21 +01:00
|
|
|
"dynamic-import-node",
|
2022-03-25 14:59:54 +00:00
|
|
|
"@babel/plugin-syntax-import-assertions",
|
2019-03-30 14:56:43 +00:00
|
|
|
[
|
2024-02-24 22:59:51 -05:00
|
|
|
"babel-plugin-transform-builtin-extend",
|
|
|
|
{
|
|
|
|
globals: ["Error"],
|
|
|
|
},
|
2019-03-30 14:56:43 +00:00
|
|
|
],
|
|
|
|
[
|
2024-02-24 22:59:51 -05:00
|
|
|
"@babel/plugin-transform-runtime",
|
|
|
|
{
|
|
|
|
regenerator: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2018-11-21 17:47:56 +00:00
|
|
|
};
|
|
|
|
};
|