From 218cdb31ba0ffd55a8ac1f11aea754ba010b6ab7 Mon Sep 17 00:00:00 2001 From: Nick Babcock Date: Wed, 18 May 2022 06:45:46 -0500 Subject: [PATCH 1/2] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bd57c6e..3bcc86cf 100644 --- a/README.md +++ b/README.md @@ -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: +`es` 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' }); From e83f3b82ed26c12a425c991d3923cb3dc5902fc3 Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Wed, 18 May 2022 19:17:36 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3bcc86cf..0135a1bb 100644 --- a/README.md +++ b/README.md @@ -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` 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' });