next.js
c872c148 - Turbopack: Inline uses of the SliceMap type alias (#87122)

Commit
7 days ago
Turbopack: Inline uses of the SliceMap type alias (#87122) - We (@lukesandberg, @sokra, and myself) discussed this type alias during the team meeting on Thursday and decided the alias wasn't worth it. Apparently I left a comment to the effect when this was first added: https://github.com/vercel/next.js/pull/76053#discussion_r1956639433 - Now that [`FrozenMap`](https://turbopack-rust-docs.vercel.sh/rustdoc/turbo_frozenmap/map/struct.FrozenMap.html) exists, we want people to gravitate towards that type instead of `SliceMap`. - I tried replacing these uses with `FrozenMap` in #87050, but it turns out that we do care a lot about iteration order for these types.
Author
bgw bgw
Parents
Loading