Skip to content

Commit 30531a6

Browse files
authored
inject css in head to prevent content shift when using SSR, fixes inertiajs#1760
1 parent 700f369 commit 30531a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

playgrounds/svelte5/vite.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export default defineConfig({
99
ssr: 'resources/js/ssr.js',
1010
refresh: true,
1111
}),
12-
svelte(),
12+
svelte({
13+
compilerOptions: {
14+
css: 'injected'
15+
}
16+
}),
1317
],
1418
})

0 commit comments

Comments
 (0)