Skip to content

Commit

Permalink
refactor(vite): rename resolvePageComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Jun 1, 2022
1 parent c41d03a commit d6abbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite-plugin-laravel/src/inertia.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Resolves a page component.
*/
export async function importPageComponent(name: string, pages: Record<string, any>) {
export async function resolvePageComponent(name: string, pages: Record<string, any>) {
const path = Object.keys(pages)
.sort((a, b) => a.length - b.length)
.find((path) => path.endsWith(`${name.replaceAll('.', '/')}.vue`))
Expand Down

0 comments on commit d6abbb4

Please # to comment.