weboptimizer 4.0.9 → 4.0.10

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/browser.js CHANGED
@@ -16,7 +16,6 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import "core-js/modules/es.array.push.js";
20
19
  import { CONSOLE_METHODS, Logger, timeout } from 'clientnode';
21
20
  // endregion
22
21
  // region declaration
package/configurator.js CHANGED
@@ -73,11 +73,6 @@ const _rewrite = (specifier, options) => {
73
73
  "appendExtension": ".js",
74
74
  "recognizedExtensions": [".js", ".jsx", ".d.ts", ".ts", ".tsx", ".json"]
75
75
  };
76
- import "core-js/modules/es.iterator.constructor.js";
77
- import "core-js/modules/es.iterator.filter.js";
78
- import "core-js/modules/es.iterator.map.js";
79
- import "core-js/modules/es.iterator.some.js";
80
- import "core-js/modules/es.json.parse.js";
81
76
  import { convertCircularObjectToJSON, copy, evaluateAsyncDynamicData, evaluateDynamicData, extend, getUTCTimestamp, importsPromise, isFileSync, isObject, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, modifyObject, optionalImport, parseEncodedObject, removeKeyPrefixes, UTILITY_SCOPE } from 'clientnode';
82
77
  import fileSystem, { lstatSync, readFileSync, unlinkSync } from 'fs';
83
78
  import { createRequire } from 'node:module';
package/eslint.config.mjs CHANGED
@@ -1,7 +1,3 @@
1
- import "core-js/modules/es.iterator.constructor.js";
2
- import "core-js/modules/es.iterator.filter.js";
3
- import "core-js/modules/es.iterator.reduce.js";
4
- import "core-js/modules/es.json.parse.js";
5
1
  import { defineConfig } from 'eslint/config';
6
2
  import google from 'eslint-config-google';
7
3
  import jsdoc from 'eslint-plugin-jsdoc';
package/helper.js CHANGED
@@ -16,17 +16,6 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import "core-js/modules/es.array.push.js";
20
- import "core-js/modules/es.iterator.constructor.js";
21
- import "core-js/modules/es.iterator.map.js";
22
- import "core-js/modules/es.json.parse.js";
23
- import "core-js/modules/es.set.difference.v2.js";
24
- import "core-js/modules/es.set.intersection.v2.js";
25
- import "core-js/modules/es.set.is-disjoint-from.v2.js";
26
- import "core-js/modules/es.set.is-subset-of.v2.js";
27
- import "core-js/modules/es.set.is-superset-of.v2.js";
28
- import "core-js/modules/es.set.symmetric-difference.v2.js";
29
- import "core-js/modules/es.set.union.v2.js";
30
19
  import { copy, escapeRegularExpressions, extend, isAnyMatching, isDirectorySync, isFileSync, isPlainObject, Logger, represent, walkDirectoryRecursivelySync } from 'clientnode';
31
20
  import { existsSync, readFileSync } from 'fs';
32
21
  import { basename, dirname, extname, join, normalize, resolve, sep, relative } from 'path';
package/index.js CHANGED
@@ -18,11 +18,6 @@
18
18
  endregion
19
19
  */
20
20
  // region imports
21
- import "core-js/modules/es.array.push.js";
22
- import "core-js/modules/es.iterator.constructor.js";
23
- import "core-js/modules/es.iterator.filter.js";
24
- import "core-js/modules/es.iterator.map.js";
25
- import "core-js/modules/es.json.stringify.js";
26
21
  import { exec as execChildProcess, spawn as spawnChildProcess } from 'child_process';
27
22
  import { CLOSE_EVENT_NAMES, copyDirectoryRecursiveSync, copyFileSync, evaluate, getProcessCloseHandler, handleChildProcess, importsPromise, isDirectory, isDirectorySync, isFile, isFileSync, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, parseEncodedObject, walkDirectoryRecursively } from 'clientnode';
28
23
  import { chmodSync, unlinkSync } from 'fs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -1177,6 +1177,9 @@
1177
1177
  "__evaluate__": "!self.debug"
1178
1178
  },
1179
1179
  "plugins": [
1180
+ [
1181
+ "@babel/plugin-transform-class-properties"
1182
+ ],
1180
1183
  [
1181
1184
  "@babel/plugin-proposal-decorators",
1182
1185
  {
@@ -1184,7 +1187,21 @@
1184
1187
  }
1185
1188
  ],
1186
1189
  [
1187
- "babel-plugin-polyfill-corejs3",
1190
+ "babel-plugin-transform-rewrite-imports",
1191
+ {
1192
+ "appendExtension": ".js",
1193
+ "recognizedExtensions": [
1194
+ ".js",
1195
+ ".jsx",
1196
+ ".d.ts",
1197
+ ".ts",
1198
+ ".tsx",
1199
+ ".json"
1200
+ ]
1201
+ }
1202
+ ],
1203
+ [
1204
+ "polyfill-corejs3",
1188
1205
  {
1189
1206
  "method": "usage-global"
1190
1207
  }
@@ -16,7 +16,6 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import "core-js/modules/es.array.push.js";
20
19
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
21
20
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
22
21
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -16,10 +16,6 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import "core-js/modules/es.array.push.js";
20
- import "core-js/modules/es.iterator.constructor.js";
21
- import "core-js/modules/es.iterator.map.js";
22
- import "core-js/modules/es.iterator.some.js";
23
19
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
24
20
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
25
21
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -16,10 +16,6 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import "core-js/modules/es.array.push.js";
20
- import "core-js/modules/es.iterator.constructor.js";
21
- import "core-js/modules/es.iterator.filter.js";
22
- import "core-js/modules/es.iterator.map.js";
23
19
  import { convertToValidVariableName, evaluate, escapeRegularExpressions, extend, importsPromise, isFileSync, isObject, isPlainObject, Logger, mask, optionalImport, represent, UTILITY_SCOPE } from 'clientnode';
24
20
  import { extname, join, relative, resolve } from 'path';
25
21
  import util from 'util';
@@ -358,8 +354,7 @@ const scope = {
358
354
  ...UTILITY_SCOPE,
359
355
  configuration,
360
356
  isFilePathInDependencies,
361
- loader,
362
- require
357
+ loader
363
358
  };
364
359
  const evaluateAndThrow = (object, givenOptions = {}) => {
365
360
  const options = {