Marc Bouchenoire 1b61029664
Rebase: Add worker-loader (#867)
* 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>
2021-10-06 09:09:49 -04:00

119 lines
4.4 KiB
JSON

{
"name": "worker-loader",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"dependencies": {
"@surma/rollup-plugin-off-main-thread": "2.1.0"
}
},
"node_modules/@surma/rollup-plugin-off-main-thread": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.1.0.tgz",
"integrity": "sha512-xQnXQc2N/P/fS1qxSwf/gN7I4xjZ3LGpoTXpFpqj7hhpqFsmYKPj792HFSkTfQWhxNLnQN7m/0XIraZ5htlDYg==",
"dependencies": {
"ejs": "^2.6.1",
"json5": "^2.2.0",
"magic-string": "^0.25.0",
"tippex": "^3.0.0"
}
},
"node_modules/ejs": {
"version": "2.7.4",
"resolved": "https://registry.npmjs.org/ejs/-/ejs-2.7.4.tgz",
"integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==",
"hasInstallScript": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/json5": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
"integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
"dependencies": {
"minimist": "^1.2.5"
},
"bin": {
"json5": "lib/cli.js"
},
"engines": {
"node": ">=6"
}
},
"node_modules/magic-string": {
"version": "0.25.7",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz",
"integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",
"dependencies": {
"sourcemap-codec": "^1.4.4"
}
},
"node_modules/minimist": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
},
"node_modules/sourcemap-codec": {
"version": "1.4.8",
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA=="
},
"node_modules/tippex": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tippex/-/tippex-3.0.0.tgz",
"integrity": "sha1-sXYJonzq/+B5ezhzk/2Zh45Nfqk="
}
},
"dependencies": {
"@surma/rollup-plugin-off-main-thread": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.1.0.tgz",
"integrity": "sha512-xQnXQc2N/P/fS1qxSwf/gN7I4xjZ3LGpoTXpFpqj7hhpqFsmYKPj792HFSkTfQWhxNLnQN7m/0XIraZ5htlDYg==",
"requires": {
"ejs": "^2.6.1",
"json5": "^2.2.0",
"magic-string": "^0.25.0",
"tippex": "^3.0.0"
}
},
"ejs": {
"version": "2.7.4",
"resolved": "https://registry.npmjs.org/ejs/-/ejs-2.7.4.tgz",
"integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA=="
},
"json5": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
"integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
"requires": {
"minimist": "^1.2.5"
}
},
"magic-string": {
"version": "0.25.7",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz",
"integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",
"requires": {
"sourcemap-codec": "^1.4.4"
}
},
"minimist": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
},
"sourcemap-codec": {
"version": "1.4.8",
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA=="
},
"tippex": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tippex/-/tippex-3.0.0.tgz",
"integrity": "sha1-sXYJonzq/+B5ezhzk/2Zh45Nfqk="
}
}
}