2019-01-26 01:30:46 +00:00
|
|
|
|
|
|
|
export default function moduleImport(moduleName) {
|
2019-03-21 12:46:14 +00:00
|
|
|
// TODO: Webpack watches module backend files when using dynamic import
|
2019-01-28 11:14:22 +00:00
|
|
|
//return import(
|
|
|
|
// /* webpackInclude: /modules\/[a-z0-9-]+\/front\/index.js$/ */
|
|
|
|
// '../modules/'+ moduleName +'/front/index.js'
|
|
|
|
//);
|
|
|
|
|
|
|
|
switch(moduleName) {
|
|
|
|
case 'client' : return import('client/front');
|
|
|
|
case 'item' : return import('item/front');
|
|
|
|
case 'ticket' : return import('ticket/front');
|
|
|
|
case 'order' : return import('order/front');
|
|
|
|
case 'claim' : return import('claim/front');
|
|
|
|
case 'agency' : return import('agency/front');
|
|
|
|
case 'travel' : return import('travel/front');
|
2019-01-28 15:24:45 +00:00
|
|
|
case 'worker' : return import('worker/front');
|
2019-03-25 15:25:59 +00:00
|
|
|
case 'invoiceOut' : return import('invoiceOut/front');
|
2019-03-21 12:46:14 +00:00
|
|
|
case 'route' : return import('route/front');
|
2019-01-28 11:14:22 +00:00
|
|
|
}
|
|
|
|
}
|