1 | import { Plugin } from 'rollup';
|
2 | import { TransformOptions, BuildOptions, Loader } from 'esbuild';
|
3 | import { FilterPattern } from '@rollup/pluginutils';
|
4 |
|
5 | declare type MarkOptional<Type, Keys extends keyof Type> = Type extends Type ? Omit<Type, Keys> & Partial<Pick<Type, Keys>> : never;
|
6 |
|
7 | type Options$1 = Omit<TransformOptions, 'sourcemap'> & {
|
8 | sourceMap?: boolean;
|
9 | };
|
10 | declare const minify: ({ sourceMap, ...options }?: Options$1) => Plugin;
|
11 |
|
12 | type OptimizeDepsOptions = {
|
13 | include: string[];
|
14 | exclude?: string[];
|
15 | cwd: string;
|
16 | esbuildOptions?: BuildOptions;
|
17 | sourceMap: boolean;
|
18 | };
|
19 |
|
20 | type Options = Omit<TransformOptions, 'sourcemap' | 'loader'> & {
|
21 | include?: FilterPattern;
|
22 | exclude?: FilterPattern;
|
23 | sourceMap?: boolean;
|
24 | optimizeDeps?: MarkOptional<OptimizeDepsOptions, 'cwd' | 'sourceMap'>;
|
25 | |
26 |
|
27 |
|
28 |
|
29 | tsconfig?: string | false;
|
30 | |
31 |
|
32 |
|
33 |
|
34 | loaders?: {
|
35 | [ext: string]: Loader | false;
|
36 | };
|
37 | };
|
38 | declare const _default: ({ include, exclude, sourceMap, optimizeDeps, tsconfig, loaders: _loaders, ...esbuildOptions }?: Options) => Plugin;
|
39 |
|
40 | export { Options, _default as default, minify };
|