-
Notifications
You must be signed in to change notification settings - Fork 4
/
.babelrc
42 lines (42 loc) · 977 Bytes
/
.babelrc
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
32
33
34
35
36
37
38
39
40
41
42
{
"presets": [
[
"@babel/env",
{
"modules": "commonjs",
"targets": {
"node": "current",
"chrome": 66,
"firefox": 60
}
}
],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"add-module-exports",
"@babel/plugin-syntax-import-meta",
"syntax-dynamic-import",
"@babel/plugin-proposal-export-default-from",
[
"@babel/plugin-proposal-decorators",
{ "decoratorsBeforeExport": true, "legacy": false }
],
[
"transform-imports",
{
"@material-ui/core": {
// Use "transform: '@material-ui/core/${member}'," if your bundler does not support ES modules
"transform": "@material-ui/core/esm/${member}",
"preventFullImport": true
},
"@material-ui/icons": {
// Use "transform: '@material-ui/icons/${member}'," if your bundler does not support ES modules
"transform": "@material-ui/icons/esm/${member}",
"preventFullImport": true
}
}
]
]
}