weboptimizer 2.0.1514 → 2.0.1516
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/ejsLoader.d.ts +1 -1
- package/ejsLoader.js +4 -3
- package/package.json +5 -5
package/ejsLoader.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export type LoaderConfiguration = Mapping<unknown> & {
|
|
|
30
30
|
* @param source - Input string to transform.
|
|
31
31
|
* @returns Transformed string.
|
|
32
32
|
*/
|
|
33
|
-
export declare const loader: (this: LoaderContext<LoaderConfiguration
|
|
33
|
+
export declare const loader: (this: Partial<LoaderContext<LoaderConfiguration>>, source: string) => string;
|
|
34
34
|
export default loader;
|
package/ejsLoader.js
CHANGED
|
@@ -46,7 +46,8 @@ var configuration = (0, _configurator["default"])();
|
|
|
46
46
|
* @returns Transformed string.
|
|
47
47
|
*/
|
|
48
48
|
var loader = exports.loader = function loader(source) {
|
|
49
|
-
var
|
|
49
|
+
var _ref,
|
|
50
|
+
_this = this,
|
|
50
51
|
_givenOptions$compile;
|
|
51
52
|
var givenOptions = (0, _clientnode.convertSubstringInPlainObject)((0, _clientnode.extend)(true, {
|
|
52
53
|
compiler: {},
|
|
@@ -67,7 +68,7 @@ var loader = exports.loader = function loader(source) {
|
|
|
67
68
|
aliases: {},
|
|
68
69
|
replacements: {}
|
|
69
70
|
}
|
|
70
|
-
},
|
|
71
|
+
}, this.getOptions ? this.getOptions() : (_ref = this.query) !== null && _ref !== void 0 ? _ref : {}), /#%%%#/g, '!');
|
|
71
72
|
var _compile = function compile(template) {
|
|
72
73
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : givenOptions.compiler;
|
|
73
74
|
var compileSteps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;
|
|
@@ -102,7 +103,7 @@ var loader = exports.loader = function loader(source) {
|
|
|
102
103
|
file: ((_givenOptions$extensi = givenOptions.extensions) === null || _givenOptions$extensi === void 0 ? void 0 : _givenOptions$extensi.file.internal) || []
|
|
103
104
|
}, givenOptions.context, configuration.path.source.asset.base, configuration.path.ignore, configuration.module.directoryNames, configuration["package"].main.fileNames, configuration["package"].main.propertyNames, configuration["package"].aliasPropertyNames, configuration.encoding);
|
|
104
105
|
if (templateFilePath) {
|
|
105
|
-
if (
|
|
106
|
+
if (_this.addDependency) _this.addDependency(templateFilePath);
|
|
106
107
|
/*
|
|
107
108
|
NOTE: If there aren't any locals options or variables and
|
|
108
109
|
file doesn't seem to be an ejs template we simply load
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1516",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"babel-loader": "^9.2.1",
|
|
101
101
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
102
102
|
"babel-preset-minify": "^0.5.2",
|
|
103
|
-
"clientnode": "3.0.
|
|
103
|
+
"clientnode": "3.0.1189",
|
|
104
104
|
"ejs": "^3.1.10",
|
|
105
105
|
"exports-loader": "^5.0.0",
|
|
106
106
|
"extract-loader": "^5.1.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"rimraf": "^6.0.1",
|
|
114
114
|
"script-loader": "^0.7.2",
|
|
115
115
|
"typescript": "^5.6.2",
|
|
116
|
-
"webpack": "^5.
|
|
116
|
+
"webpack": "^5.95.0",
|
|
117
117
|
"webpack-cli": "^5.1.4",
|
|
118
118
|
"webpack-sources": "^3.2.3"
|
|
119
119
|
},
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@types/html-minifier": "^4.0.5",
|
|
128
128
|
"@types/html-minifier-terser": "^7.0.2",
|
|
129
129
|
"@types/imagemin": "^9.0.0",
|
|
130
|
-
"@types/node": "^22.7.
|
|
130
|
+
"@types/node": "^22.7.4",
|
|
131
131
|
"@types/postcss-import": "^14.0.3",
|
|
132
132
|
"@types/postcss-url": "^10.0.4",
|
|
133
133
|
"@types/webpack-env": "^1.18.5",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"documentation-website": "^1.0.332",
|
|
139
139
|
"eslint": "^9.11.1",
|
|
140
140
|
"eslint-config-google": "^0.14.0",
|
|
141
|
-
"eslint-plugin-jsdoc": "^50.
|
|
141
|
+
"eslint-plugin-jsdoc": "^50.3.0",
|
|
142
142
|
"favicons": "^7.2.0",
|
|
143
143
|
"favicons-webpack-plugin": "^6.0.1",
|
|
144
144
|
"globals": "^15.9.0",
|