mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
You can reference files by full path if you want
This commit is contained in:
parent
c1239410a0
commit
71aee82a65
@ -222,7 +222,7 @@ export class StoryIndexGenerator {
|
||||
if (!cacheEntry || cacheEntry.type !== 'stories') return false;
|
||||
|
||||
return !!absoluteImports.find((storyImport) =>
|
||||
fileName.match(new RegExp(`^${storyImport}\\.[^.]+$`))
|
||||
fileName.match(new RegExp(`^${storyImport}(\\.[^.]+)?$`))
|
||||
);
|
||||
})
|
||||
.map(([_, cacheEntry]) => cacheEntry as StoriesCacheEntry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user