For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /plugins/webpack/web-worker-template-plugin.md.
close

WebWorkerTemplatePlugin

This plugin is used to bundle Web Worker assets, often used with childCompiler.

It sets output.chunkLoading to 'import-scripts' and applies the 'array-push' chunk format used by web worker targets.

new rspack.webworker.WebWorkerTemplatePlugin();