From 5a044ce5b4ad842048da1930f304234a36b8adc7 Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Tue, 21 Dec 2021 19:36:13 +0800 Subject: [PATCH] houhaoyu@huawei.com update ets-loader Signed-off-by: houhaoyu Change-Id: Ib21277cd480f64d1fc80bbe5b3fb642d09c22d5a --- compiler/server/build_pipe_server.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/compiler/server/build_pipe_server.js b/compiler/server/build_pipe_server.js index 9742d2c..a087c32 100644 --- a/compiler/server/build_pipe_server.js +++ b/compiler/server/build_pipe_server.js @@ -24,7 +24,7 @@ let pluginSocket = ''; const pluginCommandChannelMessageHandlers = { 'compileComponent': handlePluginCompileComponent, - 'default': handlePluginDefault + 'default': () => {} }; function init(port) { @@ -48,10 +48,6 @@ function handlePluginCommand(jsonData) { : pluginCommandChannelMessageHandlers['default'](jsonData); } -function handlePluginDefault() { - return; -} - function handlePluginCompileComponent(jsonData) { const receivedMsg = jsonData; const sourceNode = ts.createSourceFile @@ -68,9 +64,7 @@ function handlePluginCompileComponent(jsonData) { } function responseToPlugin(jsonData) { - pluginSocket.send(JSON.stringify(jsonData), (err) => { - return; - }); + pluginSocket.send(JSON.stringify(jsonData), (err) => {}); } module.exports = {