Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

Commit ad3ee93

Browse files
chore(deps): update (#308)
1 parent 2abd129 commit ad3ee93

File tree

7 files changed

+19559
-3202
lines changed

7 files changed

+19559
-3202
lines changed

package-lock.json

Lines changed: 19542 additions & 3175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"pretest": "npm run lint",
3232
"test": "npm run test:coverage",
3333
"prepare": "npm run build",
34-
"release": "standard-version",
35-
"defaults": "webpack-defaults"
34+
"release": "standard-version"
3635
},
3736
"files": [
3837
"dist"
@@ -45,33 +44,32 @@
4544
"schema-utils": "^3.0.0"
4645
},
4746
"devDependencies": {
48-
"@babel/cli": "^7.12.8",
49-
"@babel/core": "^7.12.9",
50-
"@babel/preset-env": "^7.12.7",
47+
"@babel/cli": "^7.12.13",
48+
"@babel/core": "^7.12.13",
49+
"@babel/preset-env": "^7.12.13",
5150
"@commitlint/cli": "^11.0.0",
5251
"@commitlint/config-conventional": "^11.0.0",
53-
"@webpack-contrib/defaults": "^6.3.0",
5452
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5553
"babel-jest": "^26.6.3",
5654
"cross-env": "^7.0.3",
5755
"del": "^6.0.0",
5856
"del-cli": "^3.0.1",
59-
"eslint": "^7.14.0",
60-
"eslint-config-prettier": "^6.15.0",
57+
"eslint": "^7.19.0",
58+
"eslint-config-prettier": "^7.2.0",
6159
"eslint-plugin-import": "^2.22.1",
6260
"express": "^4.17.1",
6361
"get-port": "^5.1.1",
6462
"html-webpack-plugin": "^4.5.0",
6563
"husky": "^4.3.0",
6664
"jest": "^26.6.3",
67-
"lint-staged": "^10.5.2",
65+
"lint-staged": "^10.5.4",
6866
"memfs": "^3.2.0",
6967
"nanoid": "^3.1.20",
7068
"npm-run-all": "^4.1.5",
7169
"prettier": "^2.2.1",
72-
"puppeteer": "^5.5.0",
73-
"standard-version": "^9.0.0",
74-
"webpack": "^5.9.0"
70+
"puppeteer": "^7.0.4",
71+
"standard-version": "^9.1.0",
72+
"webpack": "^5.21.2"
7573
},
7674
"keywords": [
7775
"webpack"

test/helpers/compile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export default (compiler) => {
2-
return new Promise((resolve, reject) => {
1+
export default (compiler) =>
2+
new Promise((resolve, reject) => {
33
compiler.run((error, stats) => {
44
if (error) {
55
return reject(error);
@@ -8,4 +8,3 @@ export default (compiler) => {
88
return resolve(stats);
99
});
1010
});
11-
};

test/helpers/getErrors.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
import normalizeErrors from "./normalizeErrors";
22

3-
export default (stats) => {
4-
return normalizeErrors(stats.compilation.errors);
5-
};
3+
export default (stats) => normalizeErrors(stats.compilation.errors);

test/helpers/getWarnings.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
import normalizeErrors from "./normalizeErrors";
22

3-
export default (stats) => {
4-
return normalizeErrors(stats.compilation.warnings);
5-
};
3+
export default (stats) => normalizeErrors(stats.compilation.warnings);

test/helpers/normalizeErrors.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function removeCWD(str) {
1212
return str.replace(new RegExp(cwd, "g"), "");
1313
}
1414

15-
export default (errors) => {
16-
return errors.map((error) =>
15+
export default (errors) =>
16+
errors.map((error) =>
1717
removeCWD(error.toString().split("\n").slice(0, 2).join("\n"))
1818
);
19-
};

test/publicPath.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ describe('"publicPath" option', () => {
4242

4343
it('should work and respect the "publicPath" option ("function")', async () => {
4444
const compiler = getCompiler("./chunks/entry.js", {
45-
publicPath: () => {
46-
return `/public-path-static/`;
47-
},
45+
publicPath: () => `/public-path-static/`,
4846
});
4947
const stats = await compile(compiler);
5048
const result = await getResultFromBrowser(stats);

0 commit comments

Comments
 (0)