diff --git a/packages/babel-core/test/errors-stacks.js b/packages/babel-core/test/errors-stacks.js index ea68d9bec891..f62b1efada29 100644 --- a/packages/babel-core/test/errors-stacks.js +++ b/packages/babel-core/test/errors-stacks.js @@ -1,5 +1,8 @@ import * as babel from "../lib/index.js"; +// TODO: Remove this in Babel 8, once we drop Node.js 8 +import { URL } from "url"; + const replaceAll = "".replaceAll ? Function.call.bind("".replaceAll) : (str, find, replace) => str.split(find).join(replace);