From 3613429dc3b60fb84c0b25c47e16ff4a79574d23 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 16 Jul 2023 22:43:25 -0700 Subject: Update workers.md --- docs/api/workers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/api/workers.md') 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. -- cgit v1.2.3