Skip to content

Commit

Permalink
Merge pull request #20442 from storybookjs/svelte-storystorev7-warning
Browse files Browse the repository at this point in the history
Svelte: Do not warn about .svelte files in storyStoreV7
  • Loading branch information
valentinpalkovic authored Dec 30, 2022
2 parents 1727d4b + 383490a commit 2115c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/builder-vite/src/codegen-importfn-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}

Expand Down

0 comments on commit 2115c7a

Please sign in to comment.