rationalize loaders and angular-require integration.