Skip to content

Commit

Permalink
fix(webpack-box cleanArgs): 修改 webpack-box cleanArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxue committed Jan 11, 2020
1 parent b62943a commit b58ccc5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
## [1.0.9](https://github.com/luoxue-victor/learn_webpack/compare/v1.2.12...v1.0.9) (2020-01-11)

### 🌟 新功能
范围|描述|commitId
--|--|--
/ | 增加jest单元测试 | [9ecaee8](https://github.com/luoxue-victor/learn_webpack/commit/9ecaee8), closes [#9](https://github.com/luoxue-victor/learn_webpack/issues/9)
packages/react | Sentry错误监控 | [b417e40](https://github.com/luoxue-victor/learn_webpack/commit/b417e40), closes [#22](https://github.com/luoxue-victor/learn_webpack/issues/22)


### 📝 文档
范围|描述|commitId
--|--|--
changlog | 修改changelog | [4a8da45](https://github.com/luoxue-victor/learn_webpack/commit/4a8da45)


### 🚀 性能优化
范围|描述|commitId
--|--|--
/ | 更改jest单元测试配置 | [4aadd64](https://github.com/luoxue-victor/learn_webpack/commit/4aadd64)


### chore
范围|描述|commitId
--|--|--
合并代码 | [dfdc68f](https://github.com/luoxue-victor/learn_webpack/commit/dfdc68f)

## [1.2.12](https://github.com/luoxue-victor/learn_webpack/compare/v1.2.11...v1.2.12) (2019-12-27)

范围|描述|commitId
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-box/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function cleanArgs(cmd) {
const args = {}
cmd.options.forEach(o => {
cmd.options && cmd.options.forEach(o => {
const key = camelize(o.long.replace(/^--/, ''))
if (typeof cmd[key] !== 'function' && typeof cmd[key] !== 'undefined') {
args[key] = cmd[key]
Expand Down

0 comments on commit b58ccc5

Please sign in to comment.