rsnext/test/integration/chunking
Jiachi Liu d14da39fd6
Support suspense in next dynamic (#27611)
### 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`
2021-08-13 21:08:45 +00:00
..
components Tweaks and test for library chunks fixes (#8482) 2019-08-23 10:28:48 -04:00
pages Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
test Support suspense in next dynamic (#27611) 2021-08-13 21:08:45 +00:00
next.config.js Remove buildId from server-side files (#14413) 2020-06-22 21:12:36 +00:00