Clean up .babelrc.

This commit is contained in:
Caleb 2018-02-27 10:19:10 -07:00
parent 5bae5319fd
commit ab7c1b654a
3 changed files with 5 additions and 13 deletions

View File

@ -1,9 +1,9 @@
{ {
"presets": [ "presets": [
"react",
["env", { ["env", {
"modules": false "modules": false
}], }]
"react"
], ],
"plugins": [ "plugins": [
"lodash", "lodash",
@ -15,19 +15,10 @@
"useESModules": true "useESModules": true
}], }],
["module-resolver", { ["module-resolver", {
/**
* Use aliases to avoid relative path import hell.
*/
"root": [ "root": [
/**
* Components
*/
"./src/components" "./src/components"
], ],
"alias": { "alias": {
/**
* Top level src directories
*/
"Actions": "./src/actions/", "Actions": "./src/actions/",
"Backends": "./src/backends/", "Backends": "./src/backends/",
"Constants": "./src/constants/", "Constants": "./src/constants/",
@ -42,7 +33,7 @@
}], }],
"transform-export-extensions", "transform-export-extensions",
"transform-class-properties", "transform-class-properties",
"transform-object-rest-spread", "transform-object-rest-spread"
], ],
"env": { "env": {
"test": { "test": {

View File

@ -81,6 +81,7 @@
"babel-plugin-module-resolver": "^3.0.0", "babel-plugin-module-resolver": "^3.0.0",
"babel-plugin-transform-builtin-extend": "^1.1.0", "babel-plugin-transform-builtin-extend": "^1.1.0",
"babel-plugin-transform-class-properties": "^6.24.1", "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-export-extensions": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0", "babel-plugin-transform-runtime": "^6.23.0",

View File

@ -746,7 +746,7 @@ babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015
babel-runtime "^6.22.0" babel-runtime "^6.22.0"
babel-template "^6.24.1" 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" 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" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
dependencies: dependencies: