Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PackageData

Index

Properties

data: { browser: string | Record<string, string | false>; dependencies: Record<string, string>; exports: string | string[] | Record<string, any>; imports: Record<string, any>; main: string; module: string; name: string; type: string; version: string }

Type declaration

  • [field: string]: any
  • browser: string | Record<string, string | false>
  • dependencies: Record<string, string>
  • exports: string | string[] | Record<string, any>
  • imports: Record<string, any>
  • main: string
  • module: string
  • name: string
  • type: string
  • version: string
dir: string
nodeResolvedImports: Record<string, undefined | string>
webResolvedImports: Record<string, undefined | string>

Methods

  • getResolvedCache(key: string, targetWeb: boolean): undefined | string
  • Parameters

    • key: string
    • targetWeb: boolean

    Returns undefined | string

  • hasSideEffects(id: string): boolean | "no-treeshake"
  • Parameters

    • id: string

    Returns boolean | "no-treeshake"

  • setResolvedCache(key: string, entry: string, targetWeb: boolean): void
  • Parameters

    • key: string
    • entry: string
    • targetWeb: boolean

    Returns void