Skip to content

Commit

Permalink
Remove mjs from docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
arimendelow committed Aug 22, 2024
1 parent 008ec77 commit d527cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/storybook/src/plugins/react-docgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Options = {
}

export function reactDocgen({
include = /\.(mjs|tsx?|jsx?)$/,
include = /\.(tsx?|jsx?)$/,
exclude = [/node_modules\/.*/],
}: Options = {}): PluginOption {
const cwd = process.cwd()
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config) => {
// Needs to run before the react plugin, so add to the front
plugins.unshift(
reactDocgen({
include: /\.(mjs|tsx?|jsx?)$/,
include: /\.(tsx?|jsx?)$/,
}),
)

Expand Down

0 comments on commit d527cda

Please sign in to comment.