*Move from require to import
This commit is contained in:
parent
d7ec437ce3
commit
1c18b041f3
|
@ -1,10 +1,6 @@
|
|||
// tslint:disable:no-var-requires
|
||||
import { createRequire } from "module";
|
||||
import RpcQuery from "./rpcQuery.js";
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
const DHT = require("@hyperswarm/dht");
|
||||
// @ts-ignore
|
||||
import DHT from "@hyperswarm/dht";
|
||||
|
||||
export default class RpcNetwork {
|
||||
private _dht: typeof DHT;
|
||||
|
|
Loading…
Reference in New Issue