resolve require deps tree