diff --git a/crates/next-api/src/global_module_id_strategy.rs b/crates/next-api/src/global_module_id_strategy.rs index d806a2d7a46dd..ea30a027ed8fc 100644 --- a/crates/next-api/src/global_module_id_strategy.rs +++ b/crates/next-api/src/global_module_id_strategy.rs @@ -1,10 +1,8 @@ use anyhow::Result; use turbo_tasks::Vc; -use turbopack_core::chunk::{ - global_module_id_strategy::{ - children_modules_idents, merge_preprocessed_module_ids, PreprocessedChildrenIdents, - }, - module_id_strategies::{GlobalModuleIdStrategy, ModuleIdStrategy}, +use turbopack_core::chunk::module_id_strategies::{GlobalModuleIdStrategy, ModuleIdStrategy}; +use turbopack_ecmascript::global_module_id_strategy::{ + children_modules_idents, merge_preprocessed_module_ids, PreprocessedChildrenIdents, }; use crate::{ diff --git a/turbopack/crates/turbopack-core/src/chunk/mod.rs b/turbopack/crates/turbopack-core/src/chunk/mod.rs index 5942a3f14a24b..5ffc615525efc 100644 --- a/turbopack/crates/turbopack-core/src/chunk/mod.rs +++ b/turbopack/crates/turbopack-core/src/chunk/mod.rs @@ -6,7 +6,6 @@ pub(crate) mod chunking_context; pub(crate) mod containment_tree; pub(crate) mod data; pub(crate) mod evaluate; -pub mod global_module_id_strategy; pub mod module_id_strategies; pub mod optimize; diff --git a/turbopack/crates/turbopack-core/src/chunk/global_module_id_strategy.rs b/turbopack/crates/turbopack-ecmascript/src/global_module_id_strategy.rs similarity index 99% rename from turbopack/crates/turbopack-core/src/chunk/global_module_id_strategy.rs rename to turbopack/crates/turbopack-ecmascript/src/global_module_id_strategy.rs index 5913cdbb61c00..f373b64b733fe 100644 --- a/turbopack/crates/turbopack-core/src/chunk/global_module_id_strategy.rs +++ b/turbopack/crates/turbopack-ecmascript/src/global_module_id_strategy.rs @@ -6,8 +6,7 @@ use turbo_tasks::{ ValueToString, Vc, }; use turbo_tasks_hash::hash_xxh3_hash64; - -use crate::{ +use turbopack_core::{ chunk::ModuleId, ident::AssetIdent, module::{Module, Modules}, diff --git a/turbopack/crates/turbopack-ecmascript/src/lib.rs b/turbopack/crates/turbopack-ecmascript/src/lib.rs index 09c88d0fe2f68..af2aff38f7fc9 100644 --- a/turbopack/crates/turbopack-ecmascript/src/lib.rs +++ b/turbopack/crates/turbopack-ecmascript/src/lib.rs @@ -14,6 +14,7 @@ pub mod chunk; pub mod chunk_group_files_asset; pub mod code_gen; mod errors; +pub mod global_module_id_strategy; pub mod magic_identifier; pub mod manifest; pub mod minify;