diff options
author | 2023-07-19 22:53:28 -0700 | |
---|---|---|
committer | 2023-07-19 22:53:28 -0700 | |
commit | ed8be46a7bf00321b4a10571e245e8fd744676d9 (patch) | |
tree | c8de521c4970a5b6c918103d202572e329177018 /docs/api | |
parent | 36866c4d7941d36656ab684e4dccecab2f06ebef (diff) | |
download | bun-ed8be46a7bf00321b4a10571e245e8fd744676d9.tar.gz bun-ed8be46a7bf00321b4a10571e245e8fd744676d9.tar.zst bun-ed8be46a7bf00321b4a10571e245e8fd744676d9.zip |
Inline`bun` object from workers
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/workers.md | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/api/workers.md b/docs/api/workers.md index 9a4e0d799..af459d18e 100644 --- a/docs/api/workers.md +++ b/docs/api/workers.md @@ -132,9 +132,7 @@ Alternatively, you can also pass an `options` object to `Worker`: ```ts const worker = new Worker(new URL("worker.ts", import.meta.url).href, { - bun: { - ref: true, - }, + ref: true, }); ``` @@ -157,9 +155,7 @@ JavaScript instances can use a lot of memory. Bun's `Worker` supports a `smol` m ```js const worker = new Worker("./i-am-smol.ts", { - bun: { - smol: true, - }, + smol: true, }); ``` |