mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:51:07 +08:00
Ensure we don't call configure for stories if we don't have any
This commit is contained in:
parent
faf1b429c7
commit
ebd1f934b8
@ -133,7 +133,7 @@ export default async (options: Options & Record<string, any>): Promise<Configura
|
||||
);
|
||||
entries.push(`${configFilename}-generated-config-entry.js`);
|
||||
});
|
||||
if (stories) {
|
||||
if (stories.length > 0) {
|
||||
const storyTemplate = await readTemplate(
|
||||
path.join(__dirname, 'virtualModuleStory.template.js')
|
||||
);
|
||||
|
@ -128,7 +128,7 @@ export default async (options: Options & Record<string, any>): Promise<Configura
|
||||
);
|
||||
entries.push(`${configFilename}-generated-config-entry.js`);
|
||||
});
|
||||
if (stories) {
|
||||
if (stories.length > 0) {
|
||||
const storyTemplate = await readTemplate(
|
||||
path.join(__dirname, 'virtualModuleStory.template.js')
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user