代码拉取完成,页面将自动刷新
{
"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
*/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。