Skip to content

Commit

Permalink
chore: correct webpack peer constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Nov 28, 2020
1 parent e0a46da commit 84fddfd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"LICENSE"
],
"peerDependencies": {
"webpack": ">=4.0.0"
"webpack": ">=4.20.2"
},
"dependencies": {
"chalk": "^4.1.0",
Expand Down Expand Up @@ -80,8 +80,7 @@
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
"eslint --fix"
]
},
"nyc": {
Expand Down
3 changes: 1 addition & 2 deletions test/snapshots/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Generated by [AVA](https://avajs.dev).
comparedForEmit: true,
emitted: false,
info: {
javascriptModule: false,
size: 2196,
},
isOverSizeLimit: false,
Expand Down Expand Up @@ -97,7 +98,6 @@ Generated by [AVA](https://avajs.dev).
},
errors: [],
errorsCount: 0,
hash: '30f993fdf21d4d672d17',
namedChunkGroups: {
main: {
assets: [
Expand All @@ -121,7 +121,6 @@ Generated by [AVA](https://avajs.dev).
},
},
publicPath: 'auto',
version: '5.1.3',
warnings: [],
warningsCount: 0,
}
Expand Down
Binary file modified test/snapshots/test.js.snap
Binary file not shown.
8 changes: 5 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ test('json - webpack 5', async (t) => {
return;
}

// Remove times since those are transient
delete stats.time;
// remove dynamic key/value pairs
delete stats.builtAt;
delete stats.outputPath;
delete stats.chunks;
delete stats.hash;
delete stats.modules;
delete stats.outputPath;
delete stats.time;
delete stats.version;

t.snapshot(stats);
});
Expand Down

0 comments on commit 84fddfd

Please sign in to comment.