17 lines
249 B
JavaScript
17 lines
249 B
JavaScript
|
module.exports = function (api) {
|
||
|
api.cache(true);
|
||
|
|
||
|
const presets = [
|
||
|
'@babel/preset-react',
|
||
|
'@babel/preset-env',
|
||
|
];
|
||
|
const plugins = [
|
||
|
'@babel/plugin-proposal-object-rest-spread',
|
||
|
];
|
||
|
|
||
|
return {
|
||
|
presets,
|
||
|
plugins
|
||
|
};
|
||
|
}
|