KC's Workspace
    Preparing search index...

    Make all properties in T optional

    interface OutputPlugin {
        augmentChunkHash?: ObjectHook<
            (this: PluginContext, chunk: RenderedChunk) => string | void,
            {},
        >;
        banner?: ObjectHook<AddonHook, {}>;
        cacheKey?: string;
        footer?: ObjectHook<AddonHook, {}>;
        generateBundle?: ObjectHook<
            (
                this: PluginContext,
                ...parameters: [
                    options: NormalizedOutputOptions,
                    bundle: OutputBundle,
                    isWrite: boolean,
                ],
            ) => void
            | Promise<void>,
            {},
        >;
        intro?: ObjectHook<AddonHook, {}>;
        name: string;
        outputOptions?: ObjectHook<
            (
                this: PluginContext,
                options: OutputOptions,
            ) => OutputOptions | NullValue,
            {},
        >;
        outro?: ObjectHook<AddonHook, {}>;
        renderChunk?: ObjectHook<
            (
                this: PluginContext,
                ...parameters: [
                    code: string,
                    chunk: RenderedChunk,
                    options: NormalizedOutputOptions,
                    meta: { chunks: Record<string, RenderedChunk> },
                ],
            ) => string | NullValue | { code: string; map?: SourceMapInput; } | Promise<string | NullValue | { code: string; map?: SourceMapInput; }>,
            {},
        >;
        renderDynamicImport?: ObjectHook<
            (
                this: PluginContext,
                options: {
                    chunk: PreRenderedChunkWithFileName;
                    customResolution: string | null;
                    format: InternalModuleFormat;
                    getTargetChunkImports: () => DynamicImportTargetChunk[] | null;
                    moduleId: string;
                    targetChunk: PreRenderedChunkWithFileName | null;
                    targetModuleId: string | null;
                },
            ) => NullValue | { left: string; right: string; },
            {},
        >;
        renderError?: ObjectHook<
            (
                this: PluginContext,
                ...parameters: [error?: Error],
            ) => void | Promise<void>,
            { sequential?: boolean },
        >;
        renderStart?: ObjectHook<
            (
                this: PluginContext,
                ...parameters: [
                    outputOptions: NormalizedOutputOptions,
                    inputOptions: NormalizedInputOptions,
                ],
            ) => void
            | Promise<void>,
            { sequential?: boolean },
        >;
        resolveFileUrl?: ObjectHook<ResolveFileUrlHook, {}>;
        resolveImportMeta?: ObjectHook<ResolveImportMetaHook, {}>;
        version?: string;
        writeBundle?: ObjectHook<
            (
                this: PluginContext,
                ...parameters: [options: NormalizedOutputOptions, bundle: OutputBundle],
            ) => void | Promise<void>,
            { sequential?: boolean },
        >;
    }

    Hierarchy (View Summary)

    Index

    Properties

    augmentChunkHash?: ObjectHook<
        (this: PluginContext, chunk: RenderedChunk) => string | void,
        {},
    >
    banner?: ObjectHook<AddonHook, {}>
    cacheKey?: string
    footer?: ObjectHook<AddonHook, {}>
    generateBundle?: ObjectHook<
        (
            this: PluginContext,
            ...parameters: [
                options: NormalizedOutputOptions,
                bundle: OutputBundle,
                isWrite: boolean,
            ],
        ) => void
        | Promise<void>,
        {},
    >
    intro?: ObjectHook<AddonHook, {}>
    name: string
    outputOptions?: ObjectHook<
        (
            this: PluginContext,
            options: OutputOptions,
        ) => OutputOptions | NullValue,
        {},
    >
    outro?: ObjectHook<AddonHook, {}>
    renderChunk?: ObjectHook<
        (
            this: PluginContext,
            ...parameters: [
                code: string,
                chunk: RenderedChunk,
                options: NormalizedOutputOptions,
                meta: { chunks: Record<string, RenderedChunk> },
            ],
        ) => string | NullValue | { code: string; map?: SourceMapInput; } | Promise<string | NullValue | { code: string; map?: SourceMapInput; }>,
        {},
    >
    renderDynamicImport?: ObjectHook<
        (
            this: PluginContext,
            options: {
                chunk: PreRenderedChunkWithFileName;
                customResolution: string | null;
                format: InternalModuleFormat;
                getTargetChunkImports: () => DynamicImportTargetChunk[] | null;
                moduleId: string;
                targetChunk: PreRenderedChunkWithFileName | null;
                targetModuleId: string | null;
            },
        ) => NullValue | { left: string; right: string; },
        {},
    >
    renderError?: ObjectHook<
        (
            this: PluginContext,
            ...parameters: [error?: Error],
        ) => void | Promise<void>,
        { sequential?: boolean },
    >
    renderStart?: ObjectHook<
        (
            this: PluginContext,
            ...parameters: [
                outputOptions: NormalizedOutputOptions,
                inputOptions: NormalizedInputOptions,
            ],
        ) => void
        | Promise<void>,
        { sequential?: boolean },
    >
    resolveFileUrl?: ObjectHook<ResolveFileUrlHook, {}>
    resolveImportMeta?: ObjectHook<ResolveImportMetaHook, {}>
    version?: string
    writeBundle?: ObjectHook<
        (
            this: PluginContext,
            ...parameters: [options: NormalizedOutputOptions, bundle: OutputBundle],
        ) => void | Promise<void>,
        { sequential?: boolean },
    >