2019-12-13 17:32:18 +01:00
|
|
|
module.exports = api => {
|
|
|
|
// caching the babel config
|
|
|
|
api.cache.using(() => process.env.NODE_ENV)
|
|
|
|
return {
|
2019-12-14 10:43:07 +01:00
|
|
|
presets: ['@babel/preset-env', '@babel/preset-react']
|
|
|
|
// plugins: [api.env('development') && 'react-refresh/babel'].filter(Boolean)
|
2019-12-13 17:32:18 +01:00
|
|
|
}
|
|
|
|
}
|