Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
2.4 KB
Raw Blame

API report: @astryxdesign/build

.

Functions

function babel: (rootDir: string, overrides?: object | undefined) => object
function postcss: (rootDir: string, overrides?: object | undefined) => object
function resolveAliases: (rootDir: any) => { '@astryxdesign/core/*': string[]; '@astryxdesign/core': string[] }
function stylexOptions: (rootDir: any, overrides?: {}) => { dev: boolean; runtimeInjection: boolean; propertyValidationMode: string; enableInlinedConditionalMerge: boolean; treeshakeCompensation: boolean; aliases: { '@ … #21724325

./babel

Values

module.exports
  (call): (api: any, options: any) => { name: string; visitor: {} }

./next

Functions

function withAstryx: (nextConfig?: {}) => { transpilePackages: any[]; turbopack: {} } | { transpilePackages: any[]; webpack: (config: any, context: any) => any }

./next/postcss

Values

module.exports
  (call): (options?: { cwd?: string | undefined } | undefined) => { postcssPlugin: string; Once(root: any, { result }: { result: any }): Promise<void> }
  postcss: boolean

./postcss

Values

module.exports
  (call): ({…}: { cwd?: string | undefined; appDir?: string | undefined; babelPlugins?: never[] | undefined; layers?: { library: string; product: string } | undefined; libraryP … #101273bf) => { postcssPlugin: string; plugins: ((root: any, result: any) => Promise<void>)[] }
  postcss: boolean

./vite

Functions

function astryxStylex: (options?: AstryxVitePluginOptions | AstryxVitePluginLegacyOptions) => Plugin[]

Values

const LIGHTNINGCSS_TARGETS: { chrome: number; firefox: number; safari: number }

Types

interface AstryxVitePluginLegacyOptions
  layers?: { library?: string; product?: string }
  libraryPattern?: string
  stylexOptions: Parameters<typeof stylex.vite>[0]
  stylexPrefix?: string = 'astryx'
interface AstryxVitePluginOptions
  dev?: boolean = process.env.NODE_ENV !== 'production'
  layers?: { library?: string; product?: string }
  libraryPattern?: string = 'node_modules/@astryxdesign/'
  lightningcssTargets?: Record<string, number> = LIGHTNINGCSS_TARGETS
  rootDir?: string = process.cwd()
  stylexOverrides?: Record<string, unknown>
  stylexPrefix?: string = 'astryx'