diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6c125b092..5b7b96e014 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [10.x, 12.x, 14.x, 16.x] + node-version: [12.x, 14.x, 16.x] os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} needs: prepare-npm-cache diff --git a/package.json b/package.json index bc8390684d..ee1c3fa579 100644 --- a/package.json +++ b/package.json @@ -145,6 +145,6 @@ ] }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0" } } diff --git a/src/config/config-set.ts b/src/config/config-set.ts index 485736be70..869d4b035d 100644 --- a/src/config/config-set.ts +++ b/src/config/config-set.ts @@ -500,8 +500,8 @@ export class ConfigSet { if ( compilationTarget && !this.babelConfig && - ((nodeJsVer.startsWith('v10') && compilationTarget > this.compilerModule.ScriptTarget.ES2018) || - (nodeJsVer.startsWith('v12') && compilationTarget > this.compilerModule.ScriptTarget.ES2019)) + nodeJsVer.startsWith('v12') && + compilationTarget > this.compilerModule.ScriptTarget.ES2019 ) { const message = interpolate(Errors.MismatchNodeTargetMapping, { nodeJsVer: process.version,