19 lines
427 B
JavaScript
19 lines
427 B
JavaScript
|
module.exports = api => {
|
||
|
api.cache( false )
|
||
|
|
||
|
return {
|
||
|
presets: [
|
||
|
[ '@babel/preset-env', { modules: false } ],
|
||
|
'@babel/preset-react',
|
||
|
],
|
||
|
env: {
|
||
|
test: {
|
||
|
plugins: [
|
||
|
'@babel/plugin-transform-modules-commonjs',
|
||
|
'@babel/plugin-proposal-class-properties',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
}
|