weboptimizer 4.0.68 → 4.0.70
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/configurator.js +8 -1
- package/ejsLoader.js +2 -2
- package/package.json +9 -9
package/configurator.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
19
|
import { convertCircularObjectToJSON, copy, evaluateAsyncDynamicData, evaluateDynamicData, extend, getUTCTimestamp, importFilesystemAPI, isFileSync, isObject, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, modifyObject, optionalImport, parseEncodedObject, removeKeyPrefixes, UTILITY_SCOPE } from 'clientnode';
|
|
20
|
+
import fileSystemSynchronous from 'fs';
|
|
20
21
|
import fileSystem, { lstat, readFile, unlink } from 'fs/promises';
|
|
21
22
|
import path, { basename, dirname, join, resolve } from 'path';
|
|
22
23
|
import { determineAssetType, determineModuleFilePath, determineModuleLocations, resolveAutoInjection, resolveBuildConfigurationFilePaths, resolveModulesInFolders, normalizeGivenInjection, normalizePaths } from "./helper.js";
|
|
@@ -200,7 +201,13 @@ environment = eval('process.env')) => {
|
|
|
200
201
|
nowUTCTimestamp: getUTCTimestamp(now)
|
|
201
202
|
}
|
|
202
203
|
};
|
|
203
|
-
const resolvedConfiguration = await evaluateAsyncDynamicData(evaluateDynamicData(configuration,
|
|
204
|
+
const resolvedConfiguration = await evaluateAsyncDynamicData(evaluateDynamicData(configuration, {
|
|
205
|
+
...evaluationOptions,
|
|
206
|
+
scope: {
|
|
207
|
+
...evaluationOptions.scope,
|
|
208
|
+
fs: fileSystemSynchronous
|
|
209
|
+
}
|
|
210
|
+
}), evaluationOptions);
|
|
204
211
|
// endregion
|
|
205
212
|
// region consolidate file specific build configuration
|
|
206
213
|
// Apply default file level build configurations to all file type specific
|
package/ejsLoader.js
CHANGED
|
@@ -174,8 +174,8 @@ export const loader = async function (source) {
|
|
|
174
174
|
const templateInstance = new ejs.Template(template, options);
|
|
175
175
|
templateInstance.compile();
|
|
176
176
|
const compiledSourceCode = templateInstance.source;
|
|
177
|
-
result = `
|
|
178
|
-
|
|
177
|
+
result = `module.exports =
|
|
178
|
+
${options.async ? 'async ' : ''}function(
|
|
179
179
|
${options.localsName}
|
|
180
180
|
) {
|
|
181
181
|
var escapeFn = function(value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.70",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
"html-minifier": "^4.0.0",
|
|
114
114
|
"html-webpack-plugin": "^5.6.8",
|
|
115
115
|
"imports-loader": "^5.0.0",
|
|
116
|
-
"jest-environment-jsdom": "^30.
|
|
116
|
+
"jest-environment-jsdom": "^30.5.0",
|
|
117
117
|
"rimraf": "^6.1.3",
|
|
118
118
|
"script-loader": "^0.7.2",
|
|
119
119
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
120
|
-
"webpack": "^5.
|
|
121
|
-
"webpack-cli": "^7.2.
|
|
120
|
+
"webpack": "^5.110.2",
|
|
121
|
+
"webpack-cli": "^7.2.3",
|
|
122
122
|
"webpack-sources": "^3.5.1"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
@@ -137,16 +137,16 @@
|
|
|
137
137
|
"@types/webpack-env": "^1.18.8",
|
|
138
138
|
"@types/webpack-sources": "^3.2.3",
|
|
139
139
|
"@typescript-eslint/parser": "^8.68.0",
|
|
140
|
-
"css-loader": "^7.1.
|
|
141
|
-
"cssnano": "^
|
|
140
|
+
"css-loader": "^7.1.5",
|
|
141
|
+
"cssnano": "^9.0.1",
|
|
142
142
|
"eslint": "^10.9.1",
|
|
143
143
|
"eslint-config-google": "^0.14.0",
|
|
144
|
-
"eslint-plugin-jsdoc": "^64.2
|
|
144
|
+
"eslint-plugin-jsdoc": "^64.3.2",
|
|
145
145
|
"favicons": "^7.3.1",
|
|
146
146
|
"favicons-webpack-plugin": "^6.0.1",
|
|
147
147
|
"globals": "^17.11.0",
|
|
148
148
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
|
149
|
-
"jest": "^30.
|
|
149
|
+
"jest": "^30.5.0",
|
|
150
150
|
"jsdoc": "^4.0.5",
|
|
151
151
|
"mini-css-extract-plugin": "^2.10.2",
|
|
152
152
|
"mkdirp": "^3.0.1",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"terser-webpack-plugin": "^5.6.1",
|
|
167
167
|
"typescript-eslint": "^8.68.0",
|
|
168
168
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
169
|
-
"web-documentation": "^1.0.
|
|
169
|
+
"web-documentation": "^1.0.52",
|
|
170
170
|
"workbox-webpack-plugin": "^7.4.1"
|
|
171
171
|
},
|
|
172
172
|
"peerDependencies": {
|