1 | import { IsExternal, OutputOptions as RollupOutputOptions, Plugin, RollupOptions, WatcherOptions as RollupWatcherOptions } from "rollup";
|
2 | export declare type Nullable<T> = T | null | undefined;
|
3 | export declare type RollupSourcemap = boolean | "inline";
|
4 | export declare type FilterablePlugins = Array<Nullable<Plugin | false | "">>;
|
5 | export declare type ModuleBuildFormat = "cjs" | "es";
|
6 | export declare type BrowserBuildFormat = "iife" | "amd" | "umd";
|
7 | export declare type BundlibBuildFormat = ModuleBuildFormat | BrowserBuildFormat;
|
8 | export interface BundlibRollupModuleOutputOptions extends RollupOutputOptions {
|
9 | file: string;
|
10 | format: BundlibBuildFormat;
|
11 | sourcemap: RollupSourcemap;
|
12 | esModule: boolean;
|
13 | interop: boolean;
|
14 | }
|
15 | export interface BundlibRollupBrowseOutputOptions extends BundlibRollupModuleOutputOptions {
|
16 | name: string;
|
17 | extend: boolean;
|
18 | globals: Record<string, string>;
|
19 | amd?: {
|
20 | id: string;
|
21 | };
|
22 | }
|
23 | export interface BundlibRollupOptions<OutputOptions extends BundlibRollupModuleOutputOptions> extends RollupOptions {
|
24 | input: string;
|
25 | output: OutputOptions;
|
26 | external: IsExternal;
|
27 | plugins: Plugin[];
|
28 | watch: RollupWatcherOptions;
|
29 | }
|
30 | export interface BundlibAPIOptions {
|
31 | dev?: boolean;
|
32 | watch?: boolean;
|
33 | }
|