KC's Workspace
    Preparing search index...

    Interface for objects that hold external memory that can be explicitly freed.

    interface OutputChunk {
        __rolldown_external_memory_handle__: (
            keepDataAlive?: boolean,
        ) => ExternalMemoryStatus;
        code: string;
        dynamicImports: string[];
        exports: string[];
        facadeModuleId: string | null;
        fileName: string;
        imports: string[];
        isDynamicEntry: boolean;
        isEntry: boolean;
        map: SourceMap | null;
        moduleIds: string[];
        modules: { [id: string]: RenderedModule };
        name: string;
        preliminaryFileName: string;
        sourcemapFileName: string | null;
        type: "chunk";
    }

    Hierarchy (View Summary)

    Index

    Properties

    __rolldown_external_memory_handle__: (
        keepDataAlive?: boolean,
    ) => ExternalMemoryStatus

    Frees the external memory held by this object.

    Type Declaration

      • (keepDataAlive?: boolean): ExternalMemoryStatus
      • Parameters

        • OptionalkeepDataAlive: boolean

          If true, evaluates all lazy fields before freeing memory. This will take time but prevents errors when accessing properties after freeing.

        Returns ExternalMemoryStatus

        Status object with freed boolean and optional reason string.

    code: string
    dynamicImports: string[]
    exports: string[]
    facadeModuleId: string | null
    fileName: string
    imports: string[]
    isDynamicEntry: boolean
    isEntry: boolean
    map: SourceMap | null
    moduleIds: string[]
    modules: { [id: string]: RenderedModule }
    name: string
    preliminaryFileName: string
    sourcemapFileName: string | null
    type: "chunk"