fermmap-shared 0.2.2 → 0.2.3

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/main.cjs CHANGED
@@ -12,8 +12,8 @@ var $fs04y$reactspectrums2iconsClose = require("@react-spectrum/s2/icons/Close")
12
12
  var $fs04y$nextnavigation = require("next/navigation");
13
13
  var $fs04y$reactspectrums2iconsGlobeGrid = require("@react-spectrum/s2/icons/GlobeGrid");
14
14
  var $fs04y$reactspectrums2iconsViewList = require("@react-spectrum/s2/icons/ViewList");
15
- var $fs04y$reactdom = require("react-dom");
16
15
  var $fs04y$axecorereact = require("@axe-core/react");
16
+ var $fs04y$reactdom = require("react-dom");
17
17
 
18
18
 
19
19
  function $parcel$exportWildcard(dest, source) {
@@ -2969,11 +2969,20 @@ function $8f5795e91d23efab$export$973ca22476b0e05f() {
2969
2969
 
2970
2970
 
2971
2971
 
2972
+
2972
2973
  function $ac6c22366fad60ff$export$dad69b6e16969c68() {
2973
2974
  (0, $fs04y$react.useEffect)(()=>{
2974
- if (process.env.NODE_ENV !== 'production') // Only run axe in development mode
2975
- $ac6c22366fad60ff$importAsync$4cbff5ac0c6b635e.then((axe)=>{
2976
- axe.default((0, ($parcel$interopDefault($fs04y$react))), (0, ($parcel$interopDefault($fs04y$reactdom))), 1000, {});
2975
+ // Only run in local development (not in production or Vercel deployments)
2976
+ const isLocalDev = typeof window !== 'undefined' && window.location.hostname === 'localhost';
2977
+ if (isLocalDev && process.env.NODE_ENV !== 'production') // Dynamic imports to avoid SSR issues
2978
+ Promise.all([
2979
+ $fs04y$react,
2980
+ $fs04y$reactdom,
2981
+ $fs04y$axecorereact
2982
+ ]).then(([React, ReactDOM, axe])=>{
2983
+ axe.default(React.default || React, ReactDOM.default || ReactDOM, 1000, {});
2984
+ }).catch((err)=>{
2985
+ console.warn('Failed to load axe-core:', err);
2977
2986
  });
2978
2987
  }, []);
2979
2988
  return null;