Handle browser Errors.

This commit is contained in:
2026-03-21 06:34:32 +01:00
parent d893a31d73
commit 7ef114ee70
97 changed files with 849 additions and 277 deletions
+31
View File
@@ -0,0 +1,31 @@
import { type ExecSyncOptions } from "child_process";
declare const BuildKeys: readonly [{
readonly key: "production";
}, {
readonly key: "bytecode";
}, {
readonly key: "conditions";
}, {
readonly key: "format";
}, {
readonly key: "root";
}, {
readonly key: "splitting";
}, {
readonly key: "cdd-chunking";
}];
type Params = {
src: string;
out_dir: string;
entry_naming?: string;
minify?: boolean;
exec_options?: ExecSyncOptions;
debug?: boolean;
sourcemap?: boolean;
target?: "browser" | "node" | "bun";
build_options?: {
[k in (typeof BuildKeys)[number]["key"]]: string | boolean;
};
};
export default function bundle({ out_dir, src, minify, exec_options, debug, entry_naming, sourcemap, target, build_options, }: Params): void;
export {};