*createRequire needed again

This commit is contained in:
Derrick Hammer 2022-07-05 16:21:49 -04:00
parent 56ee75ffca
commit ab6ee0f1a7
1 changed files with 2 additions and 0 deletions

View File

@ -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;