rsnext/packages/next/client/dev
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
..
error-overlay Alias next public api to esm on edge runtime (#42709) 2022-11-09 19:20:32 -08:00
amp-dev.js chore: replace deprecated String.prototype.substr() (#35421) 2022-03-24 17:49:38 -04:00
dev-build-watcher.js Fix build activity indicator position (#36208) 2022-04-15 23:53:00 -05:00
fouc.ts fix: ensure hidden iframe apps render in development mode (#39514) 2022-08-11 16:22:19 -05:00
on-demand-entries-client.js Ensure we don't poll page in development when notFound: true is returned (#34352) 2022-02-16 18:53:48 +00:00
webpack-hot-middleware-client.js Add client HMR tracing for debugging (#36328) 2022-04-21 08:30:23 +00:00