diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index f02ef8d303..db39dd741c 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -6,6 +6,7 @@ import MkTimeline from '@/pages/timeline.vue'; import { $i, iAmModerator } from './account'; import { ui } from '@/config'; +// pathに/が入るとrollupが解決してくれないので、() => import('*.vue')を指定すること const page = (path: string | AsyncComponentLoader, uiName?: string) => defineAsyncComponent({ loader: typeof path === 'string' ? uiName ? () => import(`./ui/${ui}/pages/${path}.vue`) : () => import(`./pages/${path}.vue`) : path, loadingComponent: MkLoading,