mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-13 07:18:30 -05:00
fix(mocha): avoid --inspect-brk flag clobbering other values (#5473)
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = api => {
|
||||
|
||||
const inspectPos = rawArgv.findIndex(arg => arg.startsWith('--inspect-brk'))
|
||||
if (inspectPos !== -1) {
|
||||
nodeArgs = rawArgv.splice(inspectPos, inspectPos + 1)
|
||||
nodeArgs = rawArgv.splice(inspectPos, 1)
|
||||
}
|
||||
// for @vue/babel-preset-app <= v4.0.0-rc.7
|
||||
process.env.VUE_CLI_BABEL_TARGET_NODE = true
|
||||
|
||||
Reference in New Issue
Block a user