@plaudit/webpack-extensions 2.74.0 → 2.75.0

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.
@@ -121,7 +121,7 @@ function resolveEntryFromDirectory(commonConfig, srcRoot, dest) {
121
121
  return async () => {
122
122
  const loadingEntrypoints = [];
123
123
  for await (const dirent of await promises_1.default.opendir(srcRoot)) {
124
- if (!dirent.isDirectory()) {
124
+ if (!dirent.isDirectory() || dirent.name.startsWith("~")) {
125
125
  continue;
126
126
  }
127
127
  const dir = joinPossiblyAbsolutePaths(srcRoot, dirent.name);
@@ -155,10 +155,9 @@ function resolveEntryFromDirectory(commonConfig, srcRoot, dest) {
155
155
  });
156
156
  }))).filter(pe => pe !== undefined);
157
157
  const entrypointNamesWithEffectiveDuplicates = presentEntrypoints
158
- .map(entry => entry.entrypointName)
159
- .reduce((a, dest) => {
158
+ .reduce((a, entry) => {
160
159
  // If it's undefined, then this is the first instance, otherwise, it's not the first instance and, therefore, is expected to be a duplicate
161
- a[dest] = (a[dest] !== undefined);
160
+ a[entry.entrypointName] = (a[entry.entrypointName] !== undefined);
162
161
  return a;
163
162
  }, {});
164
163
  const handlePrefix = blockJson['name']?.toString() ?? `__UNKNOWN_PREFIX__/${dirent.name}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.74.0",
3
+ "version": "2.75.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "/build"
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "devDependencies": {
23
- "@plaudit/gutenberg-api-extensions": "^2.80.0",
23
+ "@plaudit/gutenberg-api-extensions": "^2.80.1",
24
24
  "@types/browser-sync-webpack-plugin": "^2.2.5",
25
25
  "@types/node": "^24.10.1",
26
26
  "@types/postcss-functions": "^4.0.4",