Unverified Commit 9efe8eb0 authored by François Billioud's avatar François Billioud Committed by GitHub

Fix "rule.test.test is not a function" in @next/plugin-storybook (#21032)

Rookie mistake 😉 
parent 406c9961
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment