From 5ca650c9cbebc5b806f4a7f05702bad573d413b2 Mon Sep 17 00:00:00 2001 From: pengfeizhou Date: Sun, 21 Feb 2021 01:57:29 +0800 Subject: [PATCH] Remove debugging flag for ws server --- doric-cli/src/dev.ts | 6 +----- doric-cli/src/server.ts | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) 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({