diff --git a/src/indexer/index.ts b/src/indexer/index.ts index 1fdef86..5709f21 100644 --- a/src/indexer/index.ts +++ b/src/indexer/index.ts @@ -1,4 +1,3 @@ -import { combineTags } from '@storybook/csf'; import type { IndexInput, Indexer } from 'storybook/internal/types'; import { parseForIndexer } from '#indexer/parser'; @@ -24,7 +23,7 @@ export const createIndexer = (legacyTemplate: boolean): Indexer => ({ exportName: story.exportName, name: story.name, title: makeTitle(meta.title), - tags: combineTags(...(meta.tags ?? []), ...(story.tags ?? [])), + tags: [...(meta.tags ?? []), ...(story.tags ?? [])], } satisfies IndexInput; }); } catch (error) { diff --git a/tests/stories/Tags.stories.svelte b/tests/stories/Tags.stories.svelte new file mode 100644 index 0000000..ecc5a7c --- /dev/null +++ b/tests/stories/Tags.stories.svelte @@ -0,0 +1,24 @@ + + +With autodocs + +With dev + +With test + +No tags