27 lines
647 B
TypeScript
27 lines
647 B
TypeScript
|
module.exports = function (api) {
|
||
|
api.cache(false);
|
||
|
const presets = [
|
||
|
[
|
||
|
"@babel/preset-env",
|
||
|
{
|
||
|
"corejs": { "version":3 },
|
||
|
"useBuiltIns": "usage",
|
||
|
"targets": {
|
||
|
"edge": "17",
|
||
|
"firefox": "60",
|
||
|
"chrome": "67",
|
||
|
"safari": "11.1",
|
||
|
"ie": "11"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
];
|
||
|
const plugins = [
|
||
|
["@babel/transform-runtime"],
|
||
|
["@babel/plugin-transform-modules-commonjs"]
|
||
|
];
|
||
|
return {
|
||
|
presets,
|
||
|
plugins
|
||
|
};
|
||
|
};
|