diff --git a/.babelrc b/.babelrc index 62862b79..d774c31e 100644 --- a/.babelrc +++ b/.babelrc @@ -1,9 +1,9 @@ { "presets": [ + "react", ["env", { "modules": false - }], - "react" + }] ], "plugins": [ "lodash", @@ -15,19 +15,10 @@ "useESModules": true }], ["module-resolver", { - /** - * Use aliases to avoid relative path import hell. - */ "root": [ - /** - * Components - */ "./src/components" ], "alias": { - /** - * Top level src directories - */ "Actions": "./src/actions/", "Backends": "./src/backends/", "Constants": "./src/constants/", @@ -42,7 +33,7 @@ }], "transform-export-extensions", "transform-class-properties", - "transform-object-rest-spread", + "transform-object-rest-spread" ], "env": { "test": { diff --git a/package.json b/package.json index ddf733b8..f93c864e 100644 --- a/package.json +++ b/package.json @@ -81,6 +81,7 @@ "babel-plugin-module-resolver": "^3.0.0", "babel-plugin-transform-builtin-extend": "^1.1.0", "babel-plugin-transform-class-properties": "^6.24.1", + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", "babel-plugin-transform-export-extensions": "^6.22.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-runtime": "^6.23.0", diff --git a/yarn.lock b/yarn.lock index 89a35027..d920d6a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -746,7 +746,7 @@ babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015 babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: +babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1, babel-plugin-transform-es2015-modules-commonjs@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" dependencies: