Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"Bfile",
"webpackconfig",
"specialattribute",
"dircompare"
"dircompare",
"wagoid",
"autocrlf"
],
"ignorePaths": [
"CHANGELOG.md",
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,18 @@ jobs:

strategy:
matrix:
node: ["10.x", "12.x", "14.x", "16.x", "18.x", "20.x"]
node:
[
"10.x",
"12.x",
"14.x",
"16.x",
"18.x",
"20.x",
"22.x",
"24.x",
"25.x",
]
os: [ubuntu-latest, windows-latest, macOS-latest]
webpack: [latest]

Expand Down
44 changes: 22 additions & 22 deletions examples/chunk-optimization/dist/webpack-5/192.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[192],{

/***/ 810:
/***/ ((module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* 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__(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

var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
// Module
___CSS_LOADER_EXPORT___.push([module.id, "body {\n background: snow;\n}\n", ""]);
// Exports
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);


/***/ }),

/***/ 192:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/***/ 192
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
Expand All @@ -44,6 +25,25 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_main_css__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.locals || {});

/***/ })
/***/ },

/***/ 810
(module, __webpack_exports__, __webpack_require__) {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* 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__(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

var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
// Module
___CSS_LOADER_EXPORT___.push([module.id, "body {\n background: snow;\n}\n", ""]);
// Exports
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);


/***/ }

}]);
150 changes: 75 additions & 75 deletions examples/chunk-optimization/dist/webpack-5/461.js
Original file line number Diff line number Diff line change
@@ -1,80 +1,8 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[461],{

/***/ 935:
/***/ ((module) => {



/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
// eslint-disable-next-line func-names
module.exports = function (cssWithMappingToString) {
var list = []; // return the list of modules as css string

list.toString = function toString() {
return this.map(function (item) {
var content = cssWithMappingToString(item);

if (item[2]) {
return "@media ".concat(item[2], " {").concat(content, "}");
}

return content;
}).join('');
}; // import a list of modules into the list
// eslint-disable-next-line func-names


list.i = function (modules, mediaQuery, dedupe) {
if (typeof modules === 'string') {
// eslint-disable-next-line no-param-reassign
modules = [[null, modules, '']];
}

var alreadyImportedModules = {};

if (dedupe) {
for (var i = 0; i < this.length; i++) {
// eslint-disable-next-line prefer-destructuring
var id = this[i][0];

if (id != null) {
alreadyImportedModules[id] = true;
}
}
}

for (var _i = 0; _i < modules.length; _i++) {
var item = [].concat(modules[_i]);

if (dedupe && alreadyImportedModules[item[0]]) {
// eslint-disable-next-line no-continue
continue;
}

if (mediaQuery) {
if (!item[2]) {
item[2] = mediaQuery;
} else {
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
}
}

list.push(item);
}
};

return list;
};

/***/ }),

/***/ 591:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
/***/ 591
(module, __unused_webpack_exports, __webpack_require__) {



Expand Down Expand Up @@ -346,6 +274,78 @@ module.exports = function (list, options) {
};
};

/***/ })
/***/ },

/***/ 935
(module) {



/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
// eslint-disable-next-line func-names
module.exports = function (cssWithMappingToString) {
var list = []; // return the list of modules as css string

list.toString = function toString() {
return this.map(function (item) {
var content = cssWithMappingToString(item);

if (item[2]) {
return "@media ".concat(item[2], " {").concat(content, "}");
}

return content;
}).join('');
}; // import a list of modules into the list
// eslint-disable-next-line func-names


list.i = function (modules, mediaQuery, dedupe) {
if (typeof modules === 'string') {
// eslint-disable-next-line no-param-reassign
modules = [[null, modules, '']];
}

var alreadyImportedModules = {};

if (dedupe) {
for (var i = 0; i < this.length; i++) {
// eslint-disable-next-line prefer-destructuring
var id = this[i][0];

if (id != null) {
alreadyImportedModules[id] = true;
}
}
}

for (var _i = 0; _i < modules.length; _i++) {
var item = [].concat(modules[_i]);

if (dedupe && alreadyImportedModules[item[0]]) {
// eslint-disable-next-line no-continue
continue;
}

if (mediaQuery) {
if (!item[2]) {
item[2] = mediaQuery;
} else {
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
}
}

list.push(item);
}
};

return list;
};

/***/ }

}]);
6 changes: 3 additions & 3 deletions examples/chunk-optimization/dist/webpack-5/entryA.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 910:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
/***/ 910
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

__webpack_require__(192);
var multiply = __webpack_require__(199);
Expand All @@ -12,7 +12,7 @@ h1.innerHTML = concat("Hello world from Entry ", multiply(1, 1));
document.body.appendChild(h1);


/***/ })
/***/ }

/******/ });
/************************************************************************/
Expand Down
6 changes: 3 additions & 3 deletions examples/chunk-optimization/dist/webpack-5/entryB.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 123:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
/***/ 123
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

__webpack_require__(192);
var multiply = __webpack_require__(199);
Expand All @@ -11,7 +11,7 @@ h1.innerHTML = "Hello world from Entry " + multiply(1, 2);
document.body.appendChild(h1);


/***/ })
/***/ }

/******/ });
/************************************************************************/
Expand Down
26 changes: 13 additions & 13 deletions examples/chunk-optimization/dist/webpack-5/libMath.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[646],{

/***/ 199:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
/***/ 16
(module) {

module.exports = function sum(a, b) {
return a + b;
};


/***/ },

/***/ 199
(module, __unused_webpack_exports, __webpack_require__) {

var sum = __webpack_require__(16);
module.exports = function multiply(a, b) {
Expand All @@ -13,16 +23,6 @@ module.exports = function multiply(a, b) {
};


/***/ }),

/***/ 16:
/***/ ((module) => {

module.exports = function sum(a, b) {
return a + b;
};


/***/ })
/***/ }

}]);
6 changes: 3 additions & 3 deletions examples/chunk-optimization/dist/webpack-5/libText.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[209],{

/***/ 631:
/***/ ((module) => {
/***/ 631
(module) {

module.exports = function concat(a, b) {
return String(a) + String(b);
};


/***/ })
/***/ }

}]);
6 changes: 3 additions & 3 deletions examples/custom-template/dist/webpack-5/bundle.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 969:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/***/ 969
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ })
/***/ }

/******/ });
/************************************************************************/
Expand Down
Loading