From bab8e888433720e73b9026629b5247954176608f Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Tue, 22 Jul 2025 17:21:15 +0800 Subject: [PATCH] vite config for ts components --- next-ui/vite.config.mts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/next-ui/vite.config.mts b/next-ui/vite.config.mts index 83ebd06f..43968bbf 100644 --- a/next-ui/vite.config.mts +++ b/next-ui/vite.config.mts @@ -39,7 +39,9 @@ export default defineConfig({ Components({ dts: 'src/components.d.ts', dirs: ['src/components', 'src/fragments'], - globsExclude: ['src/**/*.stories.vue'], + extensions: ['vue', 'ts'], + include: [/\.vue$/, /\.[tj]s$/], + globsExclude: ['src/**/*.stories.*'], directoryAsNamespace: true, collapseSamePrefixes: true, }),