Skip to content

Commit

Permalink
Remove mention of UMD support for web workers (#962)
Browse files Browse the repository at this point in the history
* Remove mention of UMD support for web workers

OMT only supports amd or esm as output, so the readme should not
mention umd as supported.

When executing microbundle with umd format and `--workers`, the web
worker will fail to be detected or bundled.

* Update README.md

Co-authored-by: Ryan Christian <[email protected]>
  • Loading branch information
nickbabcock and rschristian authored May 19, 2022
1 parent 9a4e2b2 commit 555088d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ This can be customized by passing the command line argument `--css-modules "[nam
### Building Module Workers

Microbundle is able to detect and bundle Module Workers when generating bundles in the
`es`, `umd` and `modern` formats. To use this feature, instantiate your Web Worker as follows:
`esm` and `modern` formats. To use this feature, instantiate your Web Worker as follows:

```js
worker = new Worker(new URL('./worker.js', import.meta.url), { type: 'module' });
Expand Down

0 comments on commit 555088d

Please sign in to comment.