diff --git a/doric-cli/src/dev.ts b/doric-cli/src/dev.ts index c1ec27dd..3d26b586 100644 --- a/doric-cli/src/dev.ts +++ b/doric-cli/src/dev.ts @@ -76,11 +76,7 @@ export default async function dev() { console.log("*******", jsFile.replace(process.cwd(), "") .replace("/bundle/src/", "") .replace(".js", "") - .green, "*******") - if ((server as any).debugging) { - console.log("debugging, hot reload by pass"); - return; - } + .green, "*******"); try { const sourceMap = `${jsFile}.map` if (fs.existsSync(sourceMap)) { diff --git a/doric-cli/src/server.ts b/doric-cli/src/server.ts index 34ab5604..099dbe3f 100644 --- a/doric-cli/src/server.ts +++ b/doric-cli/src/server.ts @@ -69,7 +69,6 @@ export async function createServer() { }); ws.on('close', function (code: number) { console.log('close: code = ' + code, thisDeviceId); - (ws as any).debugging = false; if (ws === debug) { console.log("quit debugging"); client?.send(JSON.stringify({