Skip to content

Commit

Permalink
fix: Storybook builds by not running full loader on storybook virtual…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
ntucker committed Dec 13, 2023
1 parent 93df1c2 commit 2b46c04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/webpack-config-anansi/src/storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export default function makeStorybookConfigGenerator(baseConfig) {
...envConfig.module,
rules: [
// js rules (worker and normal)
envConfig.module.rules[0],
{
test: envConfig.module.rules[0].test,
exclude: /storybook-stories.js/,
rules: [envConfig.module.rules[0]],
},
// storybook node_module compiles
libraryRule,
// the rest of our rules
Expand Down

0 comments on commit 2b46c04

Please sign in to comment.