2019-07-15 13:45:52 +02:00
|
|
|
module.exports = {
|
|
|
|
presets: [
|
|
|
|
'@babel/preset-env',
|
|
|
|
'@babel/preset-react',
|
|
|
|
'@babel/preset-typescript'
|
|
|
|
],
|
|
|
|
plugins: [
|
2020-04-13 22:39:00 +02:00
|
|
|
'@babel/plugin-proposal-optional-chaining',
|
2019-07-15 13:45:52 +02:00
|
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
|
|
['@babel/plugin-proposal-decorators', { legacy: true }],
|
|
|
|
['@babel/plugin-proposal-class-properties', { loose: true }]
|
|
|
|
],
|
|
|
|
env: {
|
|
|
|
test: {
|
|
|
|
presets: [['@babel/preset-env', { targets: { node: 'current' } }]]
|
|
|
|
}
|
|
|
|
}
|
2020-04-13 22:39:00 +02:00
|
|
|
}
|