rsnext/packages/next/build
Tim Neutkens 2473280f41
Fix reloading Client Component require.cache (#38633)
@delbaoliveira caught an issue where if you edit a client component multiple times it would cause a hydration error when reloading. Root cause of this was that the `require.cache` entry for `.__sc_client__` did not get removed, which this PR fixes.



## 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 `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
2022-07-14 10:01:29 +00:00
..
analysis [build] validate the exported config values (#38370) 2022-07-06 11:06:57 +00:00
babel Reexports styled-jsx JSXStyle in nextjs (#36585) 2022-04-30 20:25:05 +00:00
jest Eagerly load swc bindings for wasm fallback for jest (#36784) 2022-05-12 09:15:27 +00:00
output feat(next/swc): setup native next-swc crash reporter with platform supports (#38221) 2022-07-07 17:37:50 +00:00
polyfills Fix global process testing for the process polyfill (#33220) 2022-01-13 16:44:55 +00:00
swc fix(next/build): disable next-swc crash reporting temporarily (#38472) 2022-07-09 10:32:10 +02:00
webpack Fix reloading Client Component require.cache (#38633) 2022-07-14 10:01:29 +00:00
compiler.ts Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
cssnano-simple.js Pre-compile more dependencies (#32627) 2021-12-20 14:01:35 +01:00
entries.ts Rename todos (#38560) 2022-07-12 16:32:27 +00:00
generate-build-id.ts Fix generateBuildId type that can be async function (#28040) 2021-08-12 22:26:44 +00:00
index.ts Add app-path-routes manifest (#38420) 2022-07-07 20:42:44 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
load-jsconfig.ts Skip loading unused plugins in next dev (#37430) 2022-06-03 14:47:16 -04:00
spinner.ts [Feature] Progress bar for static build (#15297) 2020-08-04 09:58:23 +02:00
utils.ts feat: build edge functions with node.js modules and fail at runtime (#38234) 2022-07-06 20:54:44 +00:00
webpack-config.ts Ensure .client.tsx/.ts/.jsx Client Components can be imported (#38591) 2022-07-13 14:43:37 +02:00
worker.ts use a shared worker pool for collecting page data and static page generation (#27924) 2021-08-12 19:54:49 +00:00
write-build-id.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00