mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-20 19:47:44 -04:00
@@ -40,7 +40,7 @@ const pluginCommandChannelMessageHandlers = {
|
||||
'compileComponent': handlePluginCompileComponent,
|
||||
'default': () => {}
|
||||
};
|
||||
const es2abcFilePath = path.join(__dirname, '../bin/ark/build-win/bin/es2abc');
|
||||
let es2abcFilePath = path.join(__dirname, '../bin/ark/build-win/bin/es2abc');
|
||||
|
||||
let previewCacheFilePath;
|
||||
const messages = [];
|
||||
@@ -137,6 +137,11 @@ function handlePluginCompileComponent(jsonData) {
|
||||
receivedMsg.data.log = log;
|
||||
if (fs.existsSync(es2abcFilePath + '.exe') || fs.existsSync(es2abcFilePath)){
|
||||
es2abc(receivedMsg);
|
||||
} else {
|
||||
es2abcFilePath = path.join(__dirname, '../bin/ark/build-mac/bin/es2abc');
|
||||
if (fs.existsSync(es2abcFilePath)) {
|
||||
es2abc(receivedMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user