diff --git a/build-config.ts b/build-config.ts index f851851..783237a 100644 --- a/build-config.ts +++ b/build-config.ts @@ -4,6 +4,7 @@ import { BunBuildUserscriptConfig } from 'bun-build-userscript'; const define: Record = {}; const raw = (await readFile('index.ts', 'utf8')).match(/declare const.+?;/s)[0]; + const pattern = /(\S+): (\S+)[,;]/g; let tmp;