Clean up .babelrc.
This commit is contained in:
parent
5bae5319fd
commit
ab7c1b654a
15
.babelrc
15
.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": {
|
||||
|
@ -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",
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user