diff --git a/vite-plugin-laravel/src/inertia.ts b/vite-plugin-laravel/src/inertia.ts index 583a517..511832c 100644 --- a/vite-plugin-laravel/src/inertia.ts +++ b/vite-plugin-laravel/src/inertia.ts @@ -1,7 +1,7 @@ /** * Resolves a page component. */ -export async function importPageComponent(name: string, pages: Record) { +export async function resolvePageComponent(name: string, pages: Record) { const path = Object.keys(pages) .sort((a, b) => a.length - b.length) .find((path) => path.endsWith(`${name.replaceAll('.', '/')}.vue`))