From 9143a74b183e2669fad0027b93c03bf83b364404 Mon Sep 17 00:00:00 2001 From: QQ Date: Thu, 12 Nov 2026 12:12:33 +0800 Subject: [PATCH] Import scripts/build-client.mjs --- scripts/build-client.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-client.mjs b/scripts/build-client.mjs index 1180b38..981d319 100644 --- a/scripts/build-client.mjs +++ b/scripts/build-client.mjs @@ -16,7 +16,7 @@ const root = join(dirname(fileURLToPath(import.meta.url)), '..') const source = readFileSync(join(root, 'client.js'), 'utf8') const exported = [] -const body = source.replace(/^export (function|const) ([A-Za-z_$][\w$]*)/gm, (match, kind, name) => { +const body = source.replace(/^export (async function|function|const) ([A-Za-z_$][\w$]*)/gm, (match, kind, name) => { exported.push(name) return kind + ' ' + name })