Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

asSrc?: boolean

src code mode also attempts the following:

  • resolving /xxx as URLs
  • resolving bare imports from optimized deps
conditions: string[]
dedupe: string[]
extensions: string[]
default

['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']

fsUtils?: FsUtils
isBuild: boolean
isFromTsImporter?: boolean
isProduction: boolean
isRequire?: boolean
mainFields: string[]
default

['browser', 'module', 'jsnext:main', 'jsnext']

packageCache?: PackageCache
preferRelative?: boolean
preserveSymlinks: boolean
default

false

root: string
scan?: boolean
ssrConfig?: SSROptions
ssrOptimizeCheck?: boolean
tryEsmOnly?: boolean
tryIndex?: boolean
tryPrefix?: string

Methods

  • Parameters

    • ssr: boolean

    Returns undefined | DepsOptimizer

  • shouldExternalize(id: string, importer?: string): undefined | boolean
  • Parameters

    • id: string
    • Optional importer: string

    Returns undefined | boolean