Skip to content

Commit ce1795d

Browse files
committed
chore: use import.meta.resolve
1 parent 282522e commit ce1795d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmark/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import fs from "fs";
55
import { parseForESLint } from "../src/index.js";
66
import { parseForESLint as parseOld } from "../node_modules/svelte-eslint-parser/lib/index.js";
77
import { fileURLToPath } from "node:url";
8-
import path from "node:path";
98

10-
const dirname = fileURLToPath(new URL(".", import.meta.url));
119
const contents = `${fs.readFileSync(
12-
path.resolve(dirname, "../explorer-v2/src/lib/RulesSettings.svelte"),
10+
fileURLToPath(
11+
import.meta.resolve("../explorer-v2/src/lib/RulesSettings.svelte"),
12+
),
1313
"utf-8",
1414
)}// comments`;
1515

0 commit comments

Comments
 (0)