diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ba0bdc384b..c177e502e72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node: [16.x, 15.x, 14.x, 13.x, 12.x, 10.x, "10.12.0"] + node: [16.x, 15.x, 14.x, 12.x] include: - os: windows-latest node: "12.x" diff --git a/lib/shared/relative-module-resolver.js b/lib/shared/relative-module-resolver.js index cd743f3795b..c8193615335 100644 --- a/lib/shared/relative-module-resolver.js +++ b/lib/shared/relative-module-resolver.js @@ -23,8 +23,7 @@ const Module = require("module"); * `Module.createRequire` is added in v12.2.0. It supports URL as well. * We only support the case where the argument is a filepath, not a URL. */ -// eslint-disable-next-line node/no-unsupported-features/node-builtins, node/no-deprecated-api -const createRequire = Module.createRequire || Module.createRequireFromPath; +const createRequire = Module.createRequire; module.exports = { diff --git a/package.json b/package.json index 8fabe0a68f5..6fbafd5d642 100644 --- a/package.json +++ b/package.json @@ -141,6 +141,6 @@ ], "license": "MIT", "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=15.3.0" } }