Skip to content

Commit

Permalink
Clean up .babelrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Feb 27, 2018
1 parent 5bae531 commit ab7c1b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
15 changes: 3 additions & 12 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"presets": [
"react",
["env", {
"modules": false
}],
"react"
}]
],
"plugins": [
"lodash",
Expand All @@ -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/",
Expand All @@ -42,7 +33,7 @@
}],
"transform-export-extensions",
"transform-class-properties",
"transform-object-rest-spread",
"transform-object-rest-spread"
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ab7c1b6

Please sign in to comment.