Turbopack: allow specified AssetIdents for naming chunk groups (#68917)
Previously, in a number of situations, we would implicitly use the entry
module’s ident to name the chunk group. This adds the ability to specify
a different name.
Now, for evaluated chunk groups for pages, we use the page source’s
ident. This prevents changes in loader chunk groups from changing the
chunk name, which breaks HMR.
We still use the entry module’s ident for most other cases now, but it
is now explicitly provided.
Test Plan: `TURBOPACK=1 pnpm test-dev
test/development/acceptance/ReactRefreshModule.test.ts` with #68698
applied
---------
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>