Skip to content

Commit a1c78c7

Browse files
authored
feat: auto-import the new useDate composable (#154)
1 parent e4d2a49 commit a1c78c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/configure-nuxt.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export function configureNuxt(
7171
}) */
7272

7373
if (importComposables) {
74-
const composables = ['useLocale', 'useDefaults', 'useDisplay', 'useLayout', 'useRtl', 'useTheme']
74+
const composables: string[] = ['useLocale', 'useDefaults', 'useDisplay', 'useLayout', 'useRtl', 'useTheme']
75+
if (ctx.vuetify3_4)
76+
composables.push('useDate')
77+
7578
addImports(composables.map(name => ({
7679
name,
7780
from: 'vuetify',

0 commit comments

Comments
 (0)