mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
update ets-loader Signed-off-by: houhaoyu <houhaoyu@huawei.com> Change-Id: Ib21277cd480f64d1fc80bbe5b3fb642d09c22d5a
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user