Skip to content

Commit 0979d00

Browse files
Update .storybook/main.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 8df8629 commit 0979d00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.storybook/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ const config = {
6767
// Lazy/island wrappers (LazyComponent<T>, IslandComponent<T>) are
6868
// excluded intentionally — Storybook only needs the concrete type.
6969
// The format has been stable across all Nuxt 3 releases.
70-
const re = /^export const (\w+): typeof import\("([^"]+)"\)\.default$/gm
70+
const re =
71+
/^export const (\w+): typeof import\("([^"]+)"\)(?:\.default|\[['"]default['"]\])\s*;?$/gm
7172
let match: RegExpExecArray | null
7273
while ((match = re.exec(dts)) !== null) {
7374
const [, name, rel] = match

0 commit comments

Comments
 (0)