diff --git a/.babelrc b/.babelrc index 44ebe5d..f04c23c 100644 --- a/.babelrc +++ b/.babelrc @@ -1,11 +1,18 @@ { - "presets": [ - ["env", { - "targets": { node: "6" }, - "modules": false - }], - "react" - ], + "env": { + "module": { + "presets": [ + ["env", { + "targets": { node: "6" }, + "modules": false + }], + "react" + ] + }, + "main": { + "presets": ["env", "react"] + } + }, "plugins": [ "babel-plugin-transform-regenerator", "babel-plugin-transform-object-rest-spread",