Skip to content

Commit 070bd10

Browse files
committed
fix(nuxt): remove whitespace around spa loading template
1 parent aa6cc48 commit 070bd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/core/nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ async function spaLoadingTemplate (nuxt: Nuxt) {
624624

625625
try {
626626
if (existsSync(spaLoadingTemplate)) {
627-
return readFileSync(spaLoadingTemplate, 'utf-8')
627+
return readFileSync(spaLoadingTemplate, 'utf-8').trim()
628628
}
629629
} catch {
630630
// fall through if we have issues reading the file

0 commit comments

Comments
 (0)