Do always use a webworker always with a single file bundle do never split web worker code into modules. WebWorkers have a limited life cycle thats why they are not designed to run multiple modules they are designed to shift of long running processing from the main th and should not get abused for other stuff
The costs of context switching between the Main and the Worker is to high so only use it for operations that take at last 500ms in general even a operation that takes 100ms is a valid usecase but it depends on the overall time that your app blocks the main th. So batch processing is also a valid usecase.
Thanks for the advice. I have been looking for an option with a multi-module system for a long time.