KC's Workspace
    Preparing search index...
    interface PluginContext {
        addWatchFile: (id: string) => void;
        cache: PluginCache;
        debug: LoggingFunction;
        emitFile: EmitFile;
        environment: Environment;
        error: (error: string | RollupError) => never;
        fs: RollupFsModule;
        getFileName: (fileReferenceId: string) => string;
        getModuleIds: () => IterableIterator<string>;
        getModuleInfo: GetModuleInfo;
        getWatchFiles: () => string[];
        info: LoggingFunction;
        load: (
            options: { id: string; resolveDependencies?: boolean } & Partial<
                PartialNull<ModuleOptions>,
            >,
        ) => Promise<ModuleInfo>;
        meta: PluginContextMeta;
        parse: ParseAst;
        resolve: (
            source: string,
            importer?: string,
            options?: {
                attributes?: Record<string, string>;
                custom?: CustomPluginOptions;
                isEntry?: boolean;
                skipSelf?: boolean;
            },
        ) => Promise<ResolvedId | null>;
        setAssetSource: (
            assetReferenceId: string,
            source: string | Uint8Array<ArrayBufferLike>,
        ) => void;
        warn: LoggingFunction;
    }

    Hierarchy (View Summary)

    Index

    Properties

    addWatchFile: (id: string) => void
    emitFile: EmitFile
    environment: Environment

    Vite-specific environment instance

    error: (error: string | RollupError) => never
    getFileName: (fileReferenceId: string) => string
    getModuleIds: () => IterableIterator<string>
    getModuleInfo: GetModuleInfo
    getWatchFiles: () => string[]
    load: (
        options: { id: string; resolveDependencies?: boolean } & Partial<
            PartialNull<ModuleOptions>,
        >,
    ) => Promise<ModuleInfo>
    meta: PluginContextMeta
    parse: ParseAst
    resolve: (
        source: string,
        importer?: string,
        options?: {
            attributes?: Record<string, string>;
            custom?: CustomPluginOptions;
            isEntry?: boolean;
            skipSelf?: boolean;
        },
    ) => Promise<ResolvedId | null>
    setAssetSource: (
        assetReferenceId: string,
        source: string | Uint8Array<ArrayBufferLike>,
    ) => void