//#region src/types.d.ts type BuildOptions = { /** * Whether to clean output directory * @default false */ clean: boolean; /** * Config file to load * @default undefined */ config?: string; /** * Enable development build, Enable debug info, and disable optimizations * If not specified, use the release build by default. * @default false */ dev: boolean; /** * Whether to dry run * @default false */ dry: boolean; /** * Entry directories for wasm project to package */ entry: string[]; /** * File extensions should be included for The files field in package.json * @default ["js", "ts", "wasm"] */ extensions: string[]; /** * Whether to add a .gitignore file in output directory, to ignore wasmup output directory in git * @default false */ ignoreOutput: boolean; /** * The wasm build output path */ output: string; /** * Enable profiling build. Enable optimizations and debug info * If not specified, use the release build by default. * @default false */ profiling: boolean; /** * The npm scope to use in package.json * @default undefined */ scope?: string; /** * Whether to generate shims * @summary * The shims are used to provide compatibility with nodejs/deno/bun platforms * and provide a way to check functions parameters * @default true */ shims?: boolean; }; type ConfigOptions = Partial>; //#endregion //#region src/index.d.ts declare function defineConfig(config: ConfigOptions): Partial>; //#endregion export { defineConfig };