docs(badge): update

This commit is contained in:
Benjamin Canac
2024-07-09 18:11:41 +02:00
parent 5a13e1bf41
commit 781047eacb
2 changed files with 59 additions and 11 deletions

View File

@@ -116,16 +116,11 @@ export default defineNuxtConfig({
},
hooks: {
// Related to https://github.com/nuxt/nuxt/pull/22558
// 'components:extend': (components) => {
// components.forEach((component) => {
// if (component.shortPath.includes('@nuxt/ui-pro')) {
// component.global = true
// } else if (component.global) {
// component.global = 'sync'
// }
// })
// }
'components:extend': (components) => {
const globals = components.filter(c => ['UBadge'].includes(c.pascalName))
globals.forEach(c => c.global = 'sync')
}
},
// vite: {