From 383490a64eb2334b5ac7f01ce4b0fea390759a9f Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Thu, 29 Dec 2022 21:37:41 -0500 Subject: [PATCH] Svelte: Do not warn about .svelte files in storyStoreV7 --- 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 276c4f7b01f4..55c24503a726 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'].includes(ext)) { + if (!['.js', '.jsx', '.ts', '.tsx', '.mdx', '.svelte'].includes(ext)) { logger.warn(`Cannot process ${ext} file with storyStoreV7: ${relativePath}`); }