Shortening method loadComponentsFromPathSync.