aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Imamuzzaki Abu Salam <imamuzzaki@gmail.com> 2023-09-22 09:08:57 +0700
committerGravatar GitHub <noreply@github.com> 2023-09-21 19:08:57 -0700
commit0502c134e8547f83a6301b31daed3a47dfe9cfd8 (patch)
treef85a1ef04ac230255ebd9f35ffb53b802cf5a7b7
parente34ff6133908d0f975e13f943cd434f28b74a9a6 (diff)
downloadbun-0502c134e8547f83a6301b31daed3a47dfe9cfd8.tar.gz
bun-0502c134e8547f83a6301b31daed3a47dfe9cfd8.tar.zst
bun-0502c134e8547f83a6301b31daed3a47dfe9cfd8.zip
docs: add await to all Bun.build() call (#5885)
-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);