Chore/CI: use Bun's worker

This commit is contained in:
SukkaW
2023-11-18 01:34:35 +08:00
parent a5e36a1cd8
commit 489f87a622
2 changed files with 11 additions and 10 deletions

View File

@@ -1,8 +1,5 @@
declare const self: Worker;
import { buildInternalReverseChnCIDR } from '../build-internal-reverse-chn-cidr';
self.onmessage = async () => {
(async () => {
const { buildInternalReverseChnCIDR } = await import('../build-internal-reverse-chn-cidr');
const stat = await buildInternalReverseChnCIDR();
postMessage(stat);
};
})();