Turn off modules in babel build (webpack handles it)

This commit is contained in:
Jeff Avallone 2018-02-17 15:13:07 -05:00
parent 6ff9145603
commit d2651c585f
1 changed files with 26 additions and 2 deletions

View File

@ -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": {