Skip to content

Commit a4a3f7e

Browse files
authored
Merge pull request #42 from rollup-umd/dev
fix(exampleMode): expand
2 parents 2095c14 + 44e8955 commit a4a3f7e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/createConfig.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,13 @@ export function createConfig(config = {}, options = {}) {
418418
...userRequireConfig || [],
419419
],
420420
styleguideDir: 'public',
421-
components: 'src/components/**/[A-Z]*.js',
421+
components: [
422+
'src/components/**/[A-Z]*.js',
423+
'src/components/**/[A-Z]*/index.js',
424+
],
422425
previewDelay: 500,
423426
skipComponentsWithoutExample: false,
424-
exampleMode: 'collapse',
427+
exampleMode: 'expand',
425428
usageMode: 'expand',
426429
showSidebar: true,
427430
styles: {},

0 commit comments

Comments
 (0)