Something in the previous arrangement was causing webpack to not pack worker/worker.ts as a web worker.