Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure App Router and Pages Router modules can't share chunks (vercel…
…#50327) ## What? Ensures the name of the chunk is not the same between two modules in different layers. E.g. if you import 'button-library' in App Router and Pages Router we don't want these to be bundled in the same chunk as they're never used on the same page. ## How? Added the layer to the chunk name hash generation in splitChunks. Ensures the two modules don't have the same chunk name generated, as discussed with @sokra. Follow-up to vercel#50324
- Loading branch information