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

    Interface OnEmitArgs

    interface OnEmitArgs {
        outputPath: string;
        inputs: BundledInputFile[];
        imports: ImportedEntity<any>[];
        importedBy: string[];
        contents: Uint8Array<ArrayBuffer>;
        write: boolean;
        reEmitData?: Record<PropertyKey, any>;
    }
    Index

    Properties

    outputPath: string

    the output path of this bundled resource, relative to the cwd or absWorkingDir (not the outdir directory!), and always in posix format.

    TODO: I actually don't provide a relative path right now. but should I even?

    a list of input resources that were bundled into this resource (by esbuild), or were chunked by esbuild for this resource.

    imports: ImportedEntity<any>[]

    a list of resource imports that were included in the build for this resource. these, however, are not currently bundled into the contents of your resource; they're still external resources that your transformed file will need to reference (re-incorporate) in order to import during runtime.

    importedBy: string[]

    a list of output files paths that import this resource entity. these reflect the importer resource's outputPath.

    contents: Uint8Array<ArrayBuffer>

    the transformed and/or bundled content that may need to have the linked imports re-incorporated into it.

    write: boolean

    specifies if this output entity is marked to be written. this value is initially true by default, but if this entity had been previously re-emitted by an onEmit hook, then the value here will reflect the write state specified in the prior onEmit hook's result (i.e. OnEmitResult.write).

    true.

    reEmitData?: Record<PropertyKey, any>

    if this resource has been re-emitted by a prior onEmit handler, then it is possible for that handler to have inserted some kind of additional contextual information into this record field.

    read more about it in OnEmitResult.reEmitData.