Newer
Older
piotr.kupczyk@id.ethz.ch
committed
/* eslint-disable-next-line no-undef */
module.exports = function (api) {
piotr.kupczyk@id.ethz.ch
committed
api.cache(true)
piotr.kupczyk@id.ethz.ch
committed
const presets = ['@babel/preset-env', '@babel/preset-react']
piotr.kupczyk@id.ethz.ch
committed
const plugins = [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-object-rest-spread',
piotr.kupczyk@id.ethz.ch
committed
'@babel/plugin-proposal-class-properties',
'babel-plugin-transform-amd-to-commonjs'
piotr.kupczyk@id.ethz.ch
committed
]
return {
presets,
piotr.kupczyk@id.ethz.ch
committed
plugins,
sourceType: 'unambiguous'