From 6db350b51794675482d13e92330fad0555d5e930 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sat, 11 Mar 2023 00:04:24 +0800 Subject: [PATCH] feat: allow vue files in importfn --- code/lib/builder-vite/src/codegen-importfn-script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/builder-vite/src/codegen-importfn-script.ts b/code/lib/builder-vite/src/codegen-importfn-script.ts index 55c24503a726..f81c4647f641 100644 --- a/code/lib/builder-vite/src/codegen-importfn-script.ts +++ b/code/lib/builder-vite/src/codegen-importfn-script.ts @@ -29,7 +29,7 @@ async function toImportFn(stories: string[]) { const objectEntries = stories.map((file) => { const ext = path.extname(file); const relativePath = normalizePath(path.relative(process.cwd(), file)); - if (!['.js', '.jsx', '.ts', '.tsx', '.mdx', '.svelte'].includes(ext)) { + if (!['.js', '.jsx', '.ts', '.tsx', '.mdx', '.svelte', '.vue'].includes(ext)) { logger.warn(`Cannot process ${ext} file with storyStoreV7: ${relativePath}`); }