27 lines
595 B
TypeScript
27 lines
595 B
TypeScript
export default api => {
|
|
api.cache(false);
|
|
const presets = [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"corejs": {"version": '3.33', "proposals": false},
|
|
"useBuiltIns": "usage",
|
|
"targets": {
|
|
"edge": "111",
|
|
"firefox": "100",
|
|
"chrome": "109"
|
|
}
|
|
}
|
|
]
|
|
];
|
|
|
|
const plugins = [
|
|
["@babel/transform-runtime"],
|
|
["@babel/plugin-transform-modules-commonjs"]
|
|
];
|
|
|
|
return {
|
|
presets,
|
|
plugins
|
|
};
|
|
} |