Skip to content

Commit 7ebc905

Browse files
committed
small cleanup to retry CI
1 parent 613db9a commit 7ebc905

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

packages/babel-standalone/test/built-into-es5.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { createRequire } from "module";
2-
const require = createRequire(import.meta.url);
31
import fs from "fs";
42
import { parse as acornParse } from "acorn";
53
import { itGte } from "$repo-utils";
@@ -8,9 +6,12 @@ describe("@babel/standalone", () => {
86
let babelStandaloneSource;
97

108
beforeAll(() => {
11-
babelStandaloneSource = fs.readFileSync(require.resolve("../babel.js"), {
12-
encoding: "utf8",
13-
});
9+
babelStandaloneSource = fs.readFileSync(
10+
new URL("../babel.js", import.meta.url),
11+
{
12+
encoding: "utf8",
13+
},
14+
);
1415
});
1516

1617
it("should be built into ES5", () => {

0 commit comments

Comments
 (0)