Skip to content

Commit

Permalink
fixup! Merge remote-tracking branch 'origin/wbinnssmith/modularize-cl…
Browse files Browse the repository at this point in the history
…i' into wbinnssmith/turbopack-cli-build
  • Loading branch information
wbinnssmith committed Jul 18, 2023
1 parent 82a2ca3 commit 792ed43
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions crates/turbopack-cli/src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use turbopack_cli_utils::issue::{ConsoleUi, LogOptions};
use turbopack_core::{
asset::Asset,
chunk::{ChunkableModule, ChunkingContext, EvaluatableAssets},
context::AssetContext,
environment::{BrowserEnvironment, Environment, ExecutionEnvironment},
issue::{handle_issues, IssueReporter, IssueSeverity},
module::Module,
Expand All @@ -27,7 +26,6 @@ use turbopack_core::{
parse::Request,
pattern::QueryMap,
},
source::asset_to_source,
};
use turbopack_env::dotenv::load_env;
use turbopack_node::execution_context::ExecutionContext;
Expand Down Expand Up @@ -229,14 +227,8 @@ async fn build_internal(
.try_join()
.await?;

let modules = entries.into_iter().map(|entry| {
context.process(
asset_to_source(entry),
Value::new(ReferenceType::Entry(EntryReferenceSubType::Undefined)),
)
});

let entry_chunk_groups = modules
let entry_chunk_groups = entries
.into_iter()
.map(|entry_module| async move {
Ok(
if let Some(ecmascript) =
Expand All @@ -250,7 +242,7 @@ async fn build_internal(
.entry_chunk(
build_output_root
.join(
entry_module
ecmascript
.ident()
.path()
.file_stem()
Expand Down

0 comments on commit 792ed43

Please sign in to comment.