Commit 511b244f authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

improve introspection (vercel/turbo#4135)

### Description

Add more details to introspection and make it more robust to errors
during introspection

### Testing Instructions

go to http://localhost:3000/__turbopack__/
parent 42fa76a3
......@@ -222,7 +222,7 @@ impl AssetReference for WithChunksAssetReference {
#[turbo_tasks::value_impl]
impl ChunkableAssetReference for WithChunksAssetReference {
#[turbo_tasks::function]
fn chunking_type(&self, _context: ChunkingContextVc) -> ChunkingTypeOptionVc {
fn chunking_type(&self) -> ChunkingTypeOptionVc {
ChunkingTypeOptionVc::cell(Some(ChunkingType::Separate))
}
}
......@@ -202,7 +202,7 @@ impl AssetReference for WithClientChunksAssetReference {
#[turbo_tasks::value_impl]
impl ChunkableAssetReference for WithClientChunksAssetReference {
#[turbo_tasks::function]
fn chunking_type(&self, _context: ChunkingContextVc) -> ChunkingTypeOptionVc {
fn chunking_type(&self) -> ChunkingTypeOptionVc {
ChunkingTypeOptionVc::cell(Some(ChunkingType::PlacedOrParallel))
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment