d14da39fd6
### Changes #### Feature * Adopt `React.lazy` into `next/dynamic`, enable it when `options.suspense` is `true` * Support `next/dynamic` with `suspense=true` in SSR and SSG #### Tests | Scenario | Case | Behavior | |:----:|:----:|:----:| | basics | react 17 or 18 by default | dev/build error or pass | | blocking rendering | `reactRoot: true` + `concurrentFeatures: false` | dev/build pass | | concurrent rendering | `reactRoot: true` + `concurrentFeatures: true` | dev/build pass | ## Feature - [x] 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` - [x] 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`
12 lines
265 B
JSON
12 lines
265 B
JSON
{
|
|
"scripts": {
|
|
"next": "node -r ../test/require-hook.js ../../../../packages/next/dist/bin/next",
|
|
"dev": "yarn next dev",
|
|
"build": "yarn next build",
|
|
"start": "yarn next start"
|
|
},
|
|
"dependencies": {
|
|
"react": "*",
|
|
"react-dom": "*"
|
|
}
|
|
}
|