KC's Workspace
    Preparing search index...

    Hooks for tsdown.

    interface TsdownHooks {
        "build:before": (
            ctx: BuildContext & RolldownContext,
        ) => void | Promise<void>;
        "build:done": (
            ctx: BuildContext & { chunks: RolldownChunk[] },
        ) => void | Promise<void>;
        "build:prepare": (ctx: BuildContext) => void | Promise<void>;
    }
    Index

    Properties

    "build:before": (ctx: BuildContext & RolldownContext) => void | Promise<void>

    Invoked before each Rolldown build. For dual-format builds, this hook is called for each format. Useful for configuring or modifying the build context before bundling.

    "build:done": (
        ctx: BuildContext & { chunks: RolldownChunk[] },
    ) => void | Promise<void>

    Invoked after each tsdown build completes. Use this hook for cleanup or post-processing tasks.

    "build:prepare": (ctx: BuildContext) => void | Promise<void>

    Invoked before each tsdown build starts. Use this hook to perform setup or preparation tasks.