diff --git a/src/toUSVString-default.ts b/src/toUSVString-default.ts index b093ca2..6e0742c 100644 --- a/src/toUSVString-default.ts +++ b/src/toUSVString-default.ts @@ -1,11 +1,12 @@ +import StringPrototypeToWellFormed from "./lib/StringPrototypeToWellFormed.js"; + let toUSVString: (s: string) => string; // @ts-ignore if (String.prototype.toWellFormed) { // @ts-ignore toUSVString = Object.call.bind(String.prototype.toWellFormed); } else { - toUSVString = - require("./lib/StringPrototypeToWellFormed.js") as typeof import("./lib/StringPrototypeToWellFormed.js"); + toUSVString = StringPrototypeToWellFormed; } export = toUSVString;