@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/README.md +12 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/react/sockets.cjs +3 -2
- package/dist/react/sockets.cjs.map +1 -1
- package/dist/react/sockets.js +3 -2
- package/dist/react/sockets.js.map +1 -1
- package/dist/runtime.cjs +5 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +5 -0
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
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");
|