i don't know alot about yarn 2, but it seems like they're taking a similar route to autoloading as composer and rubygems. is that correct?