Skip to content

Commit

Permalink
Relocate SingleModuleGraph to turbopack-core (vercel#74571)
Browse files Browse the repository at this point in the history
While many use case-specific graphs belong in Next.js, this primitive
should be kept in Turbopack as it will be used for other core usecases
like chunking.

Test Plan: CI
  • Loading branch information
wbinnssmith authored Jan 7, 2025
1 parent 51e091d commit 13d5750
Show file tree
Hide file tree
Showing 8 changed files with 548 additions and 534 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions crates/next-api/src/client_references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ use turbo_tasks::{
debug::ValueDebugFormat, trace::TraceRawVcs, NonLocalValue, ResolvedVc, TryFlatJoinIterExt, Vc,
};
use turbopack::css::CssModuleAsset;
use turbopack_core::module::Module;

use crate::module_graph::SingleModuleGraph;
use turbopack_core::{module::Module, module_graph::SingleModuleGraph};

#[derive(
Clone, Serialize, Deserialize, Eq, PartialEq, TraceRawVcs, ValueDebugFormat, NonLocalValue,
Expand Down
3 changes: 2 additions & 1 deletion crates/next-api/src/dynamic_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ use turbopack_core::{
ChunkingContext, ModuleId,
},
module::Module,
module_graph::SingleModuleGraph,
output::OutputAssets,
};

use crate::module_graph::{DynamicImportEntriesWithImporter, SingleModuleGraph};
use crate::module_graph::DynamicImportEntriesWithImporter;

pub(crate) enum NextDynamicChunkAvailability<'a> {
/// In App Router, the client references
Expand Down
Loading

0 comments on commit 13d5750

Please sign in to comment.