Skip to content

Commit

Permalink
Fix Vite support
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Jun 4, 2022
1 parent 106748e commit e698b72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
@@ -1,11 +1,11 @@
import * as tty from "tty"

const env = process.env || {}
const argv = process.argv || []
const env = (process && process.env) || {}
const argv = (process && process.argv) || []

const isDisabled = "NO_COLOR" in env || argv.includes("--no-color")
const isForced = "FORCE_COLOR" in env || argv.includes("--color")
const isWindows = process.platform === "win32"
const isWindows = process && process.platform === "win32"
const isDumbTerminal = env.TERM === "dumb"

const isCompatibleTerminal =
Expand Down

0 comments on commit e698b72

Please sign in to comment.