migrate core to emotion
This commit is contained in:
25
.babelrc
25
.babelrc
@ -1,9 +1,17 @@
|
||||
{
|
||||
"presets": [
|
||||
"react",
|
||||
"env",
|
||||
["env", {
|
||||
"modules": false,
|
||||
}],
|
||||
],
|
||||
"plugins": [
|
||||
"transform-object-rest-spread",
|
||||
"transform-class-properties",
|
||||
["transform-runtime", {
|
||||
"useBuiltIns": true,
|
||||
"useESModules": true,
|
||||
}],
|
||||
["module-resolver", {
|
||||
"root": [
|
||||
"./src/components"
|
||||
@ -22,8 +30,17 @@
|
||||
}
|
||||
}],
|
||||
"inline-svg",
|
||||
["inline-import", {
|
||||
"extensions": ["yml"],
|
||||
}],
|
||||
],
|
||||
"env": {
|
||||
"production": {
|
||||
"plugins": [
|
||||
["emotion", {"hoist": true}],
|
||||
],
|
||||
},
|
||||
"development": {
|
||||
"plugins": [
|
||||
["emotion", {"sourceMap": true, "autoLabel": true }],
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user