aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/bundler/index.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/bundler/index.md b/docs/bundler/index.md
index 9b8029db1..7bb04cc82 100644
--- a/docs/bundler/index.md
+++ b/docs/bundler/index.md
@@ -1096,7 +1096,7 @@ interface BuildArtifact extends Blob {
The `outputs` array contains all the files that were generated by the build. Each artifact implements the `Blob` interface.
```ts
-const build = Bun.build({
+const build = await Bun.build({
/* */
});
@@ -1140,7 +1140,7 @@ Each artifact also contains the following properties:
Similar to `BunFile`, `BuildArtifact` objects can be passed directly into `new Response()`.
```ts
-const build = Bun.build({
+const build = await Bun.build({
/* */
});
@@ -1156,7 +1156,7 @@ The Bun runtime implements special pretty-printing of `BuildArtifact` object to
```ts#Build_script
// build.ts
-const build = Bun.build({/* */});
+const build = await Bun.build({/* */});
const artifact = build.outputs[0];
console.log(artifact);