rsnext/packages/next-swc
Shu Ding 6d4f263121
Improved bundling strategy for the server graph (#40739)
This PR changes the external module resolution to eagerly bundle
node_modules, and some specific Next.js internal modules, if on the
`WEBPACK_LAYERS.server` layer. While resolving corresponding packages,
we use the `react-server` export condition (fallbacks to default).

A follow-up PR will be adding a Next.js option to opt-out specific
packages from being bundled on the server layer.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a 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`
- [x] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-09-21 20:45:33 +02:00
..
.cargo build(next-swc): linux glibc compatible issue (#34481) 2022-02-18 16:04:43 +00:00
crates Improved bundling strategy for the server graph (#40739) 2022-09-21 20:45:33 +02:00
native Extract next-swc Rust code into its own package (#31635) 2021-11-21 12:59:56 +01:00
.rustfmt.toml Extract next-swc Rust code into its own package (#31635) 2021-11-21 12:59:56 +01:00
Cargo.lock chore: Update swc (#40520) 2022-09-15 14:22:11 +02:00
Cargo.toml feat(next-swc): Update swc crates (#35395) 2022-03-30 15:13:40 -07:00
package.json v12.3.2-canary.0 2022-09-21 10:50:28 +02:00
rust-toolchain chore: Update swc (#39965) 2022-09-04 12:13:22 +02:00