fix: update Vue compiler options for custom lucide elements

This commit is contained in:
Shariq Ansari 2025-05-19 16:11:19 +05:30
parent 9fdd8bbc17
commit 740c21532a
2 changed files with 7 additions and 2 deletions

View File

@ -150,7 +150,6 @@ declare module 'vue' {
ListIcon: typeof import('./src/components/Icons/ListIcon.vue')['default']
ListRows: typeof import('./src/components/ListViews/ListRows.vue')['default']
LoadingIndicator: typeof import('./src/components/Icons/LoadingIndicator.vue')['default']
LucidePlus: typeof import('~icons/lucide/plus')['default']
MarkAsDoneIcon: typeof import('./src/components/Icons/MarkAsDoneIcon.vue')['default']
MaximizeIcon: typeof import('./src/components/Icons/MaximizeIcon.vue')['default']
MenuIcon: typeof import('./src/components/Icons/MenuIcon.vue')['default']

View File

@ -18,7 +18,13 @@ export default defineConfig({
sourcemap: true,
},
}),
vue(),
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => tag.startsWith('Lucide'),
},
},
}),
vueJsx(),
VitePWA({
registerType: 'autoUpdate',