import * as b from './b'; var val = b.foo(); var val2 = b.bar;