compile code that uses workers #7846
-
TL;DR: how do you compile code that relies on the use of workers, which are not direclty imported in code, but rather referenced in a new instance of
the docs say that I have to import files in my code to have them in the compiled file, but to use workers I don't import them, I just instantiate a by doing that, in a regular compilation and by just importing the workers at the top of the app to have them in the built bundle, I get the same error as before, not being able to find the worker module. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
this is a great question can you file an issue? We can make |
Beta Was this translation helpful? Give feedback.
this is a great question
can you file an issue? We can make
new Worker
create a new entry point dynamically, sort of similar to import expressions