rsnext/packages/next/build/webpack
Shu Ding feed67ee36
Enable code splitting for the web runtime build (#31090)
When using the web runtime with SSR streaming, this PR significantly improves the build speed for large applications when there're large modules shared by most pages.

With another optimization, `react-dom` will now be excluded in the web runtime build if it's imported in the application. It will only take effect in the client bundle.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] 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`
- [ ] 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`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-11-08 12:41:49 +00:00
..
config Fix code splitting and build target for the server-web build (#30972) 2021-11-05 03:27:02 +00:00
loaders Fix custom 404 page when concurrentFeatures is enabled (#31059) 2021-11-06 11:27:40 +00:00
plugins Enable code splitting for the web runtime build (#31090) 2021-11-08 12:41:49 +00:00
require-hook.ts the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
stringify-request.ts Update loader-utils (#30743) 2021-11-02 16:13:15 +01:00