Interface TransformResult<ProvidedOptions>

interface TransformResult<ProvidedOptions> {
    code: string;
    legalComments: string | (ProvidedOptions["legalComments"] extends "external"
        ? never
        : undefined);
    mangleCache: Record<string, string | false> | (ProvidedOptions["mangleCache"] extends Object
        ? never
        : undefined);
    map: string;
    warnings: Message[];
}

Type Parameters

Properties

code: string
legalComments: string | (ProvidedOptions["legalComments"] extends "external"
    ? never
    : undefined)

Only when "legalComments" is "external"

mangleCache: Record<string, string | false> | (ProvidedOptions["mangleCache"] extends Object
    ? never
    : undefined)

Only when "mangleCache" is present

map: string
warnings: Message[]