<!-- Issues are so 🔥 If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises. 👉🏽 Need support, advice, or help? Don't open an issue! Head to StackOverflow or https://gitter.im/webpack/webpack. --> - Operating System: macOS 12 - Node Version: 12.22.1 - NPM Version: 6.14.12 - webpack Version: 5.39.0 - worker-loader Version: 3.0.8 ### Feature Proposal `excludeImportee` option to exclude worker be loaded as webpack WebWorker ### Feature Use Case If 'b.worker.js' imports 'a.worker.js' to reuse some of its logic, it will just throw errors  https://github.com/JounQin/test/blob/worker-loader/src/b.worker.js Please check https://github.com/JounQin/test/blob/worker-loader for example. --- Workaround: exclude `a.worker.js` from `worker-loader`, and use `worker-loader!./a.worker` instead.
Feature Proposal
excludeImporteeoption to exclude worker be loaded as webpack WebWorkerFeature Use Case
If 'b.worker.js' imports 'a.worker.js' to reuse some of its logic, it will just throw errors
https://github.com/JounQin/test/blob/worker-loader/src/b.worker.js
Please check https://github.com/JounQin/test/blob/worker-loader for example.
Workaround:
exclude
a.worker.jsfromworker-loader, and useworker-loader!./a.workerinstead.