Skip to content

Commit

Permalink
Merge pull request #25030 from storybookjs/valentin/fix-react-docgen-…
Browse files Browse the repository at this point in the history
…loader-for-windows

Webpack: Fix exclude regex in react-docgen-loader
  • Loading branch information
valentinpalkovic authored Nov 29, 2023
2 parents 9fecce2 + 21b933d commit 0fa30d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('framework-preset-react-docgen', () => {
module: {
rules: [
{
exclude: /node_modules\/.*/,
exclude: /node_modules/,
loader: '@storybook/preset-react-webpack/dist/loaders/react-docgen-loader',
options: { babelOptions: { plugins: [], presets: [] } },
test: /\.(cjs|mjs|tsx?|jsx?)$/,
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('framework-preset-react-docgen', () => {
module: {
rules: [
{
exclude: /node_modules\/.*/,
exclude: /node_modules/,
loader: '@storybook/preset-react-webpack/dist/loaders/react-docgen-loader',
options: { babelOptions: { plugins: [], presets: [] } },
test: /\.(cjs|mjs|jsx?)$/,
Expand Down
4 changes: 2 additions & 2 deletions code/presets/react-webpack/src/framework-preset-react-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (
options: {
babelOptions,
},
exclude: /node_modules\/.*/,
exclude: /node_modules/,
},
],
},
Expand All @@ -61,7 +61,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (
options: {
babelOptions,
},
exclude: /node_modules\/.*/,
exclude: /node_modules/,
},
],
},
Expand Down

0 comments on commit 0fa30d8

Please sign in to comment.