KC's Workspace
    Preparing search index...
    interface MangleOptions {
        debug?: boolean;
        keepNames?: boolean | MangleOptionsKeepNames;
        reserved?: string[];
        toplevel?: boolean;
    }
    Index
    debug?: boolean

    Debug mangled names.

    keepNames?: boolean | MangleOptionsKeepNames

    Preserve name property for functions and classes.

    false
    
    reserved?: string[]

    Names that bindings must not be renamed to, and that bindings already carrying them keep. Equivalent to terser's mangle.reserved.

    Pass ['exports', 'module'] when minifying prebuilt CommonJS / UMD files that Node consumers import directly, so Node's cjs-module-lexer can still detect the mangled module's named exports.

    []
    
    toplevel?: boolean

    Pass true to mangle names declared in the top level scope.

    true for modules and commonjs, otherwise false