Update excluded pages paths logic. Add HMR retries on errors.
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
export default function ({ path }) {
|
||||
for (let i = 0; i < global.CONSTANTS.RouteIgnorePatterns.length; i++) {
|
||||
const regex = global.CONSTANTS.RouteIgnorePatterns[i];
|
||||
if (path.match(regex))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user