/
.babelrc
28 lines (28 loc) 路 1023 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
{
"env": {
"test": {
"presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]],
"plugins": [
["import", {"libraryName": "antd","style": "css"}],
["styled-components", {"ssr": true, "displayName": true, "preprocess": false }],
["transform-assets-import-to-string", {"baseDir": "static","baseUri": "/" }]
]
},
"development": {
"presets": ["next/babel"],
"plugins": [
["import", {"libraryName": "antd","style": "css"}],
["styled-components", {"ssr": true, "displayName": true, "preprocess": false }],
["transform-assets-import-to-string", {"baseDir": "static","baseUri": "/" }]
]
},
"production": {
"presets": ["next/babel"],
"plugins": [
["import", {"libraryName": "antd","style": "css"}],
["styled-components", {"ssr": true, "displayName": true, "preprocess": false }],
["transform-assets-import-to-string", {"baseDir": "static","baseUri": "/" }]
]
}
}
}