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}`); }