weboptimizer 3.0.19 → 3.0.21

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/index.js CHANGED
@@ -37,6 +37,7 @@ var _path = _interopRequireWildcard(require("path"));
37
37
  var _rimraf = require("rimraf");
38
38
  var _configurator = require("./configurator");
39
39
  var _helper = require("./helper");
40
+ var _process$env$NODE_ENV;
40
41
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t9 in e) "default" !== _t9 && {}.hasOwnProperty.call(e, _t9) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t9)) && (i.get || i.set) ? o(f, _t9, i) : f[_t9] = e[_t9]); return f; })(e, t); }
41
42
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
42
43
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -48,7 +49,7 @@ var log = exports.log = new _clientnode.Logger({
48
49
  name: 'weboptimizer-main-logger'
49
50
  });
50
51
  _clientnode.Logger.configureAllInstances({
51
- level: process.env.NODE_ENV === 'debug' ? 'debug' : 'warn'
52
+ level: ['debug', 'development'].includes((_process$env$NODE_ENV = process.env.NODE_ENV) !== null && _process$env$NODE_ENV !== void 0 ? _process$env$NODE_ENV : '') ? 'debug' : 'warn'
52
53
  });
53
54
  // NOTE: Environment variables can only be strings.
54
55
  process.env.UV_THREADPOOL_SIZE = '128';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "3.0.19",
3
+ "version": "3.0.21",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -318,8 +318,8 @@
318
318
  }
319
319
  },
320
320
  "engines": {
321
- "node": ">=20",
322
- "npm": ">=10",
321
+ "node": ">=24",
322
+ "npm": ">=11",
323
323
  "yarn": ">=4"
324
324
  },
325
325
  "resolutions": {
@@ -772,9 +772,6 @@
772
772
  },
773
773
  "external": {
774
774
  "aliases": {
775
- "jquery": {
776
- "root": "jQuery"
777
- },
778
775
  "^.+/node_modules/.+(?:\\.css)?$": {
779
776
  "^(.+)(?:\\.css)?$": "?$1.compiled.css"
780
777
  },
@@ -1231,9 +1228,6 @@
1231
1228
  },
1232
1229
  "#1": "NOTE: Breaks linked files live reloading when disabled.",
1233
1230
  "resolveSymlinks": true,
1234
- "skipParseRegularExpressions": {
1235
- "__evaluate__": "/(?:^|\\/)(?:(?:jquery\\/dist\\/jquery))(?:\\.min)?\\.js(?:\\?.+|$)/"
1236
- },
1237
1231
  "style": {
1238
1232
  "#": "Includes referenced (hot module replaced) css files in-place into the html header to dynamically migrate them on changes without browser refresh.",
1239
1233
  "loader": "style-loader",
@@ -1425,9 +1419,6 @@
1425
1419
  "hints": false
1426
1420
  },
1427
1421
  "plugins": [],
1428
- "showConfiguration": {
1429
- "__evaluate__": "self.debug"
1430
- },
1431
1422
  "stylelint": {
1432
1423
  "customSyntax": "postcss-scss",
1433
1424
  "extends": "stylelint-config-standard",
package/type.d.ts CHANGED
@@ -388,7 +388,6 @@ export interface ResolvedConfiguration {
388
388
  path: PathConfiguration;
389
389
  performanceHints: BaseWebpackConfiguration['performance'];
390
390
  plugins: Array<PluginConfiguration>;
391
- showConfiguration: boolean;
392
391
  stylelint: PlainObject;
393
392
  targetTechnology: {
394
393
  boilerplate: string;
@@ -35,7 +35,7 @@ var _configurator = _interopRequireDefault(require("./configurator"));
35
35
  var _helper = require("./helper");
36
36
  var _InPlaceAssetsIntoHTML = _interopRequireDefault(require("./plugins/InPlaceAssetsIntoHTML"));
37
37
  var _HTMLTransformation = _interopRequireDefault(require("./plugins/HTMLTransformation"));
38
- var _optionalRequire, _configuration$cache$, _configuration$cache, _configuration$cache2, _configuration$cache3;
38
+ var _process$env$NODE_ENV, _optionalRequire, _configuration$cache$, _configuration$cache, _configuration$cache2, _configuration$cache3;
39
39
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
40
40
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
41
41
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -44,6 +44,9 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
44
44
  var log = exports.log = new _clientnode.Logger({
45
45
  name: 'weboptimizer-webpack-configurator-logger'
46
46
  });
47
+ _clientnode.Logger.configureAllInstances({
48
+ level: ['debug', 'development'].includes((_process$env$NODE_ENV = process.env.NODE_ENV) !== null && _process$env$NODE_ENV !== void 0 ? _process$env$NODE_ENV : '') ? 'debug' : 'warn'
49
+ });
47
50
  /// region optional imports
48
51
  // NOTE: Has to be defined here to ensure to resolve from here.
49
52
  var currentRequire =
@@ -84,6 +87,9 @@ for (var _i = 0, _Object$entries = Object.entries(pluginNameResourceMapping); _i
84
87
  }
85
88
  // endregion
86
89
  var configuration = (0, _configurator["default"])();
90
+ _clientnode.Logger.configureAllInstances({
91
+ level: configuration.debug ? 'debug' : 'warn'
92
+ });
87
93
  var _module = configuration.module;
88
94
  // region initialisation
89
95
  /// region determine library name
@@ -1156,14 +1162,13 @@ if (configuration.path.configuration.javaScript) try {
1156
1162
  } catch (_unused3) {
1157
1163
  log.debug('Optional configuration file script', "\"".concat(configuration.path.configuration.javaScript, "\" not available."));
1158
1164
  }
1159
- if (configuration.showConfiguration) {
1160
- log.info('Using internal configuration:', _util["default"].inspect(configuration, {
1161
- depth: null
1162
- }));
1163
- log.info('-----------------------------------------------------------');
1164
- log.info('Using webpack configuration:', _util["default"].inspect(webpackConfiguration, {
1165
- depth: null
1166
- }));
1167
- }
1165
+ log.debug('Using internal configuration:', _util["default"].inspect(configuration, {
1166
+ depth: null
1167
+ }));
1168
+ log.debug('-----------------------------------------------------------');
1169
+ log.debug('Using webpack configuration:', _util["default"].inspect(webpackConfiguration, {
1170
+ depth: null
1171
+ }));
1172
+
1168
1173
  // endregion
1169
1174
  var _default = exports["default"] = webpackConfiguration;