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

View File

@ -30,7 +30,29 @@
], ],
"babel": { "babel": {
"presets": [ "presets": [
[
"env", "env",
{
"modules": false
}
],
"react"
],
"plugins": [
"transform-runtime",
"transform-class-properties",
"transform-object-rest-spread",
"syntax-dynamic-import"
],
"env": {
"test": {
"presets": [
[
"env",
{
"modules": "commonjs"
}
],
"react" "react"
], ],
"plugins": [ "plugins": [
@ -39,6 +61,8 @@
"transform-object-rest-spread", "transform-object-rest-spread",
"syntax-dynamic-import" "syntax-dynamic-import"
] ]
}
}
}, },
"postcss": { "postcss": {
"plugins": { "plugins": {