Skip to content

Commit

Permalink
Fix "rule.test.test is not a function" in @next/plugin-storybook (#21032
Browse files Browse the repository at this point in the history
)

Rookie mistake 😉
  • Loading branch information
Sharcoux committed Jan 14, 2021
1 parent 406c996 commit 9efe8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function webpackFinal(config) {
config.module.rules = [
...config.module.rules.filter((rule) => {
// the rules we're filtering use RegExp for the test
if (!rule.test instanceof RegExp) return true
if (!(rule.test instanceof RegExp)) return true
// use Next.js' built-in CSS
if (rule.test.test('hello.css')) {
return false
Expand Down

0 comments on commit 9efe8eb

Please sign in to comment.