Skip to content

Commit 276dfee

Browse files
authored
Merge branch 'canary' into patch-2
2 parents 6cb5bb5 + a40a350 commit 276dfee

File tree

24 files changed

+151
-178
lines changed

24 files changed

+151
-178
lines changed

Cargo.lock

Lines changed: 35 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ swc_core = { version = "0.83.28", features = [
4040
testing = { version = "0.34.1" }
4141

4242
# Turbo crates
43-
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231006.4" }
43+
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231013.3" }
4444
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
45-
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231006.4" }
45+
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231013.3" }
4646
# [TODO]: need to refactor embed_directory! macro usage in next-core
47-
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231006.4" }
47+
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231013.3" }
4848

4949
# General Deps
5050

packages/next-swc/crates/next-api/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ impl AppEndpoint {
834834
.app_project
835835
.project()
836836
.rsc_chunking_context()
837-
.entry_chunk(
837+
.entry_chunk_group(
838838
server_path.join(format!(
839839
"app{original_name}.js",
840840
original_name = app_entry.original_name

packages/next-swc/crates/next-api/src/pages.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,9 @@ impl PageEndpoint {
563563

564564
client_chunks.push(Vc::upcast(PageLoaderAsset::new(
565565
this.pages_project.project().client_root(),
566-
client_module_context,
567-
Vc::upcast(client_chunking_context),
568-
self.source(),
569566
this.pathname,
570567
self.client_relative_path(),
568+
Vc::cell(client_chunks.clone()),
571569
)));
572570

573571
Ok(Vc::cell(client_chunks))
@@ -629,8 +627,11 @@ impl PageEndpoint {
629627

630628
let ssr_entry_chunk_path_string = format!("pages{asset_path}");
631629
let ssr_entry_chunk_path = node_path.join(ssr_entry_chunk_path_string);
632-
let ssr_entry_chunk =
633-
chunking_context.entry_chunk(ssr_entry_chunk_path, ssr_module, runtime_entries);
630+
let ssr_entry_chunk = chunking_context.entry_chunk_group(
631+
ssr_entry_chunk_path,
632+
ssr_module,
633+
runtime_entries,
634+
);
634635

635636
Ok(SsrChunk::NodeJs {
636637
entry: ssr_entry_chunk,

packages/next-swc/crates/next-build/src/next_app/app_entries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ pub async fn compute_app_entries_chunks(
291291
.entry(Vc::upcast(app_entry.rsc_entry))
292292
.await?;
293293

294-
let rsc_chunk = rsc_chunking_context.entry_chunk(
294+
let rsc_chunk = rsc_chunking_context.entry_chunk_group(
295295
node_root.join(format!(
296296
"server/app/{original_name}.js",
297297
original_name = app_entry.original_name

packages/next-swc/crates/next-build/src/next_pages/page_entries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ pub async fn compute_page_entries_chunks(
387387
let pathname = page_entry.pathname.await?;
388388
let asset_path: String = get_asset_path_from_pathname(&pathname, ".js");
389389

390-
let ssr_entry_chunk = ssr_chunking_context.entry_chunk(
390+
let ssr_entry_chunk = ssr_chunking_context.entry_chunk_group(
391391
node_root.join(format!("server/pages/{asset_path}")),
392392
Vc::upcast(page_entry.ssr_module),
393393
page_entries.ssr_runtime_entries,

packages/next-swc/crates/next-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ allsorts = { workspace = true }
2929
futures = { workspace = true }
3030
lazy_static = { workspace = true }
3131
thiserror = { workspace = true }
32+
tracing = { workspace = true }
3233
turbopack-binding = { workspace = true, features = [
3334
"__swc_transform_modularize_imports",
3435
"__swc_transform_relay",

packages/next-swc/crates/next-core/src/loader_tree.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ impl LoaderTreeBuilder {
116116
)?;
117117
self.imports.push(formatdoc!(
118118
r#"
119-
("TURBOPACK {{ chunking-type: isolatedParallel }}");
120119
import {}, {{ chunks as {} }} from "COMPONENT_{}";
121120
"#,
122121
identifier,

0 commit comments

Comments
 (0)