rsnext/packages
Shu Ding 1827f36e5e
Fix chunk file names in flight manifest (#48583)
This PR corrects the file names of chunks in the flight manifest.
Previously we assume that the chunk file is always named as
`(requiredChunk.name || requiredChunk.id) + '-' + requiredChunk.hash`
and located in `static/chunks`. This isn't always true (see the comment)
especially when a chunk was generated via `import()`. Another mistake
was that we assume that one chunk only generates one file, but it's
actually possible that it depends on multiple files.

This should address many of the "Chunk failed to load" errors.

Closes [#47173](https://github.com/vercel/next.js/issues/47173), fixes
NEXT-847
fix #47173
2023-04-19 18:11:47 +00:00
..
create-next-app docs: fix minimum Node.js version to 14.18.0 (#48545) 2023-04-19 15:16:37 +00:00
eslint-config-next v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
eslint-plugin-next v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
font v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next Fix chunk file names in flight manifest (#48583) 2023-04-19 18:11:47 +00:00
next-bundle-analyzer v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-codemod v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-env v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-mdx v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-plugin-storybook v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-polyfill-module v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-polyfill-nomodule v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
next-swc prettier fix for next-swc (#47873) 2023-04-19 19:44:27 +02:00
react-dev-overlay v13.3.1-canary.15 2023-04-19 14:25:33 +00:00
react-refresh-utils v13.3.1-canary.15 2023-04-19 14:25:33 +00:00