@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
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
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;
|