fix(nuxt): remove whitespace around spa loading template

This commit is contained in:
Daniel Roe 2024-12-09 21:32:39 +00:00
parent aa6cc48eb0
commit 070bd103c7
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -624,7 +624,7 @@ async function spaLoadingTemplate (nuxt: Nuxt) {
try {
if (existsSync(spaLoadingTemplate)) {
return readFileSync(spaLoadingTemplate, 'utf-8')
return readFileSync(spaLoadingTemplate, 'utf-8').trim()
}
} catch {
// fall through if we have issues reading the file