diff --git a/ace-loader/src/genAbc-plugin.js b/ace-loader/src/genAbc-plugin.js index c74e5a8d12eeb435065d2961e7918e64f3412762..ee4dac5fd30c407b6af7b5b0b93265ae8a93d724 100644 --- a/ace-loader/src/genAbc-plugin.js +++ b/ace-loader/src/genAbc-plugin.js @@ -62,6 +62,7 @@ const TS2ABC = 'ts2abc'; const ES2ABC = 'es2abc'; const WINDOWS = 'Windows_NT'; const LINUX = 'Linux'; +const OPENHARMONY = 'openharmony'; const MAC = 'Darwin'; const FILESINFO_TXT = 'filesInfo.txt'; const manageBunldeWorkersScript = 'manage-bundle-workers.js'; @@ -528,10 +529,14 @@ export function isMacOs() { return os.type() === MAC; } +export function isOpenHarmony() { + return os.platform() === OPENHARMONY; +} + export function maxFilePathLength() { if (isWindows()) { return 32766; - } else if (isLinux()) { + } else if (isLinux() || isOpenHarmony()) { return 4095; } else if (isMacOs()) { return 1016;