weboptimizer 4.0.30 → 4.0.32
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 +2 -2
- package/index.js +2 -2
- package/package.json +3 -3
- package/webpackConfigurator.js +2 -2
package/configurator.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
import { convertCircularObjectToJSON, copy, evaluateAsyncDynamicData, evaluateDynamicData, extend, getUTCTimestamp,
|
|
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
20
|
import fileSystem, { lstatSync, readFileSync, unlinkSync } from 'fs';
|
|
21
21
|
import path, { basename, dirname, join, resolve } from 'path';
|
|
22
22
|
import { determineAssetType, determineModuleFilePath, determineModuleLocations, resolveAutoInjection, resolveBuildConfigurationFilePaths, resolveModulesInFolders, normalizeGivenInjection, normalizePaths } from "./helper.js";
|
|
@@ -32,7 +32,7 @@ export const log = new Logger({
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
// Wait until optional filesystem modules have been loaded.
|
|
35
|
-
await
|
|
35
|
+
await importFilesystemAPI();
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Main entry point to determine current configuration.
|
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
// region imports
|
|
21
21
|
import { exec as execChildProcess, spawn as spawnChildProcess } from 'child_process';
|
|
22
|
-
import { CLOSE_EVENT_NAMES, copyDirectoryRecursiveSync, copyFileSync, evaluate, getProcessCloseHandler, handleChildProcess,
|
|
22
|
+
import { CLOSE_EVENT_NAMES, copyDirectoryRecursiveSync, copyFileSync, evaluate, getProcessCloseHandler, handleChildProcess, importFilesystemAPI, isDirectory, isDirectorySync, isFile, isFileSync, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, parseEncodedObject, walkDirectoryRecursively } from 'clientnode';
|
|
23
23
|
import { chmodSync, unlinkSync } from 'fs';
|
|
24
24
|
import { writeFile, unlink } from 'fs/promises';
|
|
25
25
|
import globAll from 'glob-all';
|
|
@@ -41,7 +41,7 @@ Logger.configureAllInstances({
|
|
|
41
41
|
process.env.UV_THREADPOOL_SIZE = '128';
|
|
42
42
|
|
|
43
43
|
// Wait until optional filesystem modules have been loaded.
|
|
44
|
-
await
|
|
44
|
+
await importFilesystemAPI();
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Main entry point.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"babel-loader": "^10.1.1",
|
|
95
95
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
96
96
|
"babel-plugin-transform-rewrite-imports": "^1.5.4",
|
|
97
|
-
"clientnode": "4.0.
|
|
97
|
+
"clientnode": "4.0.1464",
|
|
98
98
|
"core-js": "^3.49.0",
|
|
99
99
|
"ejs": "^6.0.1",
|
|
100
100
|
"exports-loader": "^5.0.0",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"mini-css-extract-plugin": "^2.10.2",
|
|
143
143
|
"mkdirp": "^3.0.1",
|
|
144
144
|
"node-fetch": "^3.3.2",
|
|
145
|
-
"postcss": "^8.5.
|
|
145
|
+
"postcss": "^8.5.22",
|
|
146
146
|
"postcss-fontpath": "^1.0.0",
|
|
147
147
|
"postcss-import": "^16.1.1",
|
|
148
148
|
"postcss-loader": "^8.2.1",
|
package/webpackConfigurator.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
import { convertToValidVariableName, evaluate, escapeRegularExpressions, extend,
|
|
19
|
+
import { convertToValidVariableName, evaluate, escapeRegularExpressions, extend, importFilesystemAPI, isFileSync, isObject, isPlainObject, Logger, mask, optionalImport, represent, UTILITY_SCOPE } from 'clientnode';
|
|
20
20
|
import { extname, join, relative, resolve } from 'path';
|
|
21
21
|
import util from 'util';
|
|
22
22
|
import webpack from 'webpack';
|
|
@@ -39,7 +39,7 @@ import InPlaceAssetsIntoHTML from "./plugins/InPlaceAssetsIntoHTML.js";
|
|
|
39
39
|
import HTMLTransformation from "./plugins/HTMLTransformation.js";
|
|
40
40
|
|
|
41
41
|
// Wait until optional filesystem modules have been loaded.
|
|
42
|
-
await
|
|
42
|
+
await importFilesystemAPI();
|
|
43
43
|
|
|
44
44
|
/// region optional imports
|
|
45
45
|
const postcssCSSnano = (await optionalImport('cssnano'))?.default;
|