rsnext/packages/next/client
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
..
dev Fix: Cleaner error message when importing sass without it being installed in dev (#35051) 2022-05-22 06:56:18 +00:00
portal Use SWC to compile Next.js core server files (#27167) 2021-07-14 18:12:04 +00:00
streaming Drop the unstable web vital hook and remove exports of flush effects (#36912) 2022-05-14 21:20:24 +00:00
head-manager.ts correctly assess node equality when nonce attribute is present (#27573) 2021-11-10 19:31:32 -06:00
image.tsx should render the correct sizes passed when a noscript is rendered (#37161) 2022-05-24 19:25:05 +00:00
index.tsx Keep custom app as non server component (#37044) 2022-05-20 18:07:20 +00:00
link.tsx Avoid anonymous function in next/link (#37154) 2022-05-24 16:00:22 +00:00
next-dev.js Ensure hydration error doc link is shown with react 18 (#37074) 2022-05-20 19:04:27 +00:00
next.js Split up & tweak next/client initialization (#33838) 2022-03-07 17:09:55 +00:00
normalize-trailing-slash.ts fix basepath trailing slash (#15200) 2020-07-15 23:53:31 +00:00
page-loader.ts Add experimental config for basePath testing (#36843) 2022-05-12 16:47:34 +00:00
performance-relayer.ts Experimental: hook version of reportWebVitals (#28769) 2021-09-24 18:35:33 +00:00
request-idle-callback.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
route-announcer.tsx Fix <RouteAnnouncer/> shouldn't announce initial path under strict mode and React 18 (#34338) 2022-02-14 19:18:39 +00:00
route-loader.ts Route Loader Trusted Types Violation Fix (#34730) 2022-05-03 23:22:08 +00:00
router.ts Custom app for server components (#33149) 2022-01-14 13:01:00 +00:00
script.tsx Adds inline script functionality to next/script for worker and beforeInteractive strategies (#36364) 2022-04-29 15:20:31 +00:00
trusted-types.ts Route Loader Trusted Types Violation Fix (#34730) 2022-05-03 23:22:08 +00:00
use-intersection.tsx fix: reset visible state when src/href changed (#35287) 2022-04-04 14:18:49 -04:00
views-index.tsx Update client router for tests (#36822) 2022-05-12 20:52:59 +00:00
views-next.js Use customized chunk loading implementation (#37163) 2022-05-24 22:04:27 +00:00
with-router.tsx Update to latest babel versions (#28174) 2021-08-17 09:18:08 +02:00