message: perf: change globals from array to set
diff: @@ -14,28 +14,25 @@ const directionMap = {
  const valueSet = new Set(Object.values(directionMap))
  -const globals = [
  +const globalSet = new Set([
  "none",
  "-moz-initial",
  "inherit",
  "initial",
  "revert",
  "unset",
  -]
  +])
  const trimSpace = (str: string) => str.trim()
  export function parseGradient(value: string | null | undefined, theme: Dict) {
  - if (value == null || globals.includes(value)) return value
  -
  + if (value == null || globalSet.has(value)) return value
  const regex = /(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g
  -
  const { type, values } = regex.exec(value)?.groups ?? {}
  if (!type || !values) return value
  const _type = type.includes("-gradient") ? type : `${type}-gradient`
  -
  const [maybeDirection, ...stops] = values
  .split(",")
  .map(trimSpace)
  