salix/front/module-import.js

28 lines
1.1 KiB
JavaScript
Raw Normal View History

export default function moduleImport(moduleName) {
2019-03-21 12:46:14 +00:00
// TODO: Webpack watches module backend files when using dynamic import
2024-06-07 09:35:03 +00:00
// return import(
2019-01-28 11:14:22 +00:00
// /* webpackInclude: /modules\/[a-z0-9-]+\/front\/index.js$/ */
// '../modules/'+ moduleName +'/front/index.js'
2024-06-07 09:35:03 +00:00
// );
2019-01-28 11:14:22 +00:00
2024-06-07 09:35:03 +00:00
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 'zone': return import('zone/front');
case 'travel': return import('travel/front');
case 'worker': return import('worker/front');
case 'invoiceOut': return import('invoiceOut/front');
case 'invoiceIn': return import('invoiceIn/front');
case 'route': return import('route/front');
case 'account': return import('account/front');
case 'supplier': return import('supplier/front');
case 'shelving': return import('shelving/front');
case 'monitor': return import('monitor/front');
2024-06-11 10:28:49 +00:00
case 'entry': return import('entry/front');
2019-01-28 11:14:22 +00:00
}
}