diff --git a/docs/bundler/index.md b/docs/bundler/index.md index d5524f8a8aca81..de0becca01d1a6 100644 --- a/docs/bundler/index.md +++ b/docs/bundler/index.md @@ -1276,7 +1276,7 @@ interface BuildOptions { loader?: { [k in string]: Loader }; // See https://bun.sh/docs/bundler/loaders manifest?: boolean; // false external?: string[]; // [] - sourcemap?: "none" | "inline" | "linked" | "external" | boolean; // "none" + sourcemap?: "none" | "inline" | "linked" | "external" | "linked" | boolean; // "none" root?: string; // computed from entrypoints naming?: | string diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index dd076debfe3909..3c21ae09835085 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -1521,7 +1521,7 @@ declare module "bun" { define?: Record; // origin?: string; // e.g. http://mydomain.com loader?: { [k in string]: Loader }; - sourcemap?: "none" | "linked" | "inline" | "external"; // default: "none", true -> "inline" + sourcemap?: "none" | "linked" | "inline" | "external" | "linked"; // default: "none", true -> "inline" /** * package.json `exports` conditions used when resolving imports * diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts index a4309228e973a0..a9d6aec5ee1697 100644 --- a/packages/bun-types/globals.d.ts +++ b/packages/bun-types/globals.d.ts @@ -955,6 +955,7 @@ declare global { ref(): Timer; unref(): Timer; hasRef(): boolean; + refresh(): Timer [Symbol.toPrimitive](): number; } diff --git a/test/bundler/expectBundled.ts b/test/bundler/expectBundled.ts index 7cf1c5c2c289d7..06f34a996280b7 100644 --- a/test/bundler/expectBundled.ts +++ b/test/bundler/expectBundled.ts @@ -199,7 +199,7 @@ export interface BundlerTestInput { unsupportedJSFeatures?: string[]; /** if set to true or false, create or edit tsconfig.json to set compilerOptions.useDefineForClassFields */ useDefineForClassFields?: boolean; - sourceMap?: "inline" | "external" | "linked" | "none"; + sourceMap?: "inline" | "external" | "linked" | "none" | "linked"; plugins?: BunPlugin[] | ((builder: PluginBuilder) => void | Promise); install?: string[];