Loads other files as needed by their import path.
Returns a new loader that reports failures to errors.