Please add SharedWorker support to parcel.
At first sight this seems to be pretty similar to workers (from a bundlers perspective). The regex of worker should probably be updated to also include SharedWorkers and this should work. Not sure what's not working right now.
Just like web workers, Shared worker should be compiled into a separate bundle by parcel.
Like I said it's probably not being catched by the current Regex
I developed a quick fix and wrote a test for it. I hope this helps
Most helpful comment
I developed a quick fix and wrote a test for it. I hope this helps