@plaudit/webpack-extensions 2.42.4 → 2.42.5

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.
@@ -391,13 +391,15 @@ function processIndividualWebpackConfig(config, webpackConfig, sources) {
391
391
  }
392
392
  }
393
393
  }
394
- try {
395
- const wpmlFilePath = node_path_1.default.join(dir, "wpml-config.xml");
396
- await promises_1.default.access(wpmlFilePath);
397
- wpmlFiles.push(wpmlFilePath);
398
- }
399
- catch (e) {
400
- // This just means that the file doesn't exist
394
+ if (!processingModules) {
395
+ try {
396
+ const wpmlFilePath = node_path_1.default.join(dir, "wpml-config.xml");
397
+ await promises_1.default.access(wpmlFilePath);
398
+ wpmlFiles.push(wpmlFilePath);
399
+ }
400
+ catch (e) {
401
+ // This just means that the file doesn't exist
402
+ }
401
403
  }
402
404
  resolve([rawEntrypoints, wpmlFiles]);
403
405
  }));
@@ -422,14 +424,16 @@ function processIndividualWebpackConfig(config, webpackConfig, sources) {
422
424
  BlockJSONManagingPlugin_1.default.recordRawDependency(entry.lazyDependent, key);
423
425
  }
424
426
  }
425
- const wpmlEntrypointFiles = allEntrypoints.flatMap(e => e[1]);
426
- try {
427
- await promises_1.default.access(node_path_1.default.join(srcRoot, "wpml-config.xml"));
428
- currentEntry["wpml-config.xml"] = { import: [node_path_1.default.join(srcRoot, "wpml-config.xml"), ...wpmlEntrypointFiles] };
429
- }
430
- catch (e) {
431
- if (wpmlEntrypointFiles.length) {
432
- currentEntry["wpml-config.xml"] = { import: wpmlEntrypointFiles };
427
+ if (!processingModules) {
428
+ const wpmlEntrypointFiles = allEntrypoints.flatMap(e => e[1]);
429
+ try {
430
+ await promises_1.default.access(node_path_1.default.join(srcRoot, "wpml-config.xml"));
431
+ currentEntry["wpml-config.xml"] = { import: [node_path_1.default.join(srcRoot, "wpml-config.xml"), ...wpmlEntrypointFiles] };
432
+ }
433
+ catch (e) {
434
+ if (wpmlEntrypointFiles.length) {
435
+ currentEntry["wpml-config.xml"] = { import: wpmlEntrypointFiles };
436
+ }
433
437
  }
434
438
  }
435
439
  return currentEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.42.4",
3
+ "version": "2.42.5",
4
4
  "license": "UNLICENSED",
5
5
  "scripts": {
6
6
  "prepublishOnly": "rm -rf build && mkdir build && tsc",