@plumeria/unplugin 18.3.12 → 18.3.13

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/dist/core.js CHANGED
@@ -1278,14 +1278,16 @@ const unpluginFactory = (options = {}, unpluginMeta) => {
1278
1278
  ? scannedTables.componentPropsTable?.[`${resourcePath}-${owner}`]?.[varName]
1279
1279
  : undefined;
1280
1280
  if (!possibilities) {
1281
+ const candidates = [];
1281
1282
  for (const key of Object.keys(scannedTables.componentPropsTable || {})) {
1282
1283
  if (!key.startsWith(`${resourcePath}-`))
1283
1284
  continue;
1284
- if (scannedTables.componentPropsTable?.[key]?.[varName]) {
1285
- possibilities = scannedTables.componentPropsTable[key][varName];
1286
- break;
1287
- }
1285
+ const entries = scannedTables.componentPropsTable?.[key]?.[varName];
1286
+ if (entries)
1287
+ candidates.push(...entries);
1288
1288
  }
1289
+ if (candidates.length > 0)
1290
+ possibilities = candidates;
1289
1291
  }
1290
1292
  if (!possibilities || possibilities.length === 0)
1291
1293
  return false;
package/dist/core.mjs CHANGED
@@ -1242,14 +1242,16 @@ export const unpluginFactory = (options = {}, unpluginMeta) => {
1242
1242
  ? scannedTables.componentPropsTable?.[`${resourcePath}-${owner}`]?.[varName]
1243
1243
  : undefined;
1244
1244
  if (!possibilities) {
1245
+ const candidates = [];
1245
1246
  for (const key of Object.keys(scannedTables.componentPropsTable || {})) {
1246
1247
  if (!key.startsWith(`${resourcePath}-`))
1247
1248
  continue;
1248
- if (scannedTables.componentPropsTable?.[key]?.[varName]) {
1249
- possibilities = scannedTables.componentPropsTable[key][varName];
1250
- break;
1251
- }
1249
+ const entries = scannedTables.componentPropsTable?.[key]?.[varName];
1250
+ if (entries)
1251
+ candidates.push(...entries);
1252
1252
  }
1253
+ if (candidates.length > 0)
1254
+ possibilities = candidates;
1253
1255
  }
1254
1256
  if (!possibilities || possibilities.length === 0)
1255
1257
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/unplugin",
3
- "version": "18.3.12",
3
+ "version": "18.3.13",
4
4
  "description": "Universal Plumeria plugin for various build tools",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -94,7 +94,7 @@
94
94
  "dependencies": {
95
95
  "@rollup/pluginutils": "^5.4.0",
96
96
  "unplugin": "^3.0.0",
97
- "@plumeria/utils": "^18.3.12"
97
+ "@plumeria/utils": "^18.3.13"
98
98
  },
99
99
  "devDependencies": {
100
100
  "@swc/core": "1.15.47",