### Link to reproduction _No response_ ### Payload Version 3.0.0-beta.36 ### Node Version 20.10 ### Next.js Version 15.0.0-rc.0 ### Describe the Bug When using dynamically imported components in the demo, the amount of JS downloaded when entering the page increases from ~400 kB to 670 kB. Code changes: https://github.com/MarcinRapacz/payload-demo-3.0.0-beta.36/commit/979b74c7fceb7e6d3db1816907d730261a05eb0f It looks like an additional chunk is being downloaded, which seems to be JS from Payload. Demo: <img width="520" alt="image" src="https://github.com/payloadcms/payload/assets/43354271/07d31d3f-b217-4edf-a272-0554346661ca"> After: <img width="520" alt="image" src="https://github.com/payloadcms/payload/assets/43354271/1bdc11a8-39da-4c65-ac57-dde7f0a23990"> ### Reproduction Steps 1. Compare the production version of the demo with the production version with the changes. 2. Run pnpm build 3. Run pnpm start ### Adapters and Plugins _No response_
Activity
MarcinRapacz commentedon Jun 9, 2024
Here's another example, but instead of using dynamic imports, I use 'use client' in one of the components.
MarcinRapacz/payload-demo-3.0.0-beta.36@06c47ed
jmikrut commentedon Jun 10, 2024
Hey @MarcinRapacz — this is being tracked here:
vercel/next.js#65415
Hopefully we will have a fix for this one way or another shortly. Keep an eye out on that PR!
feat!: component paths (#7246)
AlessioGr commentedon Aug 13, 2024
This has been fixed by #7620
github-actions commentedon Sep 6, 2024
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.