feat: add logging for when custom element registry not inserted

This commit is contained in:
Ayo Ayco 2024-12-31 01:15:01 +01:00
parent 8d976b8b47
commit b486a7a5d5
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@ html
*.log* *.log*
.nitro .nitro
.netlify
.cache .cache
.output .output
.env .env

View file

@ -37,6 +37,11 @@ export function useMcFlyRoute({ storage }) {
if (!!componentType && !!html) { if (!!componentType && !!html) {
html = await insertRegistry(html.toString(), componentType, storage) html = await insertRegistry(html.toString(), componentType, storage)
} else {
console.error('[ERR]: Failed to insert registry', {
componentType: !componentType ? 'missing' : 'okay',
html: !html ? 'missing' : 'okay',
})
} }
} }