diff --git a/docs/rfcs/bun-build-config.ts b/docs/rfcs/bun-build-config.ts index 7084e66fb8..88bbdd90de 100644 --- a/docs/rfcs/bun-build-config.ts +++ b/docs/rfcs/bun-build-config.ts @@ -10,7 +10,7 @@ type BunPlugin = Parameters<(typeof Bun)["plugin"]>[0]; export type JavaScriptLoader = "jsx" | "js" | "ts" | "tsx"; export type MacroMap = Record>; export type Target = "bun" | "browser" | "node" | "neutral"; -export type Format = "iife" | "cjs" | "esm"; +export type ModuleFormat = "iife" | "cjs" | "esm"; export type JsxTransform = "transform" | "preserve" | "automatic"; export type Loader = | "base64" @@ -44,8 +44,8 @@ type BundlerError = { }; export interface BuildConfig extends BundlerConfig { - outdir?: string; - entrypoints?: string[]; + entrypoints: string[]; + outdir: string; root?: string; // equiv. outbase watch?: boolean; } @@ -93,7 +93,6 @@ export interface BundlerConfig { conditions?: string[]; origin?: string; // e.g. http://mydomain.com - assetOrigin?: string; // e.g. http://assets.mydomain.com // in Bun.Transpiler this only accepts a Loader string // change: set an ext->loader map @@ -123,7 +122,7 @@ export interface BundlerConfig { content?: boolean; }; - format?: Format; + module?: ModuleFormat; // removed: logging, mangleProps, reserveProps, mangleQuoted, mangleCache @@ -136,7 +135,7 @@ export interface BundlerConfig { syntax?: boolean; }; - treeShaking?: boolean; + treeshaking?: boolean; jsx?: | JsxTransform diff --git a/docs/rfcs/bun-build.ts b/docs/rfcs/bun-build.ts index b41b183ab0..e6c9412c49 100644 --- a/docs/rfcs/bun-build.ts +++ b/docs/rfcs/bun-build.ts @@ -9,7 +9,7 @@ namespace Bun { export type BuildResult = { // T will usually be a FileBlob // or a Blob (for in-memory builds) - outputs: { path: string; result: T }[]; + outputs: Map; // only exists if `manifest` is true manifest?: BuildManifest; log: Log;