close

WebWorkerTemplatePlugin

此插件用于打包 Web Worker 产物,经常配合 childCompiler 一起使用。

它会将 output.chunkLoading 设为 'import-scripts',并应用 web worker 目标使用的 'array-push' chunk format

new rspack.webworker.WebWorkerTemplatePlugin();