We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 273285f commit 84bbc88Copy full SHA for 84bbc88
UPGRADE.md
@@ -142,17 +142,9 @@ Inertia makes use of a `require()` call that is more complex to replicate with V
142
143
The following function can be used instead:
144
145
-```js
146
-function resolvePageComponent(path, pages) {
147
- if (typeof pages[path] === undefined) {
148
- throw new Error(`Page not found: ${path}`)
149
- }
150
-
151
- return pages[path]()
152
-}
153
-```
154
155
```diff
++ import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'
+
156
createInertiaApp({
157
title: (title) => `${title} - ${appName}`,
158
- resolve: (name) => require(`./Pages/${name}.vue`),
0 commit comments