salix/spliting/require.tpl.js

12 lines
230 B
JavaScript
Raw Normal View History

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