Endo API documentation
    Preparing search index...

    Type Alias BundleOptions<T>

    type BundleOptions<T extends ModuleFormat> = {
        cacheSourceMaps?: boolean;
        conditions?: string[];
        dev?: boolean;
        elideComments?: boolean;
        format?: T;
        noTransforms?: boolean;
    }

    Type Parameters

    Index

    Properties

    cacheSourceMaps?: boolean
    conditions?: string[]
    • conditions for package.json conditional exports and imports.
    dev?: boolean
    • development mode, for test bundles that need access to devDependencies of the entry package.
    elideComments?: boolean
    • when true for the endoScript and endoZipBase64 format, replaces the interior of comments with blank space that advances the cursor the same number of lines and columns.
    format?: T
    noTransforms?: boolean
    • when true, generates a bundle with the original sources instead of SES-shim specific ESM and CJS. This may become default in a future major version.