HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/tailwindcss/src/cli/build/deps.js
// @ts-check

import {
  // @ts-ignore
  lazyPostcss,

  // @ts-ignore
  lazyPostcssImport,

  // @ts-ignore
  lazyCssnano,

  // @ts-ignore
  lazyAutoprefixer,
} from '../../../peers/index.js'

/**
 * @returns {import('postcss')}
 */
export function loadPostcss() {
  // Try to load a local `postcss` version first
  try {
    return require('postcss')
  } catch {}

  return lazyPostcss()
}

export function loadPostcssImport() {
  // Try to load a local `postcss-import` version first
  try {
    return require('postcss-import')
  } catch {}

  return lazyPostcssImport()
}

export function loadCssNano() {
  let options = { preset: ['default', { cssDeclarationSorter: false }] }

  // Try to load a local `cssnano` version first
  try {
    return require('cssnano')
  } catch {}

  return lazyCssnano()(options)
}

export function loadAutoprefixer() {
  // Try to load a local `autoprefixer` version first
  try {
    return require('autoprefixer')
  } catch {}

  return lazyAutoprefixer()
}