weboptimizer 4.0.67 → 4.0.69

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.
Files changed (2) hide show
  1. package/configurator.js +8 -1
  2. package/package.json +2 -1
package/configurator.js CHANGED
@@ -17,6 +17,7 @@
17
17
  */
18
18
  // region imports
19
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
+ import fileSystemSynchronous from 'fs';
20
21
  import fileSystem, { lstat, readFile, unlink } from 'fs/promises';
21
22
  import path, { basename, dirname, join, resolve } from 'path';
22
23
  import { determineAssetType, determineModuleFilePath, determineModuleLocations, resolveAutoInjection, resolveBuildConfigurationFilePaths, resolveModulesInFolders, normalizeGivenInjection, normalizePaths } from "./helper.js";
@@ -200,7 +201,13 @@ environment = eval('process.env')) => {
200
201
  nowUTCTimestamp: getUTCTimestamp(now)
201
202
  }
202
203
  };
203
- const resolvedConfiguration = await evaluateAsyncDynamicData(evaluateDynamicData(configuration, evaluationOptions), evaluationOptions);
204
+ const resolvedConfiguration = await evaluateAsyncDynamicData(evaluateDynamicData(configuration, {
205
+ ...evaluationOptions,
206
+ scope: {
207
+ ...evaluationOptions.scope,
208
+ fs: fileSystemSynchronous
209
+ }
210
+ }), evaluationOptions);
204
211
  // endregion
205
212
  // region consolidate file specific build configuration
206
213
  // Apply default file level build configurations to all file type specific
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.67",
3
+ "version": "4.0.69",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -653,6 +653,7 @@
653
653
  "file": {
654
654
  "alias": {
655
655
  ".js": [
656
+ ".ejs",
656
657
  ".js",
657
658
  ".ts",
658
659
  ".tsx",