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) {
|
2019-03-28 10:55:23 +00:00
|
|
|
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');
|
2020-02-25 07:08:13 +00:00
|
|
|
case 'zone' : return import('zone/front');
|
2019-03-28 10:55:23 +00:00
|
|
|
case 'travel' : return import('travel/front');
|
|
|
|
case 'worker' : return import('worker/front');
|
|
|
|
case 'invoiceOut' : return import('invoiceOut/front');
|
2021-05-04 10:44:21 +00:00
|
|
|
case 'invoiceIn' : return import('invoiceIn/front');
|
2019-03-28 10:55:23 +00:00
|
|
|
case 'route' : return import('route/front');
|
2020-01-10 10:52:35 +00:00
|
|
|
case 'entry' : return import('entry/front');
|
2020-03-09 08:00:03 +00:00
|
|
|
case 'account' : return import('account/front');
|
2020-10-15 06:15:04 +00:00
|
|
|
case 'supplier' : return import('supplier/front');
|
2022-09-14 12:03:15 +00:00
|
|
|
case 'shelving' : return import('shelving/front');
|
2021-05-04 10:44:21 +00:00
|
|
|
case 'monitor' : return import('monitor/front');
|
2019-01-28 11:14:22 +00:00
|
|
|
}
|
|
|
|
}
|