Skip to content

Commit ea7925c

Browse files
committed
fix SSR with inertia
1 parent 37d124c commit ea7925c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ function noExternalInertiaHelpers(config: UserConfig): true|Array<string|RegExp>
348348
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
349349
/* @ts-ignore */
350350
const userNoExternal = (config.ssr as SSROptions|undefined)?.noExternal
351-
const pluginNoExternal = ['laravel-vite-plugin/inertia-helpers']
351+
const pluginNoExternal = [
352+
'laravel-vite-plugin/inertia-helpers',
353+
'@inertiajs/server'
354+
]
352355

353356
if (userNoExternal === true) {
354357
return true

0 commit comments

Comments
 (0)