mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
* Add worker-loader Targets enhancement: https://github.com/developit/microbundle/issues/170 Enable usage of `microbundle --worker-loader` to apply rollup-plugin-web-worker-loader. Allow bundling web workers automatically - Add flag `--worker-loader` - For format `es` and `modern`, a Worker `type: module` is automatically bundled * Update README.md Co-authored-by: Jason Miller <developit@users.noreply.github.com> * Update src/index.js Co-authored-by: Jason Miller <developit@users.noreply.github.com> * Update src/prog.js Co-authored-by: Jason Miller <developit@users.noreply.github.com> * Update test/__snapshots__/index.test.js.snap Co-authored-by: Jason Miller <developit@users.noreply.github.com> * Update test/fixtures/worker-loader/package.json Co-authored-by: Jason Miller <developit@users.noreply.github.com> * Update README.md Co-authored-by: Jason Miller <developit@users.noreply.github.com> * Remove node_modules from snapshot * Upgrade rollup-plugin-off-main-thread * Add changeset Co-authored-by: Tim Daubenschütz <tim@daubenschuetz.de> Co-authored-by: Jason Miller <developit@users.noreply.github.com>
7 lines
100 B
JSON
7 lines
100 B
JSON
{
|
|
"name": "worker-loader",
|
|
"scripts": {
|
|
"build": "microbundle -f modern,es --workers"
|
|
}
|
|
}
|