perf(macos): compile embedded gateway with bytecode
This commit is contained in:
1 parent
96be450cbb
commit
836f645621
3 files changed
+114
-112
No files matched your search
@@ -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