[X] This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
After updating Gatsby from 4.4.0 to 4.5.0, the bundle split per page functionality stopped working. We use the createPages API to create pages dynamically. We expected each page to have its own bundle, but now it appears that the entire app is bundled together when running gatsby build.
Preliminary Checks
Description
After updating Gatsby from 4.4.0 to 4.5.0, the bundle split per page functionality stopped working. We use the
createPages
API to create pages dynamically. We expected each page to have its own bundle, but now it appears that the entire app is bundled together when runninggatsby build
.Reproduction Link
https://github.com/HoneyBook/gatsby-minimal-reproduction
Steps to Reproduce
npm install
npm run build
Expected Result
Each page should have its own bundle as it did in Gatsby 4.4.0.
Actual Result
The entire app is bundled together, and bundle splitting per page is not working in the build output.
Environment
Config Flags
No response