Skip to content

TURBOPACK: expose node ecmascript chunk types and accessors#93722

Open
yuzheng14 wants to merge 1 commit intovercel:canaryfrom
utooland:feat/pub-node-chunk-types-canary
Open

TURBOPACK: expose node ecmascript chunk types and accessors#93722
yuzheng14 wants to merge 1 commit intovercel:canaryfrom
utooland:feat/pub-node-chunk-types-canary

Conversation

@yuzheng14
Copy link
Copy Markdown

Promote EcmascriptBuildNodeChunk, EcmascriptBuildNodeEntryChunk, and EcmascriptBuildNodeRuntimeChunk from pub(crate) to pub, and re-export them from turbopack_nodejs, mirroring the browser-side visibility.

Add public accessors needed for downstream consumers (e.g. webpack-compatible stats generation):

  • EcmascriptBuildNodeChunk::chunk() — exposes the inner Chunk for chunk_items
  • EcmascriptBuildNodeEntryChunk::chunks_data() / evaluatable_assets() / module_graph() / chunking_context() — mirror EcmascriptBrowserEvaluateChunk

No behavior changes inside turbopack-nodejs itself.

Promote `EcmascriptBuildNodeChunk`, `EcmascriptBuildNodeEntryChunk`, and
`EcmascriptBuildNodeRuntimeChunk` from `pub(crate)` to `pub`, and re-export them
from `turbopack_nodejs`, mirroring the browser-side visibility.

Add public accessors needed for downstream consumers (e.g. webpack-compatible
stats generation):
- `EcmascriptBuildNodeChunk::chunk()` — exposes the inner `Chunk` for chunk_items
- `EcmascriptBuildNodeEntryChunk::chunks_data()` / `evaluatable_assets()` /
  `module_graph()` / `chunking_context()` — mirror `EcmascriptBrowserEvaluateChunk`

No behavior changes inside turbopack-nodejs itself.
@github-actions github-actions Bot added the Turbopack Related to Turbopack with Next.js. label May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Turbopack Related to Turbopack with Next.js.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant