diff options
author | 2023-07-16 22:43:25 -0700 | |
---|---|---|
committer | 2023-07-16 22:43:38 -0700 | |
commit | 3613429dc3b60fb84c0b25c47e16ff4a79574d23 (patch) | |
tree | 0fcad18518125799618fc2e45d3b3410846de40e /docs/api | |
parent | 7917ebd58f852685f5b8abc50541747bfbb2ee13 (diff) | |
download | bun-3613429dc3b60fb84c0b25c47e16ff4a79574d23.tar.gz bun-3613429dc3b60fb84c0b25c47e16ff4a79574d23.tar.zst bun-3613429dc3b60fb84c0b25c47e16ff4a79574d23.zip |
Update workers.md
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/workers.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api/workers.md b/docs/api/workers.md index c5a3da1a9..79a230714 100644 --- a/docs/api/workers.md +++ b/docs/api/workers.md @@ -118,7 +118,7 @@ const worker = new Worker("./i-am-smol.ts", { It sets ` JSC::HeapSize` to be `Small` instead of the default `Large` -### Modules work +### Worker supports ES Modules, CommonJS, TypeScript, JSX, etc Like the rest of Bun, `Worker` in Bun support CommonJS, ES Modules, TypeScript, JSX, TSX and more out of the box. No extra build steps are necessary. You can use `import` and `export` in your worker code. This is different than browsers, where `"type": "module"` is necessary to use ES Modules. |