import { getModuleLoader , Dependency } from './mocks/module-loaders' ; export { Dependency } ; export function evaluateModuleExports ( source , dependencies = [ ] ) { const moduleLoader = getModuleLoader ( ) ; dependencies . forEach ( d => { moduleLoader . addDependency ( d ) ; } ) ; return moduleLoader . load ( source ) ; }