1 | import { MinOption } from "./option-min";
|
2 | import { ModuleOption } from "./option-module";
|
3 | import { BrowserBuildFormat, Nullable, RollupSourcemap } from "./types";
|
4 | export declare type GlobalsOptions = Nullable<Record<string, string> | string[]>;
|
5 | export interface SourceMapOptions {
|
6 | sourcemap?: Nullable<RollupSourcemap>;
|
7 | }
|
8 | export interface PerBuildModuleOptions {
|
9 | esModule?: Nullable<boolean>;
|
10 | interop?: Nullable<boolean>;
|
11 | }
|
12 | export interface PerBuildMinOptions {
|
13 | min?: Nullable<boolean>;
|
14 | }
|
15 | export interface InputOptions {
|
16 | api?: Nullable<string>;
|
17 | bin?: Nullable<string>;
|
18 | }
|
19 | export interface TypesOptions {
|
20 | equals?: Nullable<boolean>;
|
21 | }
|
22 | export interface BrowserOptions {
|
23 | format?: Nullable<BrowserBuildFormat>;
|
24 | name?: Nullable<string>;
|
25 | id?: Nullable<string>;
|
26 | extend?: Nullable<boolean>;
|
27 | globals?: GlobalsOptions;
|
28 | }
|
29 | export interface CommonJSBuildOptions extends SourceMapOptions, PerBuildModuleOptions, PerBuildMinOptions {
|
30 | }
|
31 | export interface ESModuleBuildOptions extends SourceMapOptions, PerBuildMinOptions {
|
32 | }
|
33 | export interface BrowserBuildOptions extends SourceMapOptions, PerBuildModuleOptions, PerBuildMinOptions, BrowserOptions {
|
34 | }
|
35 | export interface BundlibOptions extends SourceMapOptions, TypesOptions, BrowserOptions {
|
36 | input?: Nullable<InputOptions | string>;
|
37 | esModule?: ModuleOption;
|
38 | interop?: ModuleOption;
|
39 | min?: MinOption;
|
40 | cache?: Nullable<string>;
|
41 | main?: Nullable<CommonJSBuildOptions | false>;
|
42 | module?: Nullable<ESModuleBuildOptions | false>;
|
43 | browser?: Nullable<BrowserBuildOptions | false>;
|
44 | bin?: Nullable<CommonJSBuildOptions | string | false>;
|
45 | types?: Nullable<TypesOptions>;
|
46 | }
|