File size: 1,066 Bytes
6b62834 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import { L as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-BhJ90aEv.mjs";
//#region src/utils/load-config.d.ts
type ConfigLoader = "bundle" | "native";
interface LoadConfigOptions {
/**
* How to load the config file.
* - `'bundle'` (default): bundle the config with Rolldown, then import it.
* - `'native'`: import the config directly, delegating TypeScript/loader
* handling to the runtime. Faster, but requires runtime support.
*
* @default 'bundle'
*/
configLoader?: ConfigLoader;
}
/**
* Load config from a file in a way that Rolldown does.
*
* @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
* @param options Loading options. `configLoader` selects `'bundle'` (default) or `'native'`.
* @returns The loaded config export
*
* @category Config
*/
declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
//#endregion
export { VERSION, defineConfig, loadConfig }; |