1 | import type { IProjectConfig } from '@tarojs/taro/types/compile';
|
2 | import type { CompilerTypes, CompilerWebpackTypes } from '@tarojs/taro/types/compile/compiler';
|
3 | type WebpackMerge = (...configs: Array<object | null | undefined>) => object;
|
4 | export interface ConfigEnv {
|
5 |
|
6 | command: string;
|
7 |
|
8 | mode: string;
|
9 | }
|
10 | export type UserConfigFn<T extends CompilerTypes = CompilerWebpackTypes> = (merge: WebpackMerge, env: ConfigEnv) => IProjectConfig<T> | Promise<IProjectConfig<T>>;
|
11 | export type UserConfigExport<T extends CompilerTypes = CompilerWebpackTypes> = IProjectConfig<T> | Promise<IProjectConfig<T>> | UserConfigFn;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare function defineConfig<T extends CompilerTypes = CompilerWebpackTypes>(config: UserConfigExport<T>): UserConfigExport<T>;
|
17 | export {};
|