weboptimizer 4.0.34 → 4.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/webpackConfigurator.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.35",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"rimraf": "^6.1.3",
|
|
109
109
|
"script-loader": "^0.7.2",
|
|
110
110
|
"typescript": "^6.0.3",
|
|
111
|
-
"webpack": "^5.
|
|
111
|
+
"webpack": "^5.109.0",
|
|
112
112
|
"webpack-cli": "^7.2.1",
|
|
113
113
|
"webpack-sources": "^3.5.1"
|
|
114
114
|
},
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
"cssnano": "^8.0.2",
|
|
133
133
|
"eslint": "^10.7.0",
|
|
134
134
|
"eslint-config-google": "^0.14.0",
|
|
135
|
-
"eslint-plugin-jsdoc": "^63.2.
|
|
136
|
-
"favicons": "^7.3.
|
|
135
|
+
"eslint-plugin-jsdoc": "^63.2.2",
|
|
136
|
+
"favicons": "^7.3.1",
|
|
137
137
|
"favicons-webpack-plugin": "^6.0.1",
|
|
138
138
|
"globals": "^17.7.0",
|
|
139
139
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
package/webpackConfigurator.js
CHANGED
|
@@ -846,6 +846,21 @@ export let webpackConfiguration = extend(true, {
|
|
|
846
846
|
optimization: {
|
|
847
847
|
chunkIds: configuration.debug ? 'named' : 'total-size',
|
|
848
848
|
moduleIds: configuration.debug ? 'named' : 'size',
|
|
849
|
+
/*
|
|
850
|
+
NOTE: The dev-server ("serve") emits a non-module runtime.
|
|
851
|
+
Re-bundling an already webpack-bundled dependency that
|
|
852
|
+
externalizes its own dependencies then produces two
|
|
853
|
+
module-scope bindings with webpack's deterministic
|
|
854
|
+
"<name>__WEBPACK_IMPORTED_MODULE_0__" name in one function
|
|
855
|
+
scope: the downstream external import and the library's
|
|
856
|
+
internal harmony import. Via "var" hoisting they merge, so the
|
|
857
|
+
dependency's re-export facade references itself and any access
|
|
858
|
+
(e.g. "new Logger()") recurses endlessly. Scope hoisting
|
|
859
|
+
renames those bindings uniquely and dissolves the collision. It
|
|
860
|
+
is on by default for the production "build" but has to be forced
|
|
861
|
+
for the development server.
|
|
862
|
+
*/
|
|
863
|
+
concatenateModules: configuration.givenCommandLineArguments[2] === 'serve' || undefined,
|
|
849
864
|
// region common chunks
|
|
850
865
|
splitChunks: extend(true, !configuration.injection.chunks || configuration.targetTechnology.payload === 'node' || configuration.givenCommandLineArguments[2] === 'test' ? {
|
|
851
866
|
cacheGroups: {
|