mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 21:01:43 +03:00
perf(macos): compile embedded gateway with bytecode
This commit is contained in:
@@ -79,10 +79,7 @@ function stripFrontMatter(content: string): string {
|
||||
return trimmed;
|
||||
}
|
||||
|
||||
async function loadTemplate(
|
||||
name: string,
|
||||
fallback: string,
|
||||
): Promise<string> {
|
||||
async function loadTemplate(name: string, fallback: string): Promise<string> {
|
||||
const templatePath = path.join(TEMPLATE_DIR, name);
|
||||
try {
|
||||
const content = await fs.readFile(templatePath, "utf-8");
|
||||
|
||||
Reference in New Issue
Block a user