mind adding a comment as to what target (worker) and modules (object where keys are module names and values the actual module) are.