Turn off modules in babel build (webpack handles it)
This commit is contained in:
parent
6ff9145603
commit
d2651c585f
28
package.json
28
package.json
@ -30,7 +30,12 @@
|
||||
],
|
||||
"babel": {
|
||||
"presets": [
|
||||
"env",
|
||||
[
|
||||
"env",
|
||||
{
|
||||
"modules": false
|
||||
}
|
||||
],
|
||||
"react"
|
||||
],
|
||||
"plugins": [
|
||||
@ -38,7 +43,26 @@
|
||||
"transform-class-properties",
|
||||
"transform-object-rest-spread",
|
||||
"syntax-dynamic-import"
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"test": {
|
||||
"presets": [
|
||||
[
|
||||
"env",
|
||||
{
|
||||
"modules": "commonjs"
|
||||
}
|
||||
],
|
||||
"react"
|
||||
],
|
||||
"plugins": [
|
||||
"transform-runtime",
|
||||
"transform-class-properties",
|
||||
"transform-object-rest-spread",
|
||||
"syntax-dynamic-import"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
|
Loading…
Reference in New Issue
Block a user