Skip to content

Commit 992c966

Browse files
committed
Fix duplicate Set creation
1 parent b431fef commit 992c966

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.size-limit.mts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ const getAllPackageEntryPoints = async () => {
6464

6565
const packageExports = await collectPackageJsonExports(packageJson.exports)
6666

67-
return [...new Set(packageExports)]
67+
return [...packageExports]
6868
}
6969

7070
/**
7171
* Gets all import configurations for a given entry point.
72-
* This function dynamically imports the specified entry point and generates a size limit configuration
73-
* for each named export found within the module. It includes configurations for named imports,
72+
* This function dynamically imports the specified entry point and
73+
* generates a size limit configuration for each named export found
74+
* within the module. It includes configurations for named imports,
7475
* wildcard imports, and the default import.
7576
*
7677
* @param entryPoint - The entry point to import.

0 commit comments

Comments
 (0)