KC's Workspace
    Preparing search index...

    The information about an asset in the generated bundle.

    interface OutputAsset {
        __rolldown_external_memory_handle__: (
            keepDataAlive?: boolean,
        ) => ExternalMemoryStatus;
        fileName: string;
        name: string | undefined;
        names: string[];
        originalFileName: string | null;
        originalFileNames: string[];
        source: string | Uint8Array<ArrayBufferLike>;
        type: "asset";
    }

    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.

    fileName: string

    The file name of this asset.

    name: string | undefined

    Use names instead.

    names: string[]
    originalFileName: string | null

    Use originalFileNames instead.

    originalFileNames: string[]

    The list of the absolute paths to the original file of this asset.

    source: string | Uint8Array<ArrayBufferLike>

    The content of this asset.

    type: "asset"