exit.js 254 B

123456789
  1. exports.exitProcess = !process.env.VUE_CLI_API_MODE && !process.env.VUE_CLI_TEST
  2. exports.exit = function (code) {
  3. if (exports.exitProcess) {
  4. process.exit(code)
  5. } else if (code > 0) {
  6. throw new Error(`Process exited with code ${code}`)
  7. }
  8. }