Skip to content

Commit 2b5b78d

Browse files
committed
feat(debug): always start debug cli
1 parent a0530f4 commit 2b5b78d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/@weex/plugins/debug/commands

packages/@weex/plugins/debug/commands/debug.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ module.exports = {
108108
config: options.config || options.c
109109
},
110110
async (error, output, json) => {
111+
let bundles = []
111112
if (error) {
112113
await analyzer('compile', Array.isArray(error)?error.join('\n'):error)
113-
return
114114
}
115115
else {
116-
let bundles = json.assets.map(asset => {
116+
bundles = json.assets.map(asset => {
117117
let entry
118118
let date = new Date()
119119
const formateTime = (value) => {
@@ -132,8 +132,8 @@ module.exports = {
132132
entry: entry
133133
}
134134
})
135-
await api.startDevtoolServer(bundles, devtoolOptions)
136135
}
136+
await api.startDevtoolServer(bundles, devtoolOptions)
137137
}
138138
)
139139
} else {

0 commit comments

Comments
 (0)