Apply required dependencies[] for modules.