naming #2
@ -68,7 +68,6 @@ const ProxyState =(argNew:StateType)=>
|
||||
// this is a switch/ui change, not a HMR reload change
|
||||
const oldState = MapIndex(HMR.statesOld, HMR.statesNew.size-1);
|
||||
oldState && HMR.statesOld.set(oldState[0], {...oldState[1], state:argNew});
|
||||
console.log("check: ui-invoked")
|
||||
}
|
||||
|
||||
HMR.statesNew.delete(id);
|
||||
@ -112,7 +111,6 @@ const ProxyReducer =(inReducer:(inState:Storelike, inAction:string)=>Storelike,
|
||||
const capture = inReducer(inInterceptState, inInterceptAction);
|
||||
const stateUser = {state:capture, set:()=>{}, reload:HMR.reloads};
|
||||
HMR.statesNew.set(id, stateUser);
|
||||
console.log("interepted reducer", stateUser);
|
||||
return capture;
|
||||
};
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {Configure, Transpile, Extension} from "./run-serve.tsx";
|
||||
|
||||
const SocketsLive:Set<WebSocket> = new Set();
|
||||
const SocketsSend =(inData:string)=>{ console.log(inData); for (const socket of SocketsLive){ socket.send(inData); } }
|
||||
const SocketsSend =(inData:string)=>{ for (const socket of SocketsLive){ socket.send(inData); } }
|
||||
|
||||
Configure({
|
||||
SWCOp:
|
||||
@ -97,4 +97,4 @@ const Watcher =async()=>
|
||||
}
|
||||
}
|
||||
|
||||
Watcher().then(()=>console.log("done watching"));
|
||||
Watcher();
|
@ -52,7 +52,7 @@ let Configuration:Configuration =
|
||||
Proxy: new URL(`file://${Deno.cwd().replaceAll("\\", "/")}`).toString(),
|
||||
Allow: "*",
|
||||
Reset: "/clear-cache",
|
||||
Serve(inReq, inURL, inExt, inMap, inProxy){},
|
||||
Serve(inReq, inURL, inExt, inMap, inConfig){},
|
||||
Remap: (inImports, inConfig)=>
|
||||
{
|
||||
const reactURL = inImports["react"];
|
||||
@ -65,9 +65,6 @@ let Configuration:Configuration =
|
||||
},
|
||||
Shell(inReq, inURL, inExt, inMap, inConfig)
|
||||
{
|
||||
console.log("Start app:", Deno.mainModule, "start dir", inConfig.Proxy);
|
||||
console.log("Split:", Deno.mainModule.split(inConfig.Proxy) );
|
||||
|
||||
const parts = Deno.mainModule.split(inConfig.Proxy);
|
||||
|
||||
return new Response(
|
||||
@ -204,7 +201,6 @@ HTTP.serve(async(req: Request)=>
|
||||
{
|
||||
path = clipRoot + clipPath;
|
||||
}
|
||||
console.log("transpiling", path);
|
||||
code = await Transpile.Fetch(path, url.pathname, true);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user