1 Star 0 Fork 0

Cinwell / WebIDE-Frontend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.babelrc 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
candy 提交于 2017-04-11 19:10 . 增加测试脚手架 fixes#158
{
"presets": [
["env", {"modules": false}],
"react",
"stage-0"
],
"plugins": [
"transform-decorators-legacy"
],
"env": {
"development": {
"plugins": [
"react-hot-loader/babel"
]
},
"test": {
"presets": ["es2015", "react", "stage-0"],
"plugins": [
"transform-decorators-legacy"
]
}
}
}
/*
Presets/Plugins order matters
[Ref](http://babeljs.io/docs/plugins/#plugin-preset-ordering)
In short:
1. plugins run before presets
2. plugins run in top-down order
3. presets run in bottom-up order
*/
/* As of 2017-02-23, most plugins at semver "^6.22.0"
* Below are plugins that're included in aforementioned presets, in the order they're supposed to apply
# presets stage-0 to stage-3:
## stage-0
transform-do-expressions
transform-function-bind
## stage-1
transform-class-constructor-call
transform-export-extensions
## stage-2
transform-class-properties
transform-decorators
syntax-dynamic-import
## stage-3
syntax-trailing-function-commas
transform-async-generator-functions
transform-async-to-generator
transform-exponentiation-operator
transform-object-rest-spread
# preset react:
preset-flow
syntax-jsx
transform-react-jsx
transform-react-display-name
* preset es2015, es2016, es2017:
## es2015
check-es2015-constants
transform-es2015-arrow-functions
transform-es2015-block-scoped-functions
transform-es2015-block-scoping
transform-es2015-classes
transform-es2015-computed-properties
transform-es2015-destructuring
transform-es2015-duplicate-keys
transform-es2015-for-of
transform-es2015-function-name
transform-es2015-literals
transform-es2015-modules-amd
transform-es2015-modules-commonjs
transform-es2015-modules-systemjs
transform-es2015-modules-umd
transform-es2015-object-super
transform-es2015-parameters
transform-es2015-shorthand-properties
transform-es2015-spread
transform-es2015-sticky-regex
transform-es2015-template-literals
transform-es2015-typeof-symbol
transform-es2015-unicode-regex
transform-regenerator
## es2016
transform-exponentiation-operator
## es2017
syntax-trailing-function-commas
transform-async-to-generator
*/
1
https://gitee.com/cinwell/WebIDE-Frontend.git
git@gitee.com:cinwell/WebIDE-Frontend.git
cinwell
WebIDE-Frontend
WebIDE-Frontend
master

搜索帮助