From c32cde5a4a9286bfa68c243d338c9ba91521d3cc Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 27 Apr 2022 06:47:58 +0000 Subject: [PATCH] add comment --- packages/client/src/router.ts | 1 + 1 file changed, 1 insertion(+) 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,