Skip to content

turbopack-230411.2

@alexkirsz alexkirsz tagged this 11 Apr 15:15
### Description

Next.js side: https://github.com/vercel/next.js/pull/47961

Previous episode: https://github.com/vercel/turbo/pull/4397

In this episode, we:

1. Get rid of `ChunkGroupVc`. `ChunkGroupVc` previously took care of:
  a. optimizing chunks;
b. adding additional chunks, such as the "evaluate" chunk, which
evaluates runtime entries.
Both of these use cases are a concern of the chunking context (i.e. it
would differ between dev and build), hence they're now handled by the
chunking context.
2. Move the chunk list registration logic into a different chunk. The
chunk list was previously a bit leaky as it required the Next.js code to
instantiate it manually. There were also a bunch of other instantiations
in the code which differed ever so slightly. The chunk list registration
code is now part of a separate chunk, which is only added by the dev
chunking context.

### Testing Instructions

Snapshots + Next dev tests + Manual tests
fix WEB-822
Assets 2
Loading