rsnext/test/e2e/app-dir/rsc-basic
Jiachi Liu 6352257dd3
Alias next/dynamic to lazy impl for appDir (#41216)
Since `next/dynamic` has client hooks that not compatible with server
components, and app renderer doesn't provide context (such as
`LoadableContext`) for it to use. Previously we provided a simple
replacement using `React.lazy` for `next/dynamic` if you want to use it
in appDir.

This PR always alias it to the `React.lazy ` implementation for appDir
so that user won't need to worry about the dynamic options. They can
only use `dynamic()` without 2nd options arg

```js
import dynamic from 'next/dynamic'

const Dynamic = dynamic(() => import('./dynamic-component'))
```
2022-10-06 17:41:27 +02:00
..
app Alias next/dynamic to lazy impl for appDir (#41216) 2022-10-06 17:41:27 +02:00
components Alias next/dynamic to lazy impl for appDir (#41216) 2022-10-06 17:41:27 +02:00
public Migrate rsc integration tests to e2e tests (#38460) 2022-07-09 14:02:30 +02:00
next.config.js Improve experimental feature naming (#41060) 2022-09-30 13:15:56 +00:00