File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ export const viteFinal: NonNullable<StorybookConfig['viteFinal']> = async (confi
14
14
15
15
// Get framework options to check if docgen is disabled
16
16
const framework = await options . presets . apply ( 'framework' ) ;
17
- const frameworkOptions : FrameworkOptions =
17
+ const frameworkOptions : FrameworkOptions =
18
18
typeof framework === 'string' ? { } : ( framework . options ?? { } ) ;
19
-
19
+
20
20
// Check if docgen is disabled in framework options (default is true/enabled)
21
21
if ( frameworkOptions . docgen !== false ) {
22
22
plugins . push ( await svelteDocgen ( ) ) ;
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
11
11
export type FrameworkOptions = {
12
12
builder ?: BuilderOptions ;
13
13
/**
14
- * Enable or disable automatic documentation generation for component properties, events, and slots.
15
- * When disabled, Storybook will skip the docgen processing step during build, which can improve build performance.
14
+ * Enable or disable automatic documentation generation for component properties, events, and
15
+ * slots. When disabled, Storybook will skip the docgen processing step during build, which can
16
+ * improve build performance.
16
17
*
17
18
* @default true
18
19
*/
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
14
14
export type FrameworkOptions = {
15
15
builder ?: BuilderOptions ;
16
16
/**
17
- * Enable or disable automatic documentation generation for component properties, events, and slots.
18
- * When disabled, Storybook will skip the docgen processing step during build, which can improve build performance.
17
+ * Enable or disable automatic documentation generation for component properties, events, and
18
+ * slots. When disabled, Storybook will skip the docgen processing step during build, which can
19
+ * improve build performance.
19
20
*
20
21
* @default true
21
22
*/
Original file line number Diff line number Diff line change @@ -51,6 +51,6 @@ const resolveDocgenOptions = (
51
51
if ( typeof docgen === 'string' ) {
52
52
return { plugin : docgen } ;
53
53
}
54
-
54
+
55
55
return docgen ;
56
56
} ;
You can’t perform that action at this time.
0 commit comments