fix(nuxt): remove whitespace around spa loading template

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

View File

@ -625,7 +625,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