1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@vue/cli-shared-utils/lib/exit.js

10 lines
254 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
exports.exitProcess = !process.env.VUE_CLI_API_MODE && !process.env.VUE_CLI_TEST
exports.exit = function (code) {
if (exports.exitProcess) {
process.exit(code)
} else if (code > 0) {
throw new Error(`Process exited with code ${code}`)
}
}