Skip to content

Commit d0853fb

Browse files
chore(deps): update
1 parent dab023f commit d0853fb

File tree

45 files changed

+5691
-18170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+5691
-18170
lines changed

package-lock.json

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

src/index.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,14 @@ class MiniCssExtractPlugin {
278278
assets: this.assets,
279279
assetsInfo: this.assetsInfo,
280280
cacheable: true,
281-
hash: this._computeHash(
282-
/** @type {string} */ (compilation.outputOptions.hashFunction)
283-
),
281+
hash:
282+
/** @type {string} */
283+
(
284+
this._computeHash(
285+
/** @type {string} */
286+
(compilation.outputOptions.hashFunction)
287+
)
288+
),
284289
};
285290
this.buildMeta = {};
286291
this._needBuild = false;
@@ -317,7 +322,10 @@ class MiniCssExtractPlugin {
317322
super.updateHash(hash, context);
318323

319324
hash.update(
320-
/** @type {NonNullable<Module["buildInfo"]>} */ (this.buildInfo).hash
325+
/** @type {string} */ (
326+
/** @type {NonNullable<Module["buildInfo"]>} */
327+
(this.buildInfo).hash
328+
)
321329
);
322330
}
323331

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
var __webpack_exports__ = {};
21

32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
var __webpack_exports__ = {};
21

32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
var __webpack_exports__ = {};
21

32

test/cases/build-in-css-support/expected/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ body {
22
background: red;
33
}
44

5-
head{--webpack-0:_1;}

test/cases/chunkFilename-fullhash/expected/webpack-5-importModule/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __webpack_require__.r(__webpack_exports__);
7373
/******/
7474
/******/ /* webpack/runtime/getFullHash */
7575
/******/ (() => {
76-
/******/ __webpack_require__.h = () => ("ec6b19ad9e5afccf41ed")
76+
/******/ __webpack_require__.h = () => ("0b78545e823b78145c01")
7777
/******/ })();
7878
/******/
7979
/******/ /* webpack/runtime/global */
@@ -156,7 +156,7 @@ __webpack_require__.r(__webpack_exports__);
156156
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
157157
/******/ var document = __webpack_require__.g.document;
158158
/******/ if (!scriptUrl && document) {
159-
/******/ if (document.currentScript)
159+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
160160
/******/ scriptUrl = document.currentScript.src;
161161
/******/ if (!scriptUrl) {
162162
/******/ var scripts = document.getElementsByTagName("script");
@@ -169,7 +169,7 @@ __webpack_require__.r(__webpack_exports__);
169169
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
170170
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
171171
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
172-
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
172+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
173173
/******/ __webpack_require__.p = scriptUrl;
174174
/******/ })();
175175
/******/
@@ -351,7 +351,7 @@ __webpack_require__.r(__webpack_exports__);
351351
/******/
352352
/************************************************************************/
353353
var __webpack_exports__ = {};
354-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
354+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
355355
(() => {
356356
__webpack_require__.r(__webpack_exports__);
357357
/* harmony import */ var _style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);

0 commit comments

Comments
 (0)