@reckona/mreact-router 0.0.126 → 0.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -706,7 +706,9 @@ function isStyleModuleSpecifier(source) {
706
706
  }
707
707
  const styleModuleExtensions = new Set([".css", ".less", ".sass", ".scss", ".styl", ".stylus"]);
708
708
  function isClientBoundaryFallbackEligibleSource(source) {
709
- return !/\bon[A-Z][A-Za-z0-9_$]*\s*=/u.test(source) && !/\bglobalThis\b/u.test(source);
709
+ const sourceWithoutGuardedUndefinedCallbacks = source.replaceAll(/\bon[A-Z][A-Za-z0-9_$]*\s*=\s*\{\s*props\.[A-Za-z_$][\w$]*\s*===\s*undefined\s*\?\s*undefined\s*:/gu, "");
710
+ return (!/\bon[A-Z][A-Za-z0-9_$]*\s*=/u.test(sourceWithoutGuardedUndefinedCallbacks) &&
711
+ !/\bglobalThis\b/u.test(source));
710
712
  }
711
713
  function renderedImportedExportNames(reference, componentRoots) {
712
714
  if (reference.sideEffect) {