rsnext/packages
Shu Ding cc254cc19c
Use customized chunk loading implementation (#37163)
Follow-up PR for #37134, this PR adds back the hash in each chunk's filename. This `chunks` in the flight manifest will now be `chunkId:chunkFilename` with this PR, and `globalThis.__next_chunk_load__` then handles the chunk registration (uses chunkId) and chunk loading (uses chunkFilename). (Q: how can we port this to React?)

We can't use `[contenthash]` but only `[chunkhash]` because at the stage of generating the flight manifest, the content isn't finalized and the hash changes after that.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-05-24 22:04:27 +00:00
..
create-next-app v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
eslint-config-next v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
eslint-plugin-next v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next Use customized chunk loading implementation (#37163) 2022-05-24 22:04:27 +00:00
next-bundle-analyzer v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-codemod v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-env v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-mdx v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-plugin-storybook v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-polyfill-module v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-polyfill-nomodule v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
next-swc v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
react-dev-overlay v12.1.7-canary.15 2022-05-24 15:50:04 -05:00
react-refresh-utils v12.1.7-canary.15 2022-05-24 15:50:04 -05:00