diff --git a/src/Nest/Common/ClipperCpp.ts b/src/Nest/Common/ClipperCpp.ts index 32dc9e6ad..6984e1308 100644 --- a/src/Nest/Common/ClipperCpp.ts +++ b/src/Nest/Common/ClipperCpp.ts @@ -10,11 +10,11 @@ export function InitClipperCpp(): Promise { clipperLib.loadNativeClipperLibInstanceAsync( // let it autodetect which one to use, but also available WasmOnly and AsmJsOnly - //del_exp_start + //del_ue_exp_start clipperLib.NativeClipperLibRequestedFormat.WasmOnly - //del_exp_end - //del_exp_start - //del_exp_end clipperLib.NativeClipperLibRequestedFormat.AsmJsOnly + //del_ue_exp_end + //del_ue_exp_start + //del_ue_exp_end clipperLib.NativeClipperLibRequestedFormat.AsmJsOnly ).then(c => { diff --git a/utils/GenEntityExp.ts b/utils/GenEntityExp.ts index fed1dbc7e..a964aa138 100644 --- a/utils/GenEntityExp.ts +++ b/utils/GenEntityExp.ts @@ -6,6 +6,7 @@ import util from 'util'; const exec = util.promisify(child_process.exec); const REG_DEL = /\/\/del_exp_start(?:[\s\S])*?\/\/del_exp_end/g; +const REG_UE_DEL = /\/\/del_ue_exp_start(?:[\s\S])*?\/\/del_ue_exp_end/g; async function main() { @@ -36,6 +37,7 @@ async function main() let length = str.length; str = str.replaceAll(REG_DEL, ""); + str = str.replaceAll(REG_UE_DEL, ""); if (length !== str.length) await fs.writeFile(file, str);//替换