diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4d298b5c..03278b1e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -36,7 +36,7 @@ jobs:
cache: "npm"
- name: Install dependencies
- run: npm ci
+ run: npm ci --legacy-peer-deps
- name: Lint
run: npm run lint
@@ -54,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
concurrency:
- group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ github.ref }}
+ group: ${{ github.workflow }}-${{ matrix.os }}-v${{ matrix.node }}-${{ matrix.webpack }}-${{ github.ref }}
cancel-in-progress: true
strategy:
@@ -77,11 +77,11 @@ jobs:
cache: "npm"
- name: Install dependencies
- run: npm ci
+ run: npm ci --legacy-peer-deps
- name: Install webpack ${{ matrix.webpack-version }}
if: matrix.webpack-version != 'latest'
- run: npm i webpack@${{ matrix.webpack-version }}
+ run: npm i webpack@${{ matrix.webpack-version }} --legacy-peer-deps
- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci
diff --git a/examples/chunk-optimization/dist/webpack-5/488.js b/examples/chunk-optimization/dist/webpack-5/192.js
similarity index 84%
rename from examples/chunk-optimization/dist/webpack-5/488.js
rename to examples/chunk-optimization/dist/webpack-5/192.js
index d7018b66..eda9c2b8 100644
--- a/examples/chunk-optimization/dist/webpack-5/488.js
+++ b/examples/chunk-optimization/dist/webpack-5/192.js
@@ -1,13 +1,13 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[488],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[192],{
-/***/ 432:
+/***/ 810:
/***/ ((module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ c: () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
-/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(849);
+/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(935);
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
// Imports
@@ -20,16 +20,16 @@ ___CSS_LOADER_EXPORT___.push([module.id, "body {\n background: snow;\n}\n", ""]
/***/ }),
-/***/ 488:
+/***/ 192:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
-/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(108);
+/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(591);
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(432);
+/* harmony import */ var _node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(810);
@@ -38,11 +38,11 @@ var options = {};
options.insert = "head";
options.singleton = false;
-var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .c, options);
+var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, options);
-/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .c.locals || {});
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.locals || {});
/***/ })
diff --git a/examples/chunk-optimization/dist/webpack-5/980.js b/examples/chunk-optimization/dist/webpack-5/461.js
similarity index 98%
rename from examples/chunk-optimization/dist/webpack-5/980.js
rename to examples/chunk-optimization/dist/webpack-5/461.js
index 6e63ecd6..c51593fe 100644
--- a/examples/chunk-optimization/dist/webpack-5/980.js
+++ b/examples/chunk-optimization/dist/webpack-5/461.js
@@ -1,7 +1,7 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[980],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[461],{
-/***/ 849:
+/***/ 935:
/***/ ((module) => {
@@ -73,7 +73,7 @@ module.exports = function (cssWithMappingToString) {
/***/ }),
-/***/ 108:
+/***/ 591:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
diff --git a/examples/chunk-optimization/dist/webpack-5/entryA.html b/examples/chunk-optimization/dist/webpack-5/entryA.html
index c6e5567d..cf68125e 100644
--- a/examples/chunk-optimization/dist/webpack-5/entryA.html
+++ b/examples/chunk-optimization/dist/webpack-5/entryA.html
@@ -1 +1 @@
-
Webpack App
\ No newline at end of file
+Webpack App
\ No newline at end of file
diff --git a/examples/chunk-optimization/dist/webpack-5/entryA.js b/examples/chunk-optimization/dist/webpack-5/entryA.js
index 703777c4..2db62a43 100644
--- a/examples/chunk-optimization/dist/webpack-5/entryA.js
+++ b/examples/chunk-optimization/dist/webpack-5/entryA.js
@@ -1,12 +1,12 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 67:
+/***/ 910:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
-__webpack_require__(488);
-var multiply = __webpack_require__(540);
-var concat = __webpack_require__(280);
+__webpack_require__(192);
+var multiply = __webpack_require__(199);
+var concat = __webpack_require__(631);
var h1 = document.createElement("h1");
h1.innerHTML = concat("Hello world from Entry ", multiply(1, 1));
document.body.appendChild(h1);
@@ -124,7 +124,7 @@ document.body.appendChild(h1);
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
-/******/ 568: 0
+/******/ 570: 0
/******/ };
/******/
/******/ // no chunk on demand loading
@@ -179,7 +179,7 @@ document.body.appendChild(h1);
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
-/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [288,8,980,488], () => (__webpack_require__(67)))
+/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [646,209,461,192], () => (__webpack_require__(910)))
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
/******/
/******/ })()
diff --git a/examples/chunk-optimization/dist/webpack-5/entryB.html b/examples/chunk-optimization/dist/webpack-5/entryB.html
index 1de0e928..a6013ab2 100644
--- a/examples/chunk-optimization/dist/webpack-5/entryB.html
+++ b/examples/chunk-optimization/dist/webpack-5/entryB.html
@@ -1 +1 @@
-Webpack App
\ No newline at end of file
+Webpack App
\ No newline at end of file
diff --git a/examples/chunk-optimization/dist/webpack-5/entryB.js b/examples/chunk-optimization/dist/webpack-5/entryB.js
index ee323d0d..719eefaf 100644
--- a/examples/chunk-optimization/dist/webpack-5/entryB.js
+++ b/examples/chunk-optimization/dist/webpack-5/entryB.js
@@ -1,11 +1,11 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 304:
+/***/ 123:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
-__webpack_require__(488);
-var multiply = __webpack_require__(540);
+__webpack_require__(192);
+var multiply = __webpack_require__(199);
var h1 = document.createElement("h1");
h1.innerHTML = "Hello world from Entry " + multiply(1, 2);
document.body.appendChild(h1);
@@ -123,7 +123,7 @@ document.body.appendChild(h1);
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
-/******/ 758: 0
+/******/ 761: 0
/******/ };
/******/
/******/ // no chunk on demand loading
@@ -178,7 +178,7 @@ document.body.appendChild(h1);
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
-/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [288,980,488], () => (__webpack_require__(304)))
+/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [646,461,192], () => (__webpack_require__(123)))
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
/******/
/******/ })()
diff --git a/examples/chunk-optimization/dist/webpack-5/entryC.html b/examples/chunk-optimization/dist/webpack-5/entryC.html
index 07dac93d..c78cc1f7 100644
--- a/examples/chunk-optimization/dist/webpack-5/entryC.html
+++ b/examples/chunk-optimization/dist/webpack-5/entryC.html
@@ -1 +1 @@
-Webpack App
\ No newline at end of file
+Webpack App
\ No newline at end of file
diff --git a/examples/chunk-optimization/dist/webpack-5/libMath.js b/examples/chunk-optimization/dist/webpack-5/libMath.js
index b8996ec1..48a4cb0b 100644
--- a/examples/chunk-optimization/dist/webpack-5/libMath.js
+++ b/examples/chunk-optimization/dist/webpack-5/libMath.js
@@ -1,9 +1,9 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[288],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[646],{
-/***/ 540:
+/***/ 199:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-var sum = __webpack_require__(636);
+var sum = __webpack_require__(16);
module.exports = function multiply(a, b) {
var m = 0;
for (var i = 0; i < a; i = sum(i, 1)) {
@@ -15,7 +15,7 @@ module.exports = function multiply(a, b) {
/***/ }),
-/***/ 636:
+/***/ 16:
/***/ ((module) => {
module.exports = function sum(a, b) {
diff --git a/examples/chunk-optimization/dist/webpack-5/libText.js b/examples/chunk-optimization/dist/webpack-5/libText.js
index b08a5eee..baad04cd 100644
--- a/examples/chunk-optimization/dist/webpack-5/libText.js
+++ b/examples/chunk-optimization/dist/webpack-5/libText.js
@@ -1,6 +1,6 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[8],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[209],{
-/***/ 280:
+/***/ 631:
/***/ ((module) => {
module.exports = function concat(a, b) {
diff --git a/examples/custom-insertion-position/dist/webpack-5/bundle.js b/examples/custom-insertion-position/dist/webpack-5/bundle.js
index 56a82d66..f905fdfe 100644
--- a/examples/custom-insertion-position/dist/webpack-5/bundle.js
+++ b/examples/custom-insertion-position/dist/webpack-5/bundle.js
@@ -1,5 +1,4 @@
/******/ (() => { // webpackBootstrap
-var __webpack_exports__ = {};
var h1 = document.createElement("h1");
h1.innerHTML = "Hello world!";
document.body.appendChild(h1);
diff --git a/examples/custom-template/dist/webpack-5/bundle.js b/examples/custom-template/dist/webpack-5/bundle.js
index 1ca6da07..23cd3380 100644
--- a/examples/custom-template/dist/webpack-5/bundle.js
+++ b/examples/custom-template/dist/webpack-5/bundle.js
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 268:
+/***/ 969:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
"use strict";
@@ -51,14 +51,10 @@ __webpack_require__.r(__webpack_exports__);
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-__webpack_require__(268);
+__webpack_require__(969);
var h1 = document.createElement("h1");
h1.innerHTML = "Hello world!";
document.body.appendChild(h1);
-})();
-
/******/ })()
;
\ No newline at end of file
diff --git a/examples/default/dist/webpack-5/bundle.js b/examples/default/dist/webpack-5/bundle.js
index 53aa7b37..dedede66 100644
--- a/examples/default/dist/webpack-5/bundle.js
+++ b/examples/default/dist/webpack-5/bundle.js
@@ -1,14 +1,14 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 432:
+/***/ 810:
/***/ ((module, __webpack_exports__, __webpack_require__) => {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ c: () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
-/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(849);
+/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(935);
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
// Imports
@@ -21,7 +21,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "body {\n background: snow;\n}\n", ""]
/***/ }),
-/***/ 849:
+/***/ 935:
/***/ ((module) => {
"use strict";
@@ -94,7 +94,7 @@ module.exports = function (cssWithMappingToString) {
/***/ }),
-/***/ 488:
+/***/ 192:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
"use strict";
@@ -102,9 +102,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
-/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(108);
+/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(591);
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(432);
+/* harmony import */ var _node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(810);
@@ -113,15 +113,15 @@ var options = {};
options.insert = "head";
options.singleton = false;
-var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .c, options);
+var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, options);
-/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .c.locals || {});
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.locals || {});
/***/ }),
-/***/ 108:
+/***/ 591:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
"use strict";
@@ -471,14 +471,10 @@ module.exports = function (list, options) {
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-__webpack_require__(488);
+__webpack_require__(192);
var h1 = document.createElement("h1");
h1.innerHTML = "Hello world!";
document.body.appendChild(h1);
-})();
-
/******/ })()
;
\ No newline at end of file
diff --git a/examples/favicon/dist/webpack-5/bundle.js b/examples/favicon/dist/webpack-5/bundle.js
index 1ca6da07..23cd3380 100644
--- a/examples/favicon/dist/webpack-5/bundle.js
+++ b/examples/favicon/dist/webpack-5/bundle.js
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 268:
+/***/ 969:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
"use strict";
@@ -51,14 +51,10 @@ __webpack_require__.r(__webpack_exports__);
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-__webpack_require__(268);
+__webpack_require__(969);
var h1 = document.createElement("h1");
h1.innerHTML = "Hello world!";
document.body.appendChild(h1);
-})();
-
/******/ })()
;
\ No newline at end of file
diff --git a/examples/html-loader/dist/webpack-5/bundle.js b/examples/html-loader/dist/webpack-5/bundle.js
index 1ca6da07..23cd3380 100644
--- a/examples/html-loader/dist/webpack-5/bundle.js
+++ b/examples/html-loader/dist/webpack-5/bundle.js
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 268:
+/***/ 969:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
"use strict";
@@ -51,14 +51,10 @@ __webpack_require__.r(__webpack_exports__);
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-__webpack_require__(268);
+__webpack_require__(969);
var h1 = document.createElement("h1");
h1.innerHTML = "Hello world!";
document.body.appendChild(h1);
-})();
-
/******/ })()
;
\ No newline at end of file
diff --git a/examples/inline/dist/webpack-5/bundle.js b/examples/inline/dist/webpack-5/bundle.js
index 58d9d846..92d9dea1 100644
--- a/examples/inline/dist/webpack-5/bundle.js
+++ b/examples/inline/dist/webpack-5/bundle.js
@@ -2,7 +2,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({
-/***/ 268:
+/***/ 969:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
@@ -51,14 +51,10 @@ __webpack_require__.r(__webpack_exports__);
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-__webpack_require__(268);
+__webpack_require__(969);
console.log("Hello World");
-})();
-
/******/ })()
;
\ No newline at end of file
diff --git a/examples/inline/dist/webpack-5/index.html b/examples/inline/dist/webpack-5/index.html
index ded9fbbb..45c15817 100644
--- a/examples/inline/dist/webpack-5/index.html
+++ b/examples/inline/dist/webpack-5/index.html
@@ -4,7 +4,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({
-/***/ 268:
+/***/ 969:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
@@ -53,14 +53,10 @@
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-__webpack_require__(268);
+__webpack_require__(969);
console.log("Hello World");
-})();
-
/******/ })()
;