We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782a93d commit 8a43d86Copy full SHA for 8a43d86
lib/routes.js
@@ -11,7 +11,7 @@ function excludeRoutes(patterns, routes) {
11
patterns.forEach(pattern => {
12
const minimatch = new Minimatch(pattern)
13
minimatch.negate = true
14
- routes = routes.filter(({ url }) => minimatch.match(url))
+ routes = (routes || []).filter(({ url }) => minimatch.match(url))
15
})
16
return routes
17
}
0 commit comments