Skip to content

Commit

Permalink
Fix "rule.test.test is not a function" in @next/plugin-storybook
Browse files Browse the repository at this point in the history
Rookie mistake
  • Loading branch information
Sharcoux authored Jan 12, 2021
1 parent f9b7a39 commit 6c92153
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 6c92153

Please sign in to comment.