You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I want to import it in main bundle's entrypoint
// main.ts
const worker = new Worker(/*??? */);
Per documetation, the entry to worker should be statically analyzable single path (https://rspack.rs/guide/features/web-workers#web-workers) which seems not possilble to specify generated bundle output path. Is there an allowed way to achieve this? Or is there a recommended pattern instead?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Say for some reason (please don't ask why) I have to setup a multicompiler config to generate a specific worker bundle
Now I want to import it in main bundle's entrypoint
Per documetation, the entry to worker should be statically analyzable single path (https://rspack.rs/guide/features/web-workers#web-workers) which seems not possilble to specify generated bundle output path. Is there an allowed way to achieve this? Or is there a recommended pattern instead?
Beta Was this translation helpful? Give feedback.
All reactions