rsnext/packages
Tobias Koppers 94ad03385b
remove commons chunk config (#34445)
This removes the config for the `commons` chunk.

I think the idea was that modules are that in all pages are put into a `commons` chunk, but that breaks when next/dynamic comes into play, which also creates chunks. So the `totalPages` condition is broken and could lead to too many modules placed into the commons chunk.

Example: 2 pages, each has one next/dynamic. Both on demand chunks include module A. page 1 includes module B and next/dynamic on page 2 includes module B. A and B are placed into commons. commonjs chunk is loaded in page 1 and both next/dynamic. Page 1 would load module A even while it doesn't need it.

## 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-19 22:26:54 +00:00
..
create-next-app v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
eslint-config-next v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
eslint-plugin-next v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next remove commons chunk config (#34445) 2022-02-19 22:26:54 +00:00
next-bundle-analyzer v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-codemod v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-env v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-mdx v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-plugin-storybook v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-polyfill-module v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-polyfill-nomodule v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
next-swc v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
react-dev-overlay v12.1.1-canary.1 2022-02-18 17:19:57 -06:00
react-refresh-utils v12.1.1-canary.1 2022-02-18 17:19:57 -06:00