Commit c211dbe
fix: sort ConcatenatedModule export keys for deterministic builds (#13425)
Sort exports_map entries by key before rendering the
__webpack_require__.d(exports, {...}) object in ConcatenatedModule.
HashMap iteration order is non-deterministic, causing identical source
to produce different content hashes across builds.
This matches the approach already used in ESMExportInitFragment
(init_fragment.rs:356) where export_map is sorted before rendering.
Closes #13182
Co-authored-by: easonysliu <easonysliu@tencent.com>
Co-authored-by: Claude (claude-opus-4-6) <noreply@anthropic.com>1 parent bc12760 commit c211dbe
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
1632 | 1639 | | |
1633 | 1640 | | |
1634 | 1641 | | |
| |||
0 commit comments