-
Notifications
You must be signed in to change notification settings - Fork 1
/
babel.config.js
31 lines (31 loc) · 1 KB
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
presets: [
// check https://github.com/babel/babel/blob/main/packages/babel-preset-env/src/available-plugins.ts to see which plugins are included in preset-env
['@babel/preset-env',
{ corejs: '3.25', useBuiltIns: 'entry', debug: false },
],
'@babel/preset-react',
],
plugins: [
['@babel/plugin-proposal-decorators',
{ legacy: true },
], // required for mobx decorators. Must come above class-properties
['@babel/plugin-proposal-class-properties',
{ loose: false },
], // required for mobx decorators
'@babel/plugin-syntax-import-meta',
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-throw-expressions',
'@babel/plugin-proposal-export-default-from',
['@babel/plugin-proposal-pipeline-operator',
{ proposal: 'minimal' },
],
'@babel/plugin-proposal-do-expressions',
'@babel/plugin-proposal-function-bind',
],
env: {
test: {
plugins: ['@babel/plugin-transform-runtime'],
},
},
};