19 lines
515 B
JavaScript
19 lines
515 B
JavaScript
module.exports = {
|
|
presets: [
|
|
'@babel/preset-env',
|
|
'@babel/preset-react',
|
|
'@babel/preset-typescript'
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
'@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' } }]]
|
|
}
|
|
}
|
|
}
|