Skip to content

Commit 94688f6

Browse files
authored
Update web-workers.mdx
1 parent 4b4a1b6 commit 94688f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/guides/web-workers.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ new Worker(new URL('./worker.js', import.meta.url));
6363
```
6464
6565
---
66+
Note that this is only available in ESM. `Worker` in CommonJS syntax is not supported by either webpack or Node.js.
6667
6768
## Advanced: Cross-Domain and Dynamic Web Workers
6869

0 commit comments

Comments
 (0)