mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
Webpack 5 now includes web worker support. However, the structure of the URL within the `Worker` constructor must be in a specific format. A migration has been added for Angular v12 that will convert web workers from the old structure to the new structure. Before: `new Worker('./app.worker', ...)` After: `new Worker(new URL('./app.worker', import.meta.url), ...)`