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.
- package/lib/plugins/index.cjs +1 -1
- package/lib/plugins/index.mjs +1 -1
- package/package.json +1 -1
package/lib/plugins/index.cjs
CHANGED
|
@@ -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);
|
package/lib/plugins/index.mjs
CHANGED
|
@@ -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);
|