We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3f50e commit e24cac7Copy full SHA for e24cac7
zh-cn/project/configuration.md
@@ -142,13 +142,25 @@ var $ = window['jQuery'];
142
### babel
143
144
指定 ES6 转换器 babel 的配置项,默认关闭。
145
+[babel 参数](https://babeljs.io/docs/usage/options/)
146
147
[Demo](https://github.com/spmjs/examples/tree/spm-webpack/es6)
148
149
注:如果要支持 ie8,一些特性需要额外载入 es5-shim + es5-sham 可以。
150
151
- http://babeljs.io/docs/usage/caveats/#internet-explorer
152
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
164
### uglify
165
166
配置 uglify 压缩器的选项。
0 commit comments