1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Revert importRoute simplification

This caused tests to be included in the built files
This commit is contained in:
Bill Thornton 2025-01-23 16:51:14 -05:00
parent 80a26d5822
commit 91d8a3fffd

View file

@ -15,7 +15,14 @@ export interface AsyncRoute {
}
const importRoute = (page: string, type: AppType) => {
return import(/* webpackChunkName: "[request]" */ `../../apps/${type}/routes/${page}`);
switch (type) {
case AppType.Dashboard:
return import(/* webpackChunkName: "[request]" */ `../../apps/dashboard/routes/${page}`);
case AppType.Experimental:
return import(/* webpackChunkName: "[request]" */ `../../apps/experimental/routes/${page}`);
case AppType.Stable:
return import(/* webpackChunkName: "[request]" */ `../../apps/stable/routes/${page}`);
}
};
export const toAsyncPageRoute = ({