fix(javascript): preserve exact native export facts (#10059)

fix(javascript): preserve exact native export names and unknown identity
This commit is contained in:
morluto authored and GitHub committed 2026-11-11 17:14:24 +08:00
1 parent 4073cfc932
commit ba4fb6a806
5 files changed
+157 -42

No files matched your search

@@ -106,11 +106,7 @@ const requestedExports = (nodes: readonly ApplicationNode[]): string[] => {
const values = nodes.flatMap((node) =>
node.observations.flatMap((observation) => {
const facts = nativeExportObservationFacts(observation);
return [
...(facts.label === null ? [] : [facts.label]),
...facts.requested,
...facts.members,
];
return [...facts.requested, ...facts.members];
}),
);
return [...new Set(values)].sort(compareUnicodeCodePoints);