Fix "rule.test.test is not a function" in @next/plugin-storybook (#21032)
Rookie mistake 😉
This commit is contained in:
parent
406c996189
commit
9efe8eb019
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue