Skip to content

Commit

Permalink
优化babel编译
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohuijian committed Mar 23, 2017
1 parent 9331e99 commit 9bd00f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"react" //转换react的jsx
],
"plugins": [
"transform-runtime",
"transform-object-assign", //Object.assign转换
["transform-es2015-classes", { //转换es6 class插件
"loose": false
Expand Down
1 change: 1 addition & 0 deletions .fez/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export default (gulp, config) => {
"react" //转换react的jsx
],
"plugins": [
"transform-runtime",
"transform-object-assign", //Object.assign转换
["transform-es2015-classes", { //转换es6 class插件
"loose": false
Expand Down
3 changes: 2 additions & 1 deletion .fez/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export default (gulp, config) => {
* 全局对象方法转码
* http://babeljs.cn/docs/usage/polyfill/
*/
.add(require.resolve('babel-polyfill'))
// .add(require.resolve('babel-polyfill'))
// 转换 es6
.transform(babelify.configure({
"compact": false,
Expand All @@ -426,6 +426,7 @@ export default (gulp, config) => {
"react" //转换react的jsx
],
"plugins": [
"transform-runtime",
"transform-object-assign", //Object.assign转换
["transform-es2015-classes", { //转换es6 class插件
"loose": false
Expand Down

0 comments on commit 9bd00f8

Please sign in to comment.