mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
12 lines
392 B
JavaScript
12 lines
392 B
JavaScript
![]() |
import loadable from 'react-loadable';
|
||
|
import { Components } from './components.js';
|
||
|
// import path from 'path';
|
||
|
|
||
|
// const adminPath = path.resolve(__dirname, './AdminHomeLoaded.jsx').replace(':', '_');
|
||
|
|
||
|
|
||
|
export const dynamicLoader = promise => loadable({
|
||
|
loader: () => promise.then(ex => ex.default),
|
||
|
LoadingComponent: Components.DynamicLoading,
|
||
|
// serverSideRequirePath: adminPath
|
||
|
});
|