Commit 282522e
committed
chore: drop require in benchmark
In latest node, tsx/node seem to load this benchmark file as ESM which
results in an error when trying to use `require.resolve`.
We can achieve the same with regular path resolution, using
`import.meta` to get hold of the current path.1 parent 73479f9 commit 282522e
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
| 10 | + | |
8 | 11 | | |
9 | | - | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments