Update excluded pages paths logic. Add HMR retries on errors.

This commit is contained in:
2026-04-12 05:47:12 +01:00
parent e0c2ab5872
commit 532d0d6b56
29 changed files with 168 additions and 65 deletions
+5
View File
@@ -6,6 +6,10 @@ export default function grabConstants() {
const ClientRootComponentWindowName = "BUNEXT_ROOT";
const ServerDefaultRequestBodyLimitBytes = MB_IN_BYTES * 10;
const MaxBundlerRebuilds = 5;
const RouteIgnorePatterns = [/\/\(/];
if (config.pages_exclude_patterns) {
RouteIgnorePatterns.push(...config.pages_exclude_patterns);
}
return {
ClientRootElementIDName,
ClientWindowPagePropsName,
@@ -14,5 +18,6 @@ export default function grabConstants() {
ClientRootComponentWindowName,
MaxBundlerRebuilds,
config,
RouteIgnorePatterns,
};
}