@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.js CHANGED
@@ -5679,6 +5679,11 @@ async function loadInitialRoute(initialUrl, initialData, routes, notFoundRoute,
5679
5679
  };
5680
5680
  }
5681
5681
  function setupHotReload2() {
5682
+ const nodeEnv = typeof process !== "undefined" && process?.env?.NODE_ENV || "production";
5683
+ const isDev = nodeEnv !== "production";
5684
+ if (!isDev) {
5685
+ return;
5686
+ }
5682
5687
  try {
5683
5688
  console.log("[hot-reload] Attempting to connect to /__fw/hot...");
5684
5689
  const eventSource = new EventSource("/__fw/hot");