Resolve pending modules and imports