salix/spliting/require.tpl.js

12 lines
254 B
JavaScript
Raw Normal View History

export const $module = () => {
2017-03-07 16:11:56 +00:00
return new Promise(resolve => {
require.ensure([], () => {
require('$module');
resolve('$module');
}, '$module');
});
};
core.splitingRegister.register('$module', $module);