export const $module = () => { return new Promise(resolve => { require.ensure([], () => { require('$module'); resolve('$module'); }, '$module'); }); }; core.splitingRegister.register('$module', $module);