Follow-up to #66, found while verifying #567 against the unchanged transpiler corpus at Bun source pin 4982b91e3702094330f3be3883354c52b8c01323.
The unchanged bundler/transpiler/transpiler.test.js case Bun.Transpiler > scan > reports all export names expects ["action", "default", "loader"]. Native Home returned the underlying hash-map iteration order beginning with "loader", so the case failed before its import assertions. Installed Bun 1.3.14 and the pinned Zig implementation sort the named-export map by its string keys before producing the JavaScript array.
Port that actual sorting step in namedExportsToJS. Verify the unchanged pinned assertion plus repeated standalone scans, including declarations whose source order differs from lexical order. Do not special-case these names or sort the JavaScript result after conversion.
This is independent of the async diagnostic/placeholder-AST crash in #567 and parser stack exhaustion in #574.