weboptimizer 4.0.42 → 4.0.44
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 +6 -12
- package/webpackConfigurator.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.44",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"babel-loader": "^10.1.1",
|
|
95
95
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
96
96
|
"babel-plugin-transform-rewrite-imports": "^1.5.4",
|
|
97
|
-
"clientnode": "4.0.
|
|
97
|
+
"clientnode": "4.0.1477",
|
|
98
98
|
"core-js": "^3.49.0",
|
|
99
99
|
"ejs": "^6.0.1",
|
|
100
100
|
"exports-loader": "^5.0.0",
|
|
@@ -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.109.
|
|
111
|
+
"webpack": "^5.109.1",
|
|
112
112
|
"webpack-cli": "^7.2.1",
|
|
113
113
|
"webpack-sources": "^3.5.1"
|
|
114
114
|
},
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@types/html-minifier": "^4.0.6",
|
|
123
123
|
"@types/html-minifier-terser": "^7.0.2",
|
|
124
124
|
"@types/imagemin": "^9.0.1",
|
|
125
|
-
"@types/node": "^26.1.
|
|
125
|
+
"@types/node": "^26.1.2",
|
|
126
126
|
"@types/postcss-import": "^14.0.3",
|
|
127
127
|
"@types/postcss-url": "^10.0.4",
|
|
128
128
|
"@types/webpack-env": "^1.18.8",
|
|
@@ -704,6 +704,7 @@
|
|
|
704
704
|
"minify": {
|
|
705
705
|
"__evaluate__": "self.module.optimizer.htmlMinifier ? self.module.optimizer.htmlMinifier : false"
|
|
706
706
|
},
|
|
707
|
+
"scriptLoading": "module",
|
|
707
708
|
"template": {
|
|
708
709
|
"filePath": {
|
|
709
710
|
"__evaluate__": "`${filesystem.isFileSync(path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`)) ? path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`) : path.resolve(webOptimizerPath, 'index.html.ejs')}`"
|
|
@@ -1067,10 +1068,7 @@
|
|
|
1067
1068
|
},
|
|
1068
1069
|
"loader": []
|
|
1069
1070
|
},
|
|
1070
|
-
"runtimeChunk":
|
|
1071
|
-
"#": "We need to include a single shared runtime chunk into the bundle to avoid duplication of runtime code.",
|
|
1072
|
-
"__evaluate__": "self.givenCommandLineArguments[2] === 'serve' ? 'single' : false"
|
|
1073
|
-
},
|
|
1071
|
+
"runtimeChunk": false,
|
|
1074
1072
|
"terser": {
|
|
1075
1073
|
"terserOptions": {
|
|
1076
1074
|
"compress": {
|
|
@@ -1511,10 +1509,6 @@
|
|
|
1511
1509
|
},
|
|
1512
1510
|
"module": {
|
|
1513
1511
|
"optimizer": {
|
|
1514
|
-
"runtimeChunk": {
|
|
1515
|
-
"#": "We need to include a single shared runtime chunk into the bundle to avoid duplication of runtime code.",
|
|
1516
|
-
"__evaluate__": "self.givenCommandLineArguments[2] === 'serve' ? 'single' : false"
|
|
1517
|
-
},
|
|
1518
1512
|
"terser": {
|
|
1519
1513
|
"terserOptions": {
|
|
1520
1514
|
"compress": {
|
package/webpackConfigurator.js
CHANGED
|
@@ -769,7 +769,7 @@ export let webpackConfiguration = extend(true, {
|
|
|
769
769
|
devServer: configuration.development.server,
|
|
770
770
|
experiments: {
|
|
771
771
|
futureDefaults: true,
|
|
772
|
-
outputModule:
|
|
772
|
+
outputModule: true,
|
|
773
773
|
/*
|
|
774
774
|
"futureDefaults" would enable webpack's native css support
|
|
775
775
|
which disables the configured "mini-css-extract-plugin"
|
|
@@ -831,8 +831,7 @@ export let webpackConfiguration = extend(true, {
|
|
|
831
831
|
umdNamedDefine: true
|
|
832
832
|
},
|
|
833
833
|
path: configuration.path.target.base,
|
|
834
|
-
publicPath: configuration.path.target.public
|
|
835
|
-
uniqueName: configuration.name
|
|
834
|
+
publicPath: configuration.path.target.public
|
|
836
835
|
},
|
|
837
836
|
performance: configuration.performanceHints,
|
|
838
837
|
/*
|