Skip to content

Commit

Permalink
chore: return nodejs and webpack version (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Apr 29, 2019
1 parent 52ad4b6 commit 7856697
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 25 deletions.
6 changes: 2 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ const MIN_BABEL_VERSION = 7;

module.exports = (api) => {
api.assertVersion(MIN_BABEL_VERSION);

const env = api.env();
const isTestEnv = env === 'test';
api.cache(true);

return {
presets: [
[
'@babel/preset-env',
{
targets: {
node: isTestEnv ? '6.9.0' : '4.8.0',
node: '6.9.0',
},
},
],
Expand Down
56 changes: 37 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"clone": "^2.1.1",
"loader-utils": "^1.1.0",
"pify": "^3.0.0"
"pify": "^4.0.1"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
Expand Down Expand Up @@ -70,6 +70,12 @@
"webpack": "^4.30.0"
},
"keywords": [
"webpack"
"webpack",
"loader",
"less",
"lesscss",
"less.js",
"css",
"preprocessor"
]
}

0 comments on commit 7856697

Please sign in to comment.