weboptimizer 2.0.1641 → 2.0.1643
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/helper.js +0 -1
- package/package.json +25 -25
- package/webpackConfigurator.js +0 -20
package/helper.js
CHANGED
|
@@ -666,7 +666,6 @@ var getAutoInjection = exports.getAutoInjection = function getAutoInjection(buil
|
|
|
666
666
|
}
|
|
667
667
|
return result;
|
|
668
668
|
};
|
|
669
|
-
// TODO test
|
|
670
669
|
/**
|
|
671
670
|
* Determines a resolved module file path in given package path.
|
|
672
671
|
* @param packagePath - Path to package to resolve in.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1643",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -86,78 +86,78 @@
|
|
|
86
86
|
},
|
|
87
87
|
"runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@babel/core": "^7.
|
|
89
|
+
"@babel/core": "^7.29.0",
|
|
90
90
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
91
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
91
|
+
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
92
92
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
93
93
|
"@babel/plugin-syntax-top-level-await": "^7.14.5",
|
|
94
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
95
|
-
"@babel/preset-env": "^7.
|
|
94
|
+
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
95
|
+
"@babel/preset-env": "^7.29.0",
|
|
96
96
|
"@babel/preset-typescript": "^7.28.5",
|
|
97
|
-
"@babel/runtime": "^7.28.
|
|
97
|
+
"@babel/runtime": "^7.28.6",
|
|
98
98
|
"babel-loader": "^10.0.0",
|
|
99
99
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
100
100
|
"babel-preset-minify": "^0.5.2",
|
|
101
|
-
"clientnode": "3.0.
|
|
102
|
-
"ejs": "^
|
|
101
|
+
"clientnode": "3.0.1343",
|
|
102
|
+
"ejs": "^4.0.1",
|
|
103
103
|
"exports-loader": "^5.0.0",
|
|
104
104
|
"extract-loader": "^5.1.0",
|
|
105
105
|
"glob-all": "^3.3.1",
|
|
106
106
|
"html-loader": "^5.1.0",
|
|
107
107
|
"html-minifier": "^4.0.0",
|
|
108
|
-
"html-webpack-plugin": "^5.6.
|
|
108
|
+
"html-webpack-plugin": "^5.6.6",
|
|
109
109
|
"imports-loader": "^5.0.0",
|
|
110
110
|
"jest-environment-jsdom": "^30.2.0",
|
|
111
111
|
"rimraf": "^6.1.2",
|
|
112
112
|
"script-loader": "^0.7.2",
|
|
113
113
|
"typescript": "^5.9.3",
|
|
114
|
-
"webpack": "^5.
|
|
114
|
+
"webpack": "^5.105.0",
|
|
115
115
|
"webpack-cli": "^6.0.1",
|
|
116
116
|
"webpack-sources": "^3.3.3"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@babel/cli": "^7.28.
|
|
120
|
-
"@babel/eslint-parser": "^7.28.
|
|
121
|
-
"@stylistic/eslint-plugin": "^5.
|
|
119
|
+
"@babel/cli": "^7.28.6",
|
|
120
|
+
"@babel/eslint-parser": "^7.28.6",
|
|
121
|
+
"@stylistic/eslint-plugin": "^5.7.1",
|
|
122
122
|
"@types/ejs": "^3.1.5",
|
|
123
123
|
"@types/eslint": "^9.6.1",
|
|
124
124
|
"@types/html-minifier": "^4.0.6",
|
|
125
125
|
"@types/html-minifier-terser": "^7.0.2",
|
|
126
126
|
"@types/imagemin": "^9.0.1",
|
|
127
|
-
"@types/node": "^25.0
|
|
127
|
+
"@types/node": "^25.2.0",
|
|
128
128
|
"@types/postcss-import": "^14.0.3",
|
|
129
129
|
"@types/postcss-url": "^10.0.4",
|
|
130
130
|
"@types/webpack-env": "^1.18.8",
|
|
131
131
|
"@types/webpack-sources": "^3.2.3",
|
|
132
|
-
"@typescript-eslint/parser": "^8.
|
|
133
|
-
"css-loader": "^7.1.
|
|
132
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
133
|
+
"css-loader": "^7.1.3",
|
|
134
134
|
"cssnano": "^7.1.2",
|
|
135
135
|
"documentation-website": "^1.0.398",
|
|
136
136
|
"eslint": "^9.39.2",
|
|
137
137
|
"eslint-config-google": "^0.14.0",
|
|
138
|
-
"eslint-plugin-jsdoc": "^
|
|
138
|
+
"eslint-plugin-jsdoc": "^62.5.1",
|
|
139
139
|
"favicons": "^7.2.0",
|
|
140
140
|
"favicons-webpack-plugin": "^6.0.1",
|
|
141
|
-
"globals": "^17.
|
|
141
|
+
"globals": "^17.3.0",
|
|
142
142
|
"image-minimizer-webpack-plugin": "^4.1.4",
|
|
143
143
|
"jest": "^30.2.0",
|
|
144
144
|
"jsdoc": "^4.0.5",
|
|
145
|
-
"mini-css-extract-plugin": "^2.
|
|
145
|
+
"mini-css-extract-plugin": "^2.10.0",
|
|
146
146
|
"mkdirp": "^3.0.1",
|
|
147
147
|
"node-fetch": "^3.3.2",
|
|
148
148
|
"postcss": "^8.5.6",
|
|
149
149
|
"postcss-fontpath": "^1.0.0",
|
|
150
150
|
"postcss-import": "^16.1.1",
|
|
151
151
|
"postcss-loader": "^8.2.0",
|
|
152
|
-
"postcss-preset-env": "^
|
|
152
|
+
"postcss-preset-env": "^11.1.2",
|
|
153
153
|
"postcss-sprites": "^4.2.1",
|
|
154
154
|
"postcss-url": "^10.1.3",
|
|
155
155
|
"shx": "^0.4.0",
|
|
156
156
|
"style-loader": "^4.0.0",
|
|
157
|
-
"stylelint": "^
|
|
158
|
-
"stylelint-config-standard": "^
|
|
159
|
-
"stylelint-config-standard-scss": "^
|
|
160
|
-
"typescript-eslint": "^8.
|
|
157
|
+
"stylelint": "^17.1.1",
|
|
158
|
+
"stylelint-config-standard": "^40.0.0",
|
|
159
|
+
"stylelint-config-standard-scss": "^17.0.0",
|
|
160
|
+
"typescript-eslint": "^8.54.0",
|
|
161
161
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
162
162
|
"workbox-webpack-plugin": "^7.4.0"
|
|
163
163
|
},
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
"last 2 major versions",
|
|
732
732
|
"> 5%"
|
|
733
733
|
],
|
|
734
|
-
"testCommandLine": "jest --config node_modules/weboptimizer/jest.json --noStackTrace --test-regex",
|
|
734
|
+
"testCommandLine": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --config node_modules/weboptimizer/jest.json --noStackTrace --test-regex",
|
|
735
735
|
"testCommandLineCoverageArguments": "--ci --coverage --coverage-reporters=text --coverage-reporters=text-summary --silent --test-location-in-results"
|
|
736
736
|
},
|
|
737
737
|
"givenCommandLineArguments": [],
|
package/webpackConfigurator.js
CHANGED
|
@@ -207,26 +207,6 @@ pluginInstances.push({
|
|
|
207
207
|
});
|
|
208
208
|
///// endregion
|
|
209
209
|
///// region in-place configured assets in the main html file
|
|
210
|
-
/*
|
|
211
|
-
TODO
|
|
212
|
-
|
|
213
|
-
/
|
|
214
|
-
NOTE: We have to translate template delimiter to html compatible
|
|
215
|
-
sequences and translate it back later to avoid unexpected escape
|
|
216
|
-
sequences in resulting html.
|
|
217
|
-
/
|
|
218
|
-
const window: DOMWindow = (new DOM(
|
|
219
|
-
content
|
|
220
|
-
.replace(/<%/g, '##+#+#+##')
|
|
221
|
-
.replace(/%>/g, '##-#-#-##')
|
|
222
|
-
)).window
|
|
223
|
-
|
|
224
|
-
->
|
|
225
|
-
|
|
226
|
-
.replace(/##\+#\+#\+##/g, '<%')
|
|
227
|
-
.replace(/##-#-#-##/g, '%>')
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
210
|
if (plugins.HTML && htmlAvailable && !['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]) && configuration.inPlace.cascadingStyleSheet && Object.keys(configuration.inPlace.cascadingStyleSheet).length || configuration.inPlace.javaScript && Object.keys(configuration.inPlace.javaScript).length) pluginInstances.push(new _InPlaceAssetsIntoHTML["default"]({
|
|
231
211
|
cascadingStyleSheet: configuration.inPlace.cascadingStyleSheet,
|
|
232
212
|
javaScript: configuration.inPlace.javaScript,
|