Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PluginContainer

Index

Properties

options: InputOptions

Methods

  • Parameters

    Returns Promise<void>

  • close(): Promise<void>
  • Returns Promise<void>

  • Parameters

    • id: string

    Returns null | ModuleInfo

  • load(id: string, options?: { ssr?: boolean }): Promise<LoadResult>
  • Parameters

    • id: string
    • Optional options: { ssr?: boolean }
      • Optional ssr?: boolean

    Returns Promise<LoadResult>

  • resolveId(id: string, importer?: string, options?: { attributes?: Record<string, string>; custom?: CustomPluginOptions; isEntry?: boolean; skip?: Set<Plugin<any>>; ssr?: boolean }): Promise<null | PartialResolvedId>
  • Parameters

    • id: string
    • Optional importer: string
    • Optional options: { attributes?: Record<string, string>; custom?: CustomPluginOptions; isEntry?: boolean; skip?: Set<Plugin<any>>; ssr?: boolean }
      • Optional attributes?: Record<string, string>
      • Optional custom?: CustomPluginOptions
      • Optional isEntry?: boolean
      • Optional skip?: Set<Plugin<any>>
      • Optional ssr?: boolean

    Returns Promise<null | PartialResolvedId>

  • transform(code: string, id: string, options?: { inMap?: SourceMapInput; ssr?: boolean }): Promise<{ code: string; map: null | SourceMap | { mappings: "" } }>
  • Parameters

    Returns Promise<{ code: string; map: null | SourceMap | { mappings: "" } }>

  • watchChange(id: string, change: { event: "create" | "update" | "delete" }): Promise<void>
  • Parameters

    • id: string
    • change: { event: "create" | "update" | "delete" }
      • event: "create" | "update" | "delete"

    Returns Promise<void>