Skip to content

Commit e24cac7

Browse files
author
walt
committed
spm 支持ES7语法文档
1 parent 4d3f50e commit e24cac7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zh-cn/project/configuration.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,25 @@ var $ = window['jQuery'];
142142
### babel
143143

144144
指定 ES6 转换器 babel 的配置项,默认关闭。
145+
[babel 参数](https://babeljs.io/docs/usage/options/)
145146

146147
[Demo](https://github.com/spmjs/examples/tree/spm-webpack/es6)
147148

148149
注:如果要支持 ie8,一些特性需要额外载入 es5-shim + es5-sham 可以。
149150

150151
- http://babeljs.io/docs/usage/caveats/#internet-explorer
151152

153+
babel ES7特性支持参数
154+
155+
```js
156+
babel: {
157+
"optional": [
158+
"es7.classProperties"
159+
]
160+
}
161+
```
162+
[optional 参数](https://babeljs.io/docs/advanced/transformers/#optional)
163+
152164
### uglify
153165

154166
配置 uglify 压缩器的选项。

0 commit comments

Comments
 (0)