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:
parent
80a26d5822
commit
91d8a3fffd
1 changed files with 8 additions and 1 deletions
|
@ -15,7 +15,14 @@ export interface AsyncRoute {
|
||||||
}
|
}
|
||||||
|
|
||||||
const importRoute = (page: string, type: AppType) => {
|
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 = ({
|
export const toAsyncPageRoute = ({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue