implementation of resolving modules for bundle by it's deps (recursive)