rsnext/packages/next/client/dev/error-overlay
Jiachi Liu 3174c730b8
Alias next public api to esm on edge runtime (#42709)
Cases like `next/link` and `next/router` imports are not alias since
they're not matching the existing alias pattern setting for edge
runtime, which causes router-context being bundled twice (both with cjs
and esm) into edge worker bundle.
so we resolve their paths and alias them to esm bundle for webpack
bundling.

Other minor changes:

* update `require` calls to `import` expressions in edge ssr loaders
* remove client layer for apps without `appDir` enabled
* export `type` for ts typings in next/image to avoid alias to break
resolving

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`
2022-11-09 19:20:32 -08:00
..
format-webpack-messages.d.ts improve production error message printing (#30065) 2021-10-20 18:23:44 -05:00
format-webpack-messages.js Improve error messages of server compilation (#41136) 2022-10-03 20:19:25 +00:00
hot-dev-client.js Alias next public api to esm on edge runtime (#42709) 2022-11-09 19:20:32 -08:00
websocket.ts Enable @typescript-eslint/no-use-before-define for functions (#39602) 2022-08-15 10:29:51 -04:00