Skip to content

Commit f6101a4

Browse files
docs: fix webpack version (#791)
1 parent 21984a0 commit f6101a4

File tree

9 files changed

+727
-993
lines changed

9 files changed

+727
-993
lines changed

.husky/.gitignore

-1
This file was deleted.

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx commitlint --edit $1
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
npx --no-install lint-staged

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS and SourceMaps.
2020

21-
It builds on top of a new webpack v4 feature (module types) and requires webpack 4 to work.
21+
It builds on top of a new webpack v5 feature and requires webpack 5 to work.
2222

2323
Compared to the extract-text-webpack-plugin:
2424

package-lock.json

+715-983
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"eslint-config-prettier": "^8.1.0",
6464
"eslint-plugin-import": "^2.23.4",
6565
"file-loader": "^6.2.0",
66-
"husky": "^6.0.0",
66+
"husky": "^7.0.0",
6767
"jest": "^27.0.6",
6868
"jsdom": "^16.5.1",
6969
"lint-staged": "^11.0.0",

test/cases/dependOn-multiple-files-per-entry/expected/common.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ __webpack_require__.r(__webpack_exports__);
7373
/******/ }
7474
/******/ if(fulfilled) {
7575
/******/ deferred.splice(i--, 1)
76-
/******/ result = fn();
76+
/******/ var r = fn();
77+
/******/ if (r !== undefined) result = r;
7778
/******/ }
7879
/******/ }
7980
/******/ return result;
@@ -166,6 +167,6 @@ __webpack_require__.r(__webpack_exports__);
166167

167168
})();
168169

169-
__webpack_require__.O();
170+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
170171
/******/ })()
171172
;

test/cases/dependOn/expected/common.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ __webpack_require__.r(__webpack_exports__);
6464
/******/ }
6565
/******/ if(fulfilled) {
6666
/******/ deferred.splice(i--, 1)
67-
/******/ result = fn();
67+
/******/ var r = fn();
68+
/******/ if (r !== undefined) result = r;
6869
/******/ }
6970
/******/ }
7071
/******/ return result;
@@ -148,6 +149,6 @@ __webpack_require__.r(__webpack_exports__);
148149

149150
})();
150151

151-
__webpack_require__.O();
152+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
152153
/******/ })()
153154
;

test/cases/runtime/expected/runtime~main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
/******/ }
5555
/******/ if(fulfilled) {
5656
/******/ deferred.splice(i--, 1)
57-
/******/ result = fn();
57+
/******/ var r = fn();
58+
/******/ if (r !== undefined) result = r;
5859
/******/ }
5960
/******/ }
6061
/******/ return result;

0 commit comments

Comments
 (0)