Implement es6 modules with 'globals' configuration