<!-- Please note that your issue will be fixed much faster if you spend about half an hour preparing it, including the exact reproduction steps and a demo. If you're in a hurry or don't feel confident, it's fine to report bugs with less details, but this makes it less likely they'll get fixed soon. In either case, please use this template and fill in as many fields below as you can. Note that we don't provide help for webpack questions after ejecting. You can find webpack docs at https://webpack.js.org/. --> ### Describe the bug Webpack 5 has [deprecated 'worker-loader'](https://webpack.js.org/guides/web-workers/) When using the suggested webpack 5 compat loader API such as ``` const worker = new Worker(new URL('./test.worker.ts', import.meta.url)); worker.postMessage("test"); ``` The CRA loaders @pmmmwh/react-refresh-webpack-plugin and babel-loader fails, and instead it returns with error > **'You may need an additional loader to handle the result of these loaders.'**