@lolyjs/core 0.2.0-alpha.0 → 0.2.0-alpha.2

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/index.cjs CHANGED
@@ -5721,6 +5721,11 @@ async function loadInitialRoute(initialUrl, initialData, routes, notFoundRoute,
5721
5721
  };
5722
5722
  }
5723
5723
  function setupHotReload2() {
5724
+ const nodeEnv = typeof process !== "undefined" && process?.env?.NODE_ENV || "production";
5725
+ const isDev = nodeEnv !== "production";
5726
+ if (!isDev) {
5727
+ return;
5728
+ }
5724
5729
  try {
5725
5730
  console.log("[hot-reload] Attempting to connect to /__fw/hot...");
5726
5731
  const eventSource = new EventSource("/__fw/hot");