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
(cherry picked from commit 0fa30d8)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed Nov 29, 2023
1 parent a9729c8 commit fa34a6b
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 @@ -38,7 +38,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (
options: {
babelOptions,
},
exclude: /node_modules\/.*/,
exclude: /node_modules/,
},
],
},
Expand All @@ -64,7 +64,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (
options: {
babelOptions,
},
exclude: /node_modules\/.*/,
exclude: /node_modules/,
},
],
},
Expand Down

0 comments on commit fa34a6b

Please sign in to comment.