Skip to content

Commit

Permalink
make node 6 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 31, 2023
1 parent aac94ae commit deab89e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-standalone/test/transform-script-tags.test.js
@@ -1,5 +1,7 @@
import fs from "fs";
import { createRequire } from "module";
import semver from "semver";
const require = createRequire(import.meta.url);

const nodeGte16 = semver.gte(process.version, "16.0.0");

Expand All @@ -11,7 +13,7 @@ const nodeGte16 = semver.gte(process.version, "16.0.0");
new URL("../babel.js", import.meta.url),
"utf8",
);
JSDOM = (await import("jsdom")).JSDOM;
JSDOM = require("jsdom").JSDOM;
});
it("should transform script element with type 'text/babel'", () => {
const dom = new JSDOM(
Expand Down

0 comments on commit deab89e

Please sign in to comment.