weboptimizer 4.0.30 → 4.0.31
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.d.ts +1 -2
- package/configurator.d.ts +1 -2
- package/configurator.js +2 -2
- package/ejsLoader.d.ts +1 -2
- package/helper.d.ts +1 -2
- package/index.d.ts +1 -2
- package/index.js +2 -2
- package/package.json +3 -3
- package/stylelintConfigurator.d.ts +1 -1
- package/webpackConfigurator.d.ts +1 -2
- package/webpackConfigurator.js +2 -2
package/browser.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Browser, InitializedBrowser } from './type';
|
|
2
|
-
import { Logger } from 'clientnode';
|
|
3
2
|
export declare const browser: Browser;
|
|
4
|
-
export declare const log:
|
|
3
|
+
export declare const log: any;
|
|
5
4
|
/**
|
|
6
5
|
* Provides a generic browser api in node or web contexts.
|
|
7
6
|
* @param replaceWindow - Indicates whether a potential existing window object
|
package/configurator.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ResolvedConfiguration } from './type';
|
|
2
|
-
import { Logger } from 'clientnode';
|
|
3
2
|
export declare let loadedConfiguration: null | ResolvedConfiguration;
|
|
4
|
-
export declare const log:
|
|
3
|
+
export declare const log: any;
|
|
5
4
|
/**
|
|
6
5
|
* Main entry point to determine current configuration.
|
|
7
6
|
* @param context - Location from where to build current application.
|
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/ejsLoader.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { Encoding, Mapping } from 'clientnode';
|
|
|
2
2
|
import type { Options, AsyncTemplateFunction as EJSAsyncTemplateFunction } from 'ejs';
|
|
3
3
|
import type { LoaderContext } from 'webpack';
|
|
4
4
|
import type { Extensions, Replacements } from './type';
|
|
5
|
-
import { Logger } from 'clientnode';
|
|
6
5
|
export type TemplateFunction = EJSAsyncTemplateFunction;
|
|
7
6
|
export type CompilerOptions = Options & {
|
|
8
7
|
encoding: Encoding;
|
|
@@ -25,7 +24,7 @@ export type LoaderConfiguration = Mapping<unknown> & {
|
|
|
25
24
|
replacements: Replacements;
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
|
-
export declare const log:
|
|
27
|
+
export declare const log: any;
|
|
29
28
|
/**
|
|
30
29
|
* Main transformation function.
|
|
31
30
|
* @param source - Input string to transform.
|
package/helper.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Encoding, Mapping } from 'clientnode';
|
|
2
2
|
import type { BuildConfiguration, Extensions, GivenInjection, GivenInjectionConfiguration, NormalizedGivenInjection, PathConfiguration, PackageDescriptor, Replacements, ResolvedBuildConfiguration, SpecificExtensions } from './type';
|
|
3
|
-
import { Logger } from 'clientnode';
|
|
4
3
|
export declare const KNOWN_FILE_EXTENSIONS: Array<string>;
|
|
5
|
-
export declare const log:
|
|
4
|
+
export declare const log: any;
|
|
6
5
|
/**
|
|
7
6
|
* Determines whether given file path is within given list of file locations.
|
|
8
7
|
* @param filePath - Path to file to check.
|
package/index.d.ts
CHANGED
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.31",
|
|
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.1460",
|
|
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",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: PlainObject;
|
|
2
2
|
export default _default;
|
package/webpackConfigurator.d.ts
CHANGED
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;
|