@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.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");
|