Skip to content

Commit 709d49f

Browse files
authored
always import to satisfy vitest
1 parent 1405ee6 commit 709d49f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/toUSVString-default.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import StringPrototypeToWellFormed from "./lib/StringPrototypeToWellFormed.js";
2+
13
let toUSVString: (s: string) => string;
24
// @ts-ignore
35
if (String.prototype.toWellFormed) {
46
// @ts-ignore
57
toUSVString = Object.call.bind(String.prototype.toWellFormed);
68
} else {
7-
toUSVString =
8-
require("./lib/StringPrototypeToWellFormed.js") as typeof import("./lib/StringPrototypeToWellFormed.js");
9+
toUSVString = StringPrototypeToWellFormed;
910
}
1011

1112
export = toUSVString;

0 commit comments

Comments
 (0)