rsnext/test
pacexy 0bad7143d7
Fix webpack HMR for pages on the edge runtime (#60881)
This fixes the issue that build error is not cleared correctly during
`next dev` even if the build succeeds, and we have to re-run `next dev`
to make it work.

It appears only when:

1. page runtime is `edge`
2. use webpack hot reloader
3. import components in the `edge` page

Reproduction:
https://github.com/pacexy/nextjs-edge-webpack-hmr-reproduction

I recorded a screenshot to make it easier to understand:


https://github.com/vercel/next.js/assets/32255488/0ddc21bf-2ea7-49ce-b682-c89dea757c61

Closes NEXT-2168

---------

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2024-03-11 16:53:04 +01:00
..
.stats-app chore: update pnpm version from 8.15.1 to 8.15.4 (#62979) 2024-03-07 09:22:45 +00:00
development Fix webpack HMR for pages on the edge runtime (#60881) 2024-03-11 16:53:04 +01:00
e2e ignore fully dynamic requests on server side (#62949) 2024-03-11 08:41:33 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration chore(test): add test for next/image in node_modules with app router (#63139) 2024-03-11 16:38:57 +01:00
lib Turbopack: sass support (#62717) 2024-03-04 11:56:55 +00:00
production [PPR] Support rewrites in middleware (#63071) 2024-03-11 09:05:26 -06:00
unit feat(eslint): enhance no-unwanted-polyfill w/ new endpoints (#62719) 2024-03-06 16:42:53 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
build-turbopack-tests-manifest.js tests are no longer flaky (#62278) 2024-02-20 14:44:11 +01:00
get-test-filter.js run tests from test suite that are not listed in the manifest (#58401) 2024-01-11 07:38:35 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json Renew prefetch cache entry after update from server (#61573) 2024-02-20 09:07:18 -08:00
readme.md
test-file.txt
tsconfig.json chore: extends from shared base tsconfig (#59776) 2023-12-19 18:52:22 +01:00
turbopack-tests-manifest.json build(cargo): bump up turbopack (#63073) 2024-03-09 01:29:21 +00:00

See Testing for more information on how you can run/write/debug tests for Next.js.