Skip to content

Commit

Permalink
Merge pull request #1011 from cssnano/update-node-target
Browse files Browse the repository at this point in the history
chore: transpile only for supported Node.js versions
  • Loading branch information
ludofischer committed Mar 9, 2021
2 parents 80dd2e3 + b521501 commit 1ae7022
Show file tree
Hide file tree
Showing 3 changed files with 716 additions and 441 deletions.
13 changes: 2 additions & 11 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,8 @@ module.exports = function (api) {
}

return {
presets: [
[
// ES features necessary for user's Node version
'@babel/preset-env',
{
targets: {
node: '6.9.0',
},
},
],
],
targets: { node: '10.13.0' },
presets: ['@babel/preset-env'],
plugins,
};
};
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"node": "^10 || ^12 || >=14"
},
"devDependencies": {
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/node": "^7.8.3",
"@babel/preset-env": "^7.9.6",
"@babel/cli": "^7.13.0",
"@babel/core": "^7.13.8",
"@babel/node": "^7.13.0",
"@babel/preset-env": "^7.13.9",
"all-contributors-cli": "^5.11.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^26.6.3",
Expand Down

0 comments on commit 1ae7022

Please sign in to comment.