From 1432f7c7084eaff744d5261030b655a096b75ed3 Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Wed, 14 Aug 2024 16:38:33 -0700 Subject: [PATCH 1/5] Turbopack: allow specified AssetIdents for naming chunk groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, in a number of situations, we would implicitly use the entry module’s ident to name the chunk group. This adds the ability to specify a different name. Now, for evaluated chunk groups for pages, we use the page source’s ident. This prevents changes in loader chunk groups from changing the chunk name, which breaks HMR. We still use the entry module’s ident for most other cases now, but it is now explicitly provided. Test Plan: `TURBOPACK=1 pnpm test-dev test/development/acceptance/ReactRefreshModule.test.ts` with #68698 applied --- crates/next-api/src/pages.rs | 2 +- .../src/next_app/app_client_references_chunks.rs | 2 ++ .../crates/turbopack-browser/src/chunking_context.rs | 8 +++----- .../crates/turbopack-browser/src/ecmascript/list/asset.rs | 5 ----- .../crates/turbopack-core/src/chunk/chunking_context.rs | 5 +++-- turbopack/crates/turbopack-nodejs/src/chunking_context.rs | 1 + 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/crates/next-api/src/pages.rs b/crates/next-api/src/pages.rs index 3ca0e447eab53..db96c28c45f97 100644 --- a/crates/next-api/src/pages.rs +++ b/crates/next-api/src/pages.rs @@ -674,7 +674,7 @@ impl PageEndpoint { let client_chunking_context = this.pages_project.project().client_chunking_context(); let client_chunks = client_chunking_context.evaluated_chunk_group_assets( - client_module.ident(), + self.source().ident(), this.pages_project .client_runtime_entries() .with_entry(client_main_module) diff --git a/crates/next-core/src/next_app/app_client_references_chunks.rs b/crates/next-core/src/next_app/app_client_references_chunks.rs index 4060d7931b115..3307b8bf59b86 100644 --- a/crates/next-core/src/next_app/app_client_references_chunks.rs +++ b/crates/next-core/src/next_app/app_client_references_chunks.rs @@ -202,6 +202,7 @@ pub async fn get_app_client_references_chunks( ssr_modules, ); ssr_chunking_context.chunk_group( + ssr_entry_module.ident(), Vc::upcast(ssr_entry_module), Value::new(current_ssr_availability_info), ) @@ -241,6 +242,7 @@ pub async fn get_app_client_references_chunks( client_modules, ); Some(client_chunking_context.chunk_group( + client_entry_module.ident(), Vc::upcast(client_entry_module), Value::new(current_client_availability_info), )) diff --git a/turbopack/crates/turbopack-browser/src/chunking_context.rs b/turbopack/crates/turbopack-browser/src/chunking_context.rs index 0f739d1c1877d..d6d2858a02caf 100644 --- a/turbopack/crates/turbopack-browser/src/chunking_context.rs +++ b/turbopack/crates/turbopack-browser/src/chunking_context.rs @@ -352,13 +352,11 @@ impl ChunkingContext for BrowserChunkingContext { #[turbo_tasks::function] async fn chunk_group( self: Vc, + ident: Vc, module: Vc>, availability_info: Value, ) -> Result> { - let span = tracing::info_span!( - "chunking", - module = module.ident().to_string().await?.to_string() - ); + let span = tracing::info_span!("chunking", ident = ident.to_string().await?.to_string()); async move { let this = self.await?; let input_availability_info = availability_info.into_value(); @@ -378,7 +376,7 @@ impl ChunkingContext for BrowserChunkingContext { .collect(); if this.enable_hot_module_replacement { - let mut ident = module.ident(); + let mut ident = ident; match input_availability_info { AvailabilityInfo::Root => {} AvailabilityInfo::Untracked => { diff --git a/turbopack/crates/turbopack-browser/src/ecmascript/list/asset.rs b/turbopack/crates/turbopack-browser/src/ecmascript/list/asset.rs index bc0cc39046feb..5c26820bece95 100644 --- a/turbopack/crates/turbopack-browser/src/ecmascript/list/asset.rs +++ b/turbopack/crates/turbopack-browser/src/ecmascript/list/asset.rs @@ -4,7 +4,6 @@ use turbopack_core::{ asset::{Asset, AssetContent}, chunk::{ChunkingContext, EvaluatableAssets}, ident::AssetIdent, - module::Module, output::{OutputAsset, OutputAssets}, version::VersionedContent, }; @@ -92,10 +91,6 @@ impl OutputAsset for EcmascriptDevChunkList { #[turbo_tasks::function] async fn ident(&self) -> Result> { let mut ident = self.ident.await?.clone_value(); - for &evaluatable_asset in self.evaluatable_assets.await?.iter() { - ident.add_asset(Vc::::default(), evaluatable_asset.ident()); - } - ident.add_modifier(modifier()); match self.source { diff --git a/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs b/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs index 6019122deb4f0..d4d071030f120 100644 --- a/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs +++ b/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs @@ -91,6 +91,7 @@ pub trait ChunkingContext { fn chunk_group( self: Vc, + ident: Vc, module: Vc>, availability_info: Value, ) -> Vc; @@ -189,7 +190,7 @@ impl>> ChunkingConte self: Vc, module: Vc>, ) -> Vc { - self.chunk_group(module, Value::new(AvailabilityInfo::Root)) + self.chunk_group(module.ident(), module, Value::new(AvailabilityInfo::Root)) } fn root_chunk_group_assets( @@ -309,7 +310,7 @@ async fn chunk_group_assets( availability_info: Value, ) -> Result> { Ok(chunking_context - .chunk_group(module, availability_info) + .chunk_group(module.ident(), module, availability_info) .await? .assets) } diff --git a/turbopack/crates/turbopack-nodejs/src/chunking_context.rs b/turbopack/crates/turbopack-nodejs/src/chunking_context.rs index bd420f5c6ab20..1416df86bb0f5 100644 --- a/turbopack/crates/turbopack-nodejs/src/chunking_context.rs +++ b/turbopack/crates/turbopack-nodejs/src/chunking_context.rs @@ -256,6 +256,7 @@ impl ChunkingContext for NodeJsChunkingContext { #[turbo_tasks::function] async fn chunk_group( self: Vc, + _ident: Vc, module: Vc>, availability_info: Value, ) -> Result> { From ac60fa1b3effbd0f753c78e2b831e4e6cc5ea5c5 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 9 Sep 2024 22:24:15 +0200 Subject: [PATCH 2/5] use page base path --- crates/next-api/src/pages.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/next-api/src/pages.rs b/crates/next-api/src/pages.rs index db96c28c45f97..c24119ac88592 100644 --- a/crates/next-api/src/pages.rs +++ b/crates/next-api/src/pages.rs @@ -45,6 +45,7 @@ use turbopack_core::{ }, context::AssetContext, file_source::FileSource, + ident::AssetIdent, issue::IssueSeverity, module::{Module, Modules}, output::{OutputAsset, OutputAssets}, @@ -674,7 +675,7 @@ impl PageEndpoint { let client_chunking_context = this.pages_project.project().client_chunking_context(); let client_chunks = client_chunking_context.evaluated_chunk_group_assets( - self.source().ident(), + AssetIdent::from_path(this.page.await?.base_path), this.pages_project .client_runtime_entries() .with_entry(client_main_module) From de3bf896ecbf209fbbf5eb79ed801d5f0c2639a5 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 9 Sep 2024 22:25:07 +0200 Subject: [PATCH 3/5] avoid including facade in ident --- turbopack/crates/turbopack-core/src/ident.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/turbopack/crates/turbopack-core/src/ident.rs b/turbopack/crates/turbopack-core/src/ident.rs index 204f13cd15534..4bb9d3964fa0e 100644 --- a/turbopack/crates/turbopack-core/src/ident.rs +++ b/turbopack/crates/turbopack-core/src/ident.rs @@ -96,7 +96,12 @@ impl ValueToString for AssetIdent { } if let Some(part) = self.part { - write!(s, " <{}>", part.to_string().await?)?; + let part = part.to_string().await?; + // facade is not included in ident as switching between facade and non-facade shouldn't + // change the ident + if part.as_str() != "facade" { + write!(s, " <{}>", part)?; + } } Ok(Vc::cell(s.into())) From f062c6b16be418c6bb88200197e63a799eeb1c97 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 9 Sep 2024 23:17:30 +0200 Subject: [PATCH 4/5] update snapshots --- ...basic-tree-shake_dynamic-import_input_index_6199d2.js} | 4 ++-- ...c-tree-shake_dynamic-import_input_index_6199d2.js.map} | 0 ..._basic-tree-shake_dynamic-import_input_index_92a5f4.js | 2 +- ...t_basic-tree-shake_dynamic-import_input_lib_44a9b7.js} | 8 ++++---- ...sic-tree-shake_dynamic-import_input_lib_44a9b7.js.map} | 0 ...t_basic-tree-shake_dynamic-import_input_lib_e521f1.js} | 6 +++--- ...sic-tree-shake_dynamic-import_input_lib_e521f1.js.map} | 0 ...pshot_basic-tree-shake_export-named_input_1823b4._.js} | 6 +++--- ...t_basic-tree-shake_export-named_input_1823b4._.js.map} | 0 ...t_basic-tree-shake_export-named_input_index_ebcda1.js} | 4 ++-- ...sic-tree-shake_export-named_input_index_ebcda1.js.map} | 0 ...sic-tree-shake_export-namespace_input_index_6e3058.js} | 4 ++-- ...tree-shake_export-namespace_input_index_6e3058.js.map} | 0 ...t_basic-tree-shake_export-namespace_input_6b9ee3._.js} | 6 +++--- ...sic-tree-shake_export-namespace_input_6b9ee3._.js.map} | 0 ...sic-tree-shake_import-named-all_input_index_54a3dd.js} | 4 ++-- ...tree-shake_import-named-all_input_index_54a3dd.js.map} | 0 ...t_basic-tree-shake_import-named-all_input_84a6ca._.js} | 6 +++--- ...sic-tree-shake_import-named-all_input_84a6ca._.js.map} | 0 ...pshot_basic-tree-shake_import-named_input_4f48a0._.js} | 6 +++--- ...t_basic-tree-shake_import-named_input_4f48a0._.js.map} | 0 ...t_basic-tree-shake_import-named_input_index_8f179f.js} | 4 ++-- ...sic-tree-shake_import-named_input_index_8f179f.js.map} | 0 ...sic-tree-shake_import-namespace_input_index_87b9b1.js} | 4 ++-- ...tree-shake_import-namespace_input_index_87b9b1.js.map} | 0 ...t_basic-tree-shake_import-namespace_input_519014._.js} | 6 +++--- ...sic-tree-shake_import-namespace_input_519014._.js.map} | 0 ...c-tree-shake_import-side-effect_input_index_054c58.js} | 4 ++-- ...ee-shake_import-side-effect_input_index_054c58.js.map} | 0 ...basic-tree-shake_import-side-effect_input_55cb06._.js} | 6 +++--- ...c-tree-shake_import-side-effect_input_55cb06._.js.map} | 0 ...asic-tree-shake_require-side-effect_input_c7b81e._.js} | 8 ++++---- ...-tree-shake_require-side-effect_input_c7b81e._.js.map} | 0 ...-tree-shake_require-side-effect_input_index_26cd1c.js} | 4 ++-- ...e-shake_require-side-effect_input_index_26cd1c.js.map} | 0 ...ic-tree-shake_tree-shake-test-1_input_index_950e23.js} | 6 +++--- ...ree-shake_tree-shake-test-1_input_index_950e23.js.map} | 0 ...ic-tree-shake_tree-shake-test-1_input_index_c50310.js} | 4 ++-- ...ree-shake_tree-shake-test-1_input_index_c50310.js.map} | 0 39 files changed, 51 insertions(+), 51 deletions(-) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/{4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js => 4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js} (71%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/{4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js.map => 4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js} (50%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js} (98%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js} (97%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js} (74%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/{4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js => 4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js} (75%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/{4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js.map => 4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js} (98%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/{4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js => 4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js} (75%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/{4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js.map => 4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js} (97%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js} (97%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js} (74%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/{4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js => 4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js} (75%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/{4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js.map => 4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js} (98%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/{4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js => 4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js} (74%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/{4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js.map => 4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js} (96%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/{b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js.map => b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/{4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js => 4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js} (98%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/{4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js.map => 4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/{4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js => 4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js} (78%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/{4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js.map => 4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/{4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js => 4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js} (98%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/{4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js.map => 4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js.map} (100%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/{4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js => 4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js} (76%) rename turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/{4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js.map => 4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js.map} (100%) diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js similarity index 71% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js index dbf60f3fb1f36..3321c58fc6d92 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js", + "output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js", {}, - {"otherChunks":["output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_92a5f4.js","output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js [test] (ecmascript)"]} + {"otherChunks":["output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_92a5f4.js","output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_c9a76e.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_6199d2.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_92a5f4.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_92a5f4.js index 442d48db348fe..2d5f977a9258d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_92a5f4.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/4c35f_tests_snapshot_basic-tree-shake_dynamic-import_input_index_92a5f4.js @@ -3,7 +3,7 @@ "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js [test] (ecmascript)": (function({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, m: module, e: exports, t: require }) { !function() { async function main() { - const lib = await __turbopack_require__("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader) ")(__turbopack_import__); + const lib = await __turbopack_require__("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader)")(__turbopack_import__); console.log(lib.cat); } main(); diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js similarity index 50% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js index 4b0da74aed494..e67fb76969f36 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js @@ -1,12 +1,12 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js", { -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { __turbopack_export_value__((__turbopack_import__) => { return Promise.all([ - "output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js" + "output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js" ].map((chunk) => __turbopack_load__(chunk))).then(() => { - return __turbopack_import__("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) "); + return __turbopack_import__("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript)"); }); }); diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_f9749a.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_44a9b7.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js similarity index 98% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js index 694872471c06f..310c3137706f8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -304,7 +304,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({ @@ -322,4 +322,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_6a2aa9.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_e521f1.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js similarity index 97% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js index d4807b4ed4dc4..d8c5986951ab0 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -233,7 +233,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo "module evaluation"; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({}); @@ -245,4 +245,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js similarity index 74% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js index 59492ea12cce9..069bedbfcbf91 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js", + "output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js", {}, - {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_e124f3._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_1823b4._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_8f30d2.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-named_input_index_ebcda1.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js similarity index 75% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js index 676e86379361e..ee2470d662702 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js", + "output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js", {}, - {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6382de.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/4c35f_tests_snapshot_basic-tree-shake_export-namespace_input_index_6e3058.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js similarity index 98% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js index a3e2c95eb0734..b19c8e3245e25 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -399,7 +399,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo "module evaluation"; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({}); @@ -411,4 +411,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_90a893._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_export-namespace_input_6b9ee3._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js similarity index 75% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js index 861c9aec5d80a..58da9fcecc774 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js", + "output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js", {}, - {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_10d2db.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/4c35f_tests_snapshot_basic-tree-shake_import-named-all_input_index_54a3dd.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js similarity index 97% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js index 7b8b1770f3074..d57488854c7a7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -186,7 +186,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo "module evaluation"; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({}); @@ -198,4 +198,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_fffde0._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named-all_input_84a6ca._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js similarity index 97% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js index b0f8c9caff90b..4d45b3cc1c43a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -185,7 +185,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo "module evaluation"; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({}); @@ -197,4 +197,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js similarity index 74% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js index 986abde500ed5..723b5e901866d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js", + "output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js", {}, - {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_7d8cea._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_4f48a0._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_e45c55.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-named_input_index_8f179f.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js similarity index 75% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js index f892fce77eed6..0e85ee8edeba4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js", + "output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js", {}, - {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_6d0958.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/4c35f_tests_snapshot_basic-tree-shake_import-namespace_input_index_87b9b1.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js similarity index 98% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js index 2dc679a2fc104..2ace48a463b8f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -351,7 +351,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo "module evaluation"; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({}); @@ -363,4 +363,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_ab57e2._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-namespace_input_519014._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js similarity index 74% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js index 44b850fd5077d..899db454e6133 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js", + "output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js", {}, - {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_ef3f12.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_import-side-effect_input_index_054c58.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js similarity index 96% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js index 979b64a9accc6..e8b75428ea5fc 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -128,7 +128,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo "module evaluation"; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({}); @@ -140,4 +140,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js.map \ No newline at end of file +//# sourceMappingURL=b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_98e37c._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/b1abf_turbopack-tests_tests_snapshot_basic-tree-shake_import-side-effect_input_55cb06._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js similarity index 98% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js index 09245e81c44a8..8e35ab57566fa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -304,7 +304,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({ @@ -322,9 +322,9 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js [test] (ecmascript)": (function({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, m: module, e: exports, t: require }) { !function() { -const { cat } = __turbopack_require__("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) "); +const { cat } = __turbopack_require__("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript)"); }.call(this) }), }]); -//# sourceMappingURL=4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js.map \ No newline at end of file +//# sourceMappingURL=4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js similarity index 78% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js index 3c5cf70511ea0..8f3d92cb01f80 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js", + "output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js", {}, - {"otherChunks":["output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_a86367._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js [test] (ecmascript)"]} + {"otherChunks":["output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_c7b81e._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_e3ee69.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/4c35f_tests_snapshot_basic-tree-shake_require-side-effect_input_index_26cd1c.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js similarity index 98% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js index bec046967b9ff..62b16f5e1eeb3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js @@ -1,4 +1,4 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js", { +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js", { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; @@ -304,7 +304,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; })()), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { +"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript)": (({ r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname }) => (() => { "use strict"; __turbopack_esm__({ @@ -322,4 +322,4 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })()), }]); -//# sourceMappingURL=4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js.map \ No newline at end of file +//# sourceMappingURL=4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js.map diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js similarity index 76% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js index 8a4c66805c346..3b57f19195cd6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js @@ -1,6 +1,6 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js", + "output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js", {}, - {"otherChunks":["output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_7bacd6.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) "]} + {"otherChunks":["output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_950e23.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js.map similarity index 100% rename from turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_5eb8fa.js.map rename to turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/4c35f_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_c50310.js.map From 49d504678d44534d8e54ed0ba794f1041028e342 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Tue, 10 Sep 2024 01:23:13 +0200 Subject: [PATCH 5/5] Force page reload when entrypoint changes e.g. when renaming pages, removing _app, etc --- crates/next-api/src/pages.rs | 22 ++- crates/next-core/src/hmr_entry.rs | 216 ++++++++++++++++++++++++++++++ crates/next-core/src/lib.rs | 1 + 3 files changed, 235 insertions(+), 4 deletions(-) create mode 100644 crates/next-core/src/hmr_entry.rs diff --git a/crates/next-api/src/pages.rs b/crates/next-api/src/pages.rs index c24119ac88592..f95e33b8b48b7 100644 --- a/crates/next-api/src/pages.rs +++ b/crates/next-api/src/pages.rs @@ -3,6 +3,7 @@ use indexmap::IndexMap; use next_core::{ all_assets_from_entries, create_page_loader_entry_module, get_asset_path_from_pathname, get_edge_resolve_options_context, + hmr_entry::HmrEntryModule, mode::NextMode, next_client::{ get_client_module_options_context, get_client_resolve_options_context, @@ -645,11 +646,24 @@ impl PageEndpoint { #[turbo_tasks::function] async fn client_module(self: Vc) -> Result>> { let this = self.await?; - Ok(create_page_loader_entry_module( + let page_loader = create_page_loader_entry_module( this.pages_project.client_module_context(), self.source(), this.pathname, - )) + ); + if matches!( + *this.pages_project.project().next_mode().await?, + NextMode::Development + ) { + if let Some(chunkable) = Vc::try_resolve_downcast(page_loader).await? { + return Ok(Vc::upcast(HmrEntryModule::new( + AssetIdent::from_path(this.page.await?.base_path), + chunkable, + true, + ))); + } + } + Ok(page_loader) } #[turbo_tasks::function] @@ -663,13 +677,13 @@ impl PageEndpoint { let Some(client_module) = Vc::try_resolve_sidecast::>(client_module).await? else { - bail!("expected an ECMAScript module asset"); + bail!("expected an evaluateable asset"); }; let Some(client_main_module) = Vc::try_resolve_sidecast::>(client_main_module).await? else { - bail!("expected an ECMAScript module asset"); + bail!("expected an evaluateable asset"); }; let client_chunking_context = this.pages_project.project().client_chunking_context(); diff --git a/crates/next-core/src/hmr_entry.rs b/crates/next-core/src/hmr_entry.rs new file mode 100644 index 0000000000000..ff7d74ca7b9d7 --- /dev/null +++ b/crates/next-core/src/hmr_entry.rs @@ -0,0 +1,216 @@ +use std::io::Write; + +use anyhow::Result; +use turbo_tasks::{RcStr, ValueToString, Vc}; +use turbo_tasks_fs::{glob::Glob, rope::RopeBuilder}; +use turbopack_core::{ + asset::{Asset, AssetContent}, + chunk::{ + ChunkItem, ChunkType, ChunkableModule, ChunkableModuleReference, ChunkingContext, + EvaluatableAsset, + }, + ident::AssetIdent, + module::Module, + reference::{ModuleReference, ModuleReferences}, + resolve::ModuleResolveResult, +}; +use turbopack_ecmascript::{ + chunk::{ + EcmascriptChunkItem, EcmascriptChunkItemContent, EcmascriptChunkItemOptions, + EcmascriptChunkPlaceable, EcmascriptChunkType, EcmascriptExports, + }, + utils::StringifyJs, +}; + +#[turbo_tasks::function] +fn modifier() -> Vc { + Vc::cell("hmr-entry".into()) +} + +#[turbo_tasks::value(shared)] +pub struct HmrEntryModule { + pub ident: Vc, + pub module: Vc>, + pub force_reload: bool, +} + +#[turbo_tasks::value_impl] +impl HmrEntryModule { + #[turbo_tasks::function] + pub fn new( + ident: Vc, + module: Vc>, + force_reload: bool, + ) -> Vc { + Self { + ident, + module, + force_reload, + } + .cell() + } +} + +#[turbo_tasks::value_impl] +impl Module for HmrEntryModule { + #[turbo_tasks::function] + fn ident(&self) -> Vc { + self.ident.with_modifier(modifier()) + } + + #[turbo_tasks::function] + fn references(&self) -> Vc { + Vc::cell(vec![Vc::upcast(HmrEntryModuleReference::new(Vc::upcast( + self.module, + )))]) + } +} + +#[turbo_tasks::value_impl] +impl ChunkableModule for HmrEntryModule { + #[turbo_tasks::function] + fn as_chunk_item( + self: Vc, + chunking_context: Vc>, + ) -> Vc> { + Vc::upcast( + HmrEntryChunkItem { + module: self, + chunking_context, + } + .cell(), + ) + } +} + +#[turbo_tasks::value_impl] +impl Asset for HmrEntryModule { + #[turbo_tasks::function] + fn content(self: Vc) -> Vc { + todo!("HmrEntryModule doesn't implement content()") + } +} + +#[turbo_tasks::value_impl] +impl EcmascriptChunkPlaceable for HmrEntryModule { + #[turbo_tasks::function] + fn get_exports(self: Vc) -> Vc { + EcmascriptExports::None.cell() + } + + #[turbo_tasks::function] + fn is_marked_as_side_effect_free(self: Vc, _: Vc) -> Vc { + Vc::cell(false) + } +} + +#[turbo_tasks::value_impl] +impl EvaluatableAsset for HmrEntryModule {} + +#[turbo_tasks::value] +pub struct HmrEntryModuleReference { + pub module: Vc>, +} + +#[turbo_tasks::value_impl] +impl HmrEntryModuleReference { + #[turbo_tasks::function] + pub fn new(module: Vc>) -> Vc { + HmrEntryModuleReference { module }.cell() + } +} + +#[turbo_tasks::value_impl] +impl ValueToString for HmrEntryModuleReference { + #[turbo_tasks::function] + fn to_string(&self) -> Vc { + Vc::cell("entry".into()) + } +} + +#[turbo_tasks::value_impl] +impl ModuleReference for HmrEntryModuleReference { + #[turbo_tasks::function] + async fn resolve_reference(&self) -> Result> { + Ok(ModuleResolveResult::module(self.module).cell()) + } +} + +#[turbo_tasks::value_impl] +impl ChunkableModuleReference for HmrEntryModuleReference {} + +/// The chunk item for [`HmrEntryModule`]. +#[turbo_tasks::value] +struct HmrEntryChunkItem { + module: Vc, + chunking_context: Vc>, +} + +#[turbo_tasks::value_impl] +impl ChunkItem for HmrEntryChunkItem { + #[turbo_tasks::function] + fn chunking_context(&self) -> Vc> { + Vc::upcast(self.chunking_context) + } + + #[turbo_tasks::function] + fn asset_ident(&self) -> Vc { + self.module.ident() + } + + #[turbo_tasks::function] + fn references(&self) -> Vc { + self.module.references() + } + + #[turbo_tasks::function] + fn ty(&self) -> Vc> { + Vc::upcast(Vc::::default()) + } + + #[turbo_tasks::function] + fn module(&self) -> Vc> { + Vc::upcast(self.module) + } +} + +#[turbo_tasks::value_impl] +impl EcmascriptChunkItem for HmrEntryChunkItem { + #[turbo_tasks::function] + fn chunking_context(&self) -> Vc> { + self.chunking_context + } + + #[turbo_tasks::function] + async fn content(&self) -> Result> { + let this = self.module.await?; + let module = this.module; + let chunk_item = module.as_chunk_item(self.chunking_context); + let id = self.chunking_context.chunk_item_id(chunk_item).await?; + + let mut code = RopeBuilder::default(); + if this.force_reload { + writeln!( + code, + "__turbopack_require__({});\nmodule.hot.dispose(() => window.location.reload());", + StringifyJs(&id) + )?; + } else { + writeln!( + code, + "__turbopack_require__({});\nmodule.hot.accept();", + StringifyJs(&id) + )?; + } + Ok(EcmascriptChunkItemContent { + inner_code: code.build(), + options: EcmascriptChunkItemOptions { + strict: true, + module: true, + ..Default::default() + }, + ..Default::default() + } + .cell()) + } +} diff --git a/crates/next-core/src/lib.rs b/crates/next-core/src/lib.rs index f2dab1cfe2d83..689163649b0c3 100644 --- a/crates/next-core/src/lib.rs +++ b/crates/next-core/src/lib.rs @@ -9,6 +9,7 @@ pub mod app_structure; mod bootstrap; mod embed_js; mod emit; +pub mod hmr_entry; pub mod instrumentation; mod loader_tree; pub mod middleware;