1 | export type RawSourceMap = import("source-map").RawSourceMap;
|
---|
2 | export type ExtractCommentsOptions =
|
---|
3 | import("./index.js").ExtractCommentsOptions;
|
---|
4 | export type CustomMinifyFunction = import("./index.js").CustomMinifyFunction;
|
---|
5 | export type TerserMinifyOptions = import("terser").MinifyOptions;
|
---|
6 | export type MinifyOutput = import("terser").MinifyOutput;
|
---|
7 | export type FormatOptions = import("terser").FormatOptions;
|
---|
8 | export type MangleOptions = import("terser").MangleOptions;
|
---|
9 | export type ExtractCommentsFunction =
|
---|
10 | import("./index.js").ExtractCommentsFunction;
|
---|
11 | export type ExtractCommentsCondition =
|
---|
12 | import("./index.js").ExtractCommentsCondition;
|
---|
13 | export type CustomMinifyOptions = any;
|
---|
14 | export type InternalMinifyOptions = {
|
---|
15 | name: string;
|
---|
16 | input: string;
|
---|
17 | inputSourceMap?: import("source-map").RawSourceMap | undefined;
|
---|
18 | extractComments: ExtractCommentsOptions;
|
---|
19 | minify?: import("./index.js").CustomMinifyFunction | undefined;
|
---|
20 | minifyOptions: TerserMinifyOptions | CustomMinifyOptions;
|
---|
21 | };
|
---|
22 | export type ExtractedComments = Array<string>;
|
---|
23 | export type InternalMinifyResult = Promise<
|
---|
24 | MinifyOutput & {
|
---|
25 | extractedComments?: string[];
|
---|
26 | }
|
---|
27 | >;
|
---|
28 | export type NormalizedTerserMinifyOptions = TerserMinifyOptions & {
|
---|
29 | sourceMap: undefined;
|
---|
30 | } & (
|
---|
31 | | {
|
---|
32 | output: FormatOptions & {
|
---|
33 | beautify: boolean;
|
---|
34 | };
|
---|
35 | }
|
---|
36 | | {
|
---|
37 | format: FormatOptions & {
|
---|
38 | beautify: boolean;
|
---|
39 | };
|
---|
40 | }
|
---|
41 | );
|
---|
42 | /**
|
---|
43 | * @param {InternalMinifyOptions} options
|
---|
44 | * @returns {InternalMinifyResult}
|
---|
45 | */
|
---|
46 | export function minify(options: InternalMinifyOptions): InternalMinifyResult;
|
---|
47 | /**
|
---|
48 | * @param {string} options
|
---|
49 | * @returns {InternalMinifyResult}
|
---|
50 | */
|
---|
51 | export function transform(options: string): InternalMinifyResult;
|
---|