Endo
    Preparing search index...

    Type Alias BundleOptions<T>

    BundleOptions: {
        cacheSourceMaps?: boolean;
        commonDependencies?: Record<string, string>;
        conditions?: string[];
        dev?: boolean;
        elideComments?: boolean;
        format?: T;
        noTransforms?: boolean;
    } & (T extends "endoZipBase64" ? { importHook?: ExitModuleImportHook } : {})

    Type Parameters

    Type Declaration

    • OptionalcacheSourceMaps?: boolean

      when true, render source maps to a per-user per-host cache directory. Defaults to false. See README for details.

    • OptionalcommonDependencies?: Record<string, string>

      common dependencies for the entry package.

    • Optionalconditions?: string[]
      • conditions for package.json conditional exports and imports.
    • Optionaldev?: boolean
      • development mode, for test bundles that need access to devDependencies of the entry package.
    • OptionalelideComments?: 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.
    • Optionalformat?: T
    • OptionalnoTransforms?: 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.