0

I'm working on a plugin that requires a slightly contrived series of virtual-modules. virtual:module_1 Is a module that has to instantiate and talk to virtual:module_2 which is in a web worker. So, virtual:module_1 needs to somehow instantiate a web worker containing virtual:module_2.

However, I can't get vite to accept a virtual-module id to instantiate a Web Worker. With the suffix ?worker the virtual id gets rejected as invalid.

Does anyone know how to do this?

Loris Sigrist
  • 64
  • 1
  • 5

0 Answers0