Skip to content

Commit

Permalink
Moved global_module_id_strategy.rs to turbopack-ecmascript crate to a…
Browse files Browse the repository at this point in the history
…void circularities
  • Loading branch information
Lichu Acuña committed Aug 22, 2024
1 parent 5c76d20 commit e2906fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
8 changes: 3 additions & 5 deletions crates/next-api/src/global_module_id_strategy.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down
1 change: 0 additions & 1 deletion turbopack/crates/turbopack-core/src/chunk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
1 change: 1 addition & 0 deletions turbopack/crates/turbopack-ecmascript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2906fb

Please sign in to comment.