interface BundleOptions<T> {
    conditions: undefined | string[];
    dev: undefined | boolean;
    elideComments: undefined | boolean;
    format: undefined | T;
    noTransforms: undefined | boolean;
}

Type Parameters

Properties

conditions: undefined | string[]

conditions for package.json conditional exports and imports.

dev: undefined | boolean

development mode, for test bundles that need access to devDependencies of the entry package.

elideComments: undefined | 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: undefined | T
noTransforms: undefined | 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.