rsnext/packages/next/build/webpack
Shu Ding 6bc7c4d9c2
Optimize the web server size (#34242)
Related to #34185, this PR reduces the size of chunk that contains web-server.ts from 1.14mb to 210.8kb, by splitting base-http and api-utils into different environments.

Only affected thing is we can't have SSG preview mode for the web runtime via `getStaticProps`.

## 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`
2022-02-11 19:56:25 +00:00
..
config Deprecate concurrentFeatures with runtime (#34068) 2022-02-08 14:16:46 +01:00
loaders Optimize the web server size (#34242) 2022-02-11 19:56:25 +00:00
plugins feat: copy .env file in standalone mode (#34143) 2022-02-10 17:48:14 +00:00
require-hook.ts Pre-compile more dependencies (#32742) 2022-01-17 15:17:22 +00:00
stringify-request.ts Update loader-utils (#30743) 2021-11-02 16:13:15 +01:00