@oazmi/superbuild - v0.1.0
    Preparing search index...

    Interface EsbuildOutputFile

    the in-memory output file description generated by esbuild. weakly similar to esbuild.OutputFile.

    interface EsbuildOutputFile {
        path: string;
        text?: string;
        contents?: Uint8Array<ArrayBufferLike>;
        hash?: string;
    }
    Index

    Properties

    path: string

    the absolute output path of the file.

    text?: string

    a "text" rendering of the contents property, which changes automatically with any modifications to the contents.

    I'm not certain how it works under the hood, but I assume that it relies on checking for a new assignment (in its setter function), and only then updates the text accordingly. if that is the case, then mutations to the contents buffer itself will not result in the text being updated. instead, we will have to assign a new array buffer to the contents property for the effect to take place.

    contents?: Uint8Array<ArrayBufferLike>

    the contents of the file to be written as a byte buffer. this is the single source of truth. the text property is merely a reflection of this property.

    TODO: this should ideally be set to Uint8Array<ArrayBuffer> instead of just Uint8Array, however, the typing on esbuild.OutputFile.contents still uses Uint8Array, causing type incompatibility issues. once esbuild has the typing fixed, I should update the type definition here as well.

    hash?: string

    the (unique?) hash generated for this output file by esbuild.