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