Open saturnonearth opened 2 years ago
I've experienced the same issue and found a temporary workaround, using a vite plugin which properly excludes the unused import from the suggested code in this issue and then excluding the broadcast-channel dependency with:
plugins: [sveltekit(), viteIgnoreStaticImport(['broadcast-channel'])],
When using this with SvelteKit (Vite), it gives an error that you must install Broadcaster as a dependency, increasing the overall package size, even if you are not using that feature.