Skip to content

Commit

Permalink
add missing Timer types and Bun.build sourcemap "linked" (#13349)
Browse files Browse the repository at this point in the history
  • Loading branch information
MARCROCK22 authored Aug 16, 2024
1 parent d4237b0 commit 5a8e98c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/bundler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/bun-types/bun.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ declare module "bun" {
define?: Record<string, string>;
// 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
*
Expand Down
1 change: 1 addition & 0 deletions packages/bun-types/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ declare global {
ref(): Timer;
unref(): Timer;
hasRef(): boolean;
refresh(): Timer

[Symbol.toPrimitive](): number;
}
Expand Down
2 changes: 1 addition & 1 deletion test/bundler/expectBundled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>);
install?: string[];

Expand Down

0 comments on commit 5a8e98c

Please sign in to comment.