mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
12 lines
No EOL
392 B
JavaScript
12 lines
No EOL
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
|
|
}); |