Skip to content

Commit 0cbd818

Browse files
docs: update features.md note about ESM imports in web workers (#13223)
1 parent 13fc345 commit 0cbd818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ import MyWorker from './worker?worker'
541541
const worker = new MyWorker()
542542
```
543543

544-
The worker script can also use `import` statements instead of `importScripts()` - note during dev this relies on browser native support and currently only works in Chrome, but for the production build it is compiled away.
544+
The worker script can also use ESM `import` statements instead of `importScripts()`. **Note**: During dev this relies on [browser native support](https://caniuse.com/?search=module%20worker) (currently not supported in Firefox), but for the production build it is compiled away.
545545

546546
By default, the worker script will be emitted as a separate chunk in the production build. If you wish to inline the worker as base64 strings, add the `inline` query:
547547

0 commit comments

Comments
 (0)