diff --git a/packages/storybook/src/preset.ts b/packages/storybook/src/preset.ts index 926bdc0e175f..3676c5de0b54 100644 --- a/packages/storybook/src/preset.ts +++ b/packages/storybook/src/preset.ts @@ -31,11 +31,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config) => { const { plugins = [] } = config // Needs to run before the react plugin, so add to the front - plugins.unshift( - reactDocgen({ - include: /\.(tsx?|jsx?)$/, - }), - ) + plugins.unshift(reactDocgen()) return mergeConfig(config, { // This is necessary as it otherwise just points to the `web` directory,