From ab6ee0f1a7abb33bb1441836ef15108ce14f232f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 5 Jul 2022 16:21:49 -0400 Subject: [PATCH] *createRequire needed again --- src/rpc/dns.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/dns.ts b/src/rpc/dns.ts index f2dc687..3c6b331 100644 --- a/src/rpc/dns.ts +++ b/src/rpc/dns.ts @@ -1,6 +1,8 @@ import { isIp } from "../util.js"; import { RpcMethodList } from "./index.js"; +import { createRequire } from "module"; +const require = createRequire(import.meta.url); const bns = require("bns"); const { StubResolver, RecursiveResolver } = bns;