Skip to content

Commit

Permalink
fix(components): 缺少处理修饰器的 babel 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Apr 3, 2019
1 parent 48a1e3c commit 3d36851
Show file tree
Hide file tree
Showing 3 changed files with 744 additions and 14 deletions.
1 change: 1 addition & 0 deletions packages/taro-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"devDependencies": {
"@babel/core": "^7.1.5",
"@babel/plugin-proposal-class-properties": "^7.2.1",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-react-jsx": "^7.0.0",
"@babel/preset-env": "^7.1.5",
Expand Down
3 changes: 2 additions & 1 deletion packages/taro-components/webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ module.exports = {
}
],
['@babel/plugin-proposal-class-properties'],
['@babel/plugin-proposal-object-rest-spread']
['@babel/plugin-proposal-object-rest-spread'],
["@babel/plugin-proposal-decorators", { "legacy": true }]
]
}
}]/*, 'eslint-loader' */
Expand Down
Loading

0 comments on commit 3d36851

Please sign in to comment.