Import scripts/build-client.mjs

This commit is contained in:
QQ 2026-11-12 12:12:33 +08:00
parent 6ced231bf4
commit 9143a74b18
1 changed files with 1 additions and 1 deletions

View File

@ -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
})