Skip to content

Commit

Permalink
Add 'story' to exclude regex of webpack-react-docgen-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 30, 2023
1 parent 2c5d2b0 commit b9e9a41
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: /(\.stories\.(js|jsx|ts|tsx))|(node_modules)/,
exclude: /(\.(stories|story)\.(js|jsx|ts|tsx))|(node_modules)/,
loader: '@storybook/preset-react-webpack/dist/loaders/react-docgen-loader',
options: { babelOptions: { plugins: [], presets: [] }, debug: false },
test: /\.(cjs|mjs|tsx?|jsx?)$/,
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('framework-preset-react-docgen', () => {
module: {
rules: [
{
exclude: /(\.stories\.(js|jsx|ts|tsx))|(node_modules)/,
exclude: /(\.(stories|story)\.(js|jsx|ts|tsx))|(node_modules)/,
loader: '@storybook/preset-react-webpack/dist/loaders/react-docgen-loader',
options: { babelOptions: { plugins: [], presets: [] }, debug: false },
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 @@ -37,7 +37,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (
babelOptions,
debug,
},
exclude: /(\.stories\.(js|jsx|ts|tsx))|(node_modules)/,
exclude: /(\.(stories|story)\.(js|jsx|ts|tsx))|(node_modules)/,
},
],
},
Expand All @@ -64,7 +64,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (
babelOptions,
debug,
},
exclude: /(\.stories\.(js|jsx|ts|tsx))|(node_modules)/,
exclude: /(\.(stories|story)\.(js|jsx|ts|tsx))|(node_modules)/,
},
],
},
Expand Down

0 comments on commit b9e9a41

Please sign in to comment.