UNPKG

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