1 | import { Options } from "./types";
|
2 | export declare type BundleInput = BundleOptions | BundleOptions[];
|
3 | export declare function compileBundleOptions(config: BundleInput | string | undefined): Promise<BundleInput>;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function config(c: BundleInput): BundleInput;
|
19 | export interface BundleOptions extends SpackConfig {
|
20 | workingDir?: string;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 | export interface SpackConfig {
|
26 | |
27 |
|
28 |
|
29 | mode?: Mode;
|
30 | entry: EntryConfig;
|
31 | output: OutputConfig;
|
32 | module: ModuleConfig;
|
33 | options?: Options;
|
34 | }
|
35 | export interface OutputConfig {
|
36 | name: string;
|
37 | path: string;
|
38 | }
|
39 | export interface ModuleConfig {
|
40 | }
|
41 | export declare type Mode = 'production' | 'development' | 'none';
|
42 | export declare type EntryConfig = string | string[] | {
|
43 | [name: string]: string;
|
44 | };
|