-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.babelrc.js
More file actions
22 lines (21 loc) · 652 Bytes
/
.babelrc.js
File metadata and controls
22 lines (21 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { NODE_ENV } = process.env
const test = NODE_ENV === 'test'
const loose = true
module.exports = {
presets: [
['@babel/preset-env', { modules: false }],
'@babel/preset-react',
'@babel/preset-typescript'
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-decorators',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-json-strings',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-throw-expressions',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta'
]
}