mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
2072f864fc
As Barrel Optimization might split one file into multiple different modules, i.e. when you import different values from it, the target file might be transformed differently, we can no longer rely on the file path as the identifier of the client reference. This fix adds a suffix (`'@' + this._module.matchResource`) to the identifier so it looks like `/filepath/file.js@__barrel_optimize__?names=Foo`. Here's also a quick diagram to explain:  Closes #59804. Closes NEXT-2108. --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im>