g-ui-web 1.4.41 → 1.4.42

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.
@@ -175,7 +175,7 @@ function componentUsagePlugin(options = {}) {
175
175
  }
176
176
  if (componentsInFile.length > 0) {
177
177
  const relativePath = id.replace(process.cwd(), "");
178
- importStats.fileDetails.set(relativePath, componentsInFile);
178
+ importStats.fileDetails.set(relativePath, [...new Set(componentsInFile)]);
179
179
  }
180
180
  } catch (error) {
181
181
  console.warn(`[component-usage] \u89E3\u6790\u6587\u4EF6\u5931\u8D25: ${id}`, error.message);
@@ -149,7 +149,7 @@ function componentUsagePlugin(options = {}) {
149
149
  }
150
150
  if (componentsInFile.length > 0) {
151
151
  const relativePath = id.replace(process.cwd(), "");
152
- importStats.fileDetails.set(relativePath, componentsInFile);
152
+ importStats.fileDetails.set(relativePath, [...new Set(componentsInFile)]);
153
153
  }
154
154
  } catch (error) {
155
155
  console.warn(`[component-usage] \u89E3\u6790\u6587\u4EF6\u5931\u8D25: ${id}`, error.message);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "g-ui-web",
3
3
  "private": false,
4
4
  "description": "可视化组件库",
5
- "version": "1.4.41",
5
+ "version": "1.4.42",
6
6
  "author": "wyu",
7
7
  "license": "MIT",
8
8
  "type": "module",