diff --git a/crates/pack-core/src/client/context.rs b/crates/pack-core/src/client/context.rs index d22c63d414..064f57e220 100644 --- a/crates/pack-core/src/client/context.rs +++ b/crates/pack-core/src/client/context.rs @@ -17,8 +17,8 @@ use turbopack_browser::{BrowserChunkingContext, CurrentChunkMethod}; use turbopack_core::{ asset::AssetContent, chunk::{ - ChunkingConfig, ChunkingContext, MangleType, MinifyType, SourceMapSourceType, - SourceMapsType, UnusedReferences, chunk_id_strategy::ModuleIdStrategy, + ChunkingConfig, ChunkingContext, ContentHashing, MangleType, MinifyType, + SourceMapSourceType, SourceMapsType, UnusedReferences, chunk_id_strategy::ModuleIdStrategy, }, compile_time_info::{ CompileTimeDefineValue, CompileTimeInfo, DefinableNameSegment, FreeVarReference, @@ -779,6 +779,7 @@ pub async fn get_client_chunking_context( Vc::::default().to_resolved().await?, css_chunking_config, ) + .chunk_content_hashing(ContentHashing::Direct { length: 13 }) .module_merging(*scope_hoisting.await?); } diff --git a/crates/pack-tests/tests/chunk_hashing.rs b/crates/pack-tests/tests/chunk_hashing.rs new file mode 100644 index 0000000000..1fe4a02825 --- /dev/null +++ b/crates/pack-tests/tests/chunk_hashing.rs @@ -0,0 +1,98 @@ +use anyhow::Result; +use pack_core::mode::Mode; +use turbo_rcstr::{RcStr, rcstr}; +use turbo_tasks::{ResolvedVc, TurboTasks, Vc}; +use turbo_tasks_backend::{BackendOptions, TurboTasksBackend, noop_backing_storage}; +use turbo_tasks_fs::{File, FileContent, FileSystem, VirtualFileSystem}; +use turbopack_browser::BrowserChunkingContext; +use turbopack_core::{ + asset::AssetContent, + chunk::{ChunkingContext, ContentHashing}, + environment::{BrowserEnvironment, Environment, ExecutionEnvironment}, + ident::AssetIdent, + virtual_output::VirtualOutputAsset, +}; + +async fn chunk_filename(salt: &str, length: u8, extension: &str) -> Result { + let root = VirtualFileSystem::new_with_name(rcstr!("chunk-hashing")) + .root() + .owned() + .await?; + let environment = Environment::new(ExecutionEnvironment::Browser( + BrowserEnvironment { + dom: true, + web_worker: false, + service_worker: false, + browserslist_query: rcstr!("defaults"), + } + .cell() + .to_resolved() + .await?, + )) + .to_resolved() + .await?; + let context = BrowserChunkingContext::builder( + root.clone(), + root.clone(), + rcstr!(""), + root.clone(), + root.clone(), + root.clone(), + environment, + Mode::Production.runtime_type(), + ) + .hash_salt(ResolvedVc::cell(RcStr::from(salt))) + .chunk_content_hashing(ContentHashing::Direct { length }) + .build(); + let path = root.join("input.js")?; + let content = AssetContent::file(FileContent::Content(File::from("/* chunk */")).cell()) + .to_resolved() + .await?; + let asset = VirtualOutputAsset::new(path.clone(), *content); + let output = context + .chunk_path( + Some(Vc::upcast(asset)), + AssetIdent::from_path(path).into_vc(), + Some(rcstr!("worker")), + extension.into(), + ) + .await?; + Ok(output.path.to_string()) +} + +#[tokio::test] +async fn default_chunk_hash_respects_salt_and_length() -> Result<()> { + let tt = TurboTasks::new(TurboTasksBackend::new( + BackendOptions { + storage_mode: None, + ..Default::default() + }, + noop_backing_storage(), + )); + tt.run_once(async { + check_chunk_hashing().read_strongly_consistent().await?; + Ok(()) + }) + .await +} + +#[turbo_tasks::function(operation, root)] +async fn check_chunk_hashing() -> Result> { + for extension in [".js", ".css"] { + let unsalted = chunk_filename("", 13, extension).await?; + let salted = chunk_filename("release-a", 13, extension).await?; + assert_ne!(unsalted, salted, "salt must change the output filename"); + assert_ne!(salted, chunk_filename("release-b", 13, extension).await?); + assert_eq!(salted, chunk_filename("release-a", 13, extension).await?); + assert!(salted.starts_with("worker-")); + assert!(salted.ends_with(extension)); + assert_eq!(salted.len(), "worker-".len() + 13 + extension.len()); + + let full = chunk_filename("release-a", 25, extension).await?; + assert_eq!(full.len(), "worker-".len() + 25 + extension.len()); + for length in [26, u8::MAX] { + assert_eq!(chunk_filename("release-a", length, extension).await?, full); + } + } + Ok(Vc::cell(())) +} diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/input_15liy8us72sxf.js.map b/crates/pack-tests/tests/snapshot/async_chunk/output/007_nutjpavf2.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/async_chunk/output/input_15liy8us72sxf.js.map rename to crates/pack-tests/tests/snapshot/async_chunk/output/007_nutjpavf2.js.map diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/input_0g__tdm89q74f.js b/crates/pack-tests/tests/snapshot/async_chunk/output/1nqwnu9guu79c.js similarity index 93% rename from crates/pack-tests/tests/snapshot/async_chunk/output/input_0g__tdm89q74f.js rename to crates/pack-tests/tests/snapshot/async_chunk/output/1nqwnu9guu79c.js index ba889fb717..fd34610b3b 100644 --- a/crates/pack-tests/tests/snapshot/async_chunk/output/input_0g__tdm89q74f.js +++ b/crates/pack-tests/tests/snapshot/async_chunk/output/1nqwnu9guu79c.js @@ -25,4 +25,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_0g__tdm89q74f.js.map \ No newline at end of file +//# sourceMappingURL=2wq8h34u5n9pv.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/input_0g__tdm89q74f.js.map b/crates/pack-tests/tests/snapshot/async_chunk/output/2wq8h34u5n9pv.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/async_chunk/output/input_0g__tdm89q74f.js.map rename to crates/pack-tests/tests/snapshot/async_chunk/output/2wq8h34u5n9pv.js.map diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/main.js.map b/crates/pack-tests/tests/snapshot/async_chunk/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/async_chunk/output/main.js.map rename to crates/pack-tests/tests/snapshot/async_chunk/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/input_15liy8us72sxf.js b/crates/pack-tests/tests/snapshot/async_chunk/output/3iutdrd92konk.js similarity index 91% rename from crates/pack-tests/tests/snapshot/async_chunk/output/input_15liy8us72sxf.js rename to crates/pack-tests/tests/snapshot/async_chunk/output/3iutdrd92konk.js index 9e71f89b11..203b985628 100644 --- a/crates/pack-tests/tests/snapshot/async_chunk/output/input_15liy8us72sxf.js +++ b/crates/pack-tests/tests/snapshot/async_chunk/output/3iutdrd92konk.js @@ -3,7 +3,7 @@ __turbopack_context__.v((parentImport) => { return Promise.all([ - "input_0g__tdm89q74f.js" + "1nqwnu9guu79c.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport(76); }); @@ -35,4 +35,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_15liy8us72sxf.js.map \ No newline at end of file +//# sourceMappingURL=007_nutjpavf2.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/stats.json b/crates/pack-tests/tests/snapshot/async_chunk/output/stats.json index 20be1a2603..3e851298ea 100644 --- a/crates/pack-tests/tests/snapshot/async_chunk/output/stats.json +++ b/crates/pack-tests/tests/snapshot/async_chunk/output/stats.json @@ -3,15 +3,15 @@ "main": { "name": "main", "chunks": [ - "input_15liy8us72sxf.js", - "main.js" + "3iutdrd92konk.js", + "turbopack-42u84-9btqy5o.js" ], "assets": [ { - "name": "input_15liy8us72sxf.js" + "name": "3iutdrd92konk.js" }, { - "name": "main.js" + "name": "turbopack-42u84-9btqy5o.js" } ] } @@ -22,11 +22,11 @@ "initial": false, "entry": false, "recorded": false, - "id": "input_0g__tdm89q74f.js", - "size": 710, + "id": "1nqwnu9guu79c.js", + "size": 704, "hash": "", "files": [ - "input_0g__tdm89q74f.js" + "1nqwnu9guu79c.js" ] }, { @@ -34,11 +34,11 @@ "initial": false, "entry": false, "recorded": false, - "id": "input_15liy8us72sxf.js", - "size": 891, + "id": "3iutdrd92konk.js", + "size": 879, "hash": "", "files": [ - "input_15liy8us72sxf.js" + "3iutdrd92konk.js" ] }, { @@ -46,85 +46,85 @@ "initial": false, "entry": false, "recorded": false, - "id": "main.js", - "size": 264, + "id": "turbopack-42u84-9btqy5o.js", + "size": 258, "hash": "", "files": [ - "main.js" + "turbopack-42u84-9btqy5o.js" ] } ], "assets": [ { "type": "asset", - "name": "input_0g__tdm89q74f.js", + "name": "007_nutjpavf2.js.map", "info": {}, - "size": 710, + "size": 798, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_0g__tdm89q74f.js" + "007_nutjpavf2.js.map" ] }, { "type": "asset", - "name": "input_0g__tdm89q74f.js.map", + "name": "1nqwnu9guu79c.js", "info": {}, - "size": 731, + "size": 704, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_0g__tdm89q74f.js.map" + "1nqwnu9guu79c.js" ] }, { "type": "asset", - "name": "input_15liy8us72sxf.js", + "name": "2wq8h34u5n9pv.js.map", "info": {}, - "size": 891, + "size": 731, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_15liy8us72sxf.js" + "2wq8h34u5n9pv.js.map" ] }, { "type": "asset", - "name": "input_15liy8us72sxf.js.map", + "name": "2z3sh82dl8glu.js.map", "info": {}, - "size": 798, + "size": 53, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_15liy8us72sxf.js.map" + "2z3sh82dl8glu.js.map" ] }, { "type": "asset", - "name": "main.js", + "name": "3iutdrd92konk.js", "info": {}, - "size": 264, + "size": 879, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "main.js" + "3iutdrd92konk.js" ] }, { "type": "asset", - "name": "main.js.map", + "name": "turbopack-42u84-9btqy5o.js", "info": {}, - "size": 53, + "size": 258, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "main.js.map" + "turbopack-42u84-9btqy5o.js" ] } ], @@ -133,7 +133,7 @@ "name": "async_chunk/input/node_modules/bar/index.js", "id": 2, "chunks": [ - "input_15liy8us72sxf.js" + "3iutdrd92konk.js" ], "size": 152 }, @@ -141,7 +141,7 @@ "name": "async_chunk/input/node_modules/foo/index.js", "id": 26, "chunks": [ - "input_0g__tdm89q74f.js" + "1nqwnu9guu79c.js" ], "size": 152 }, @@ -149,7 +149,7 @@ "name": "async_chunk/input/index.js", "id": 45, "chunks": [ - "input_15liy8us72sxf.js" + "3iutdrd92konk.js" ], "size": 266 }, @@ -157,7 +157,7 @@ "name": "async_chunk/input/import.js", "id": 76, "chunks": [ - "input_0g__tdm89q74f.js" + "1nqwnu9guu79c.js" ], "size": 327 }, @@ -165,9 +165,9 @@ "name": "async_chunk/input/import.js", "id": 92, "chunks": [ - "input_15liy8us72sxf.js" + "3iutdrd92konk.js" ], - "size": 237 + "size": 231 } ] } \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/async_chunk/output/main.js b/crates/pack-tests/tests/snapshot/async_chunk/output/turbopack-42u84-9btqy5o.js similarity index 73% rename from crates/pack-tests/tests/snapshot/async_chunk/output/main.js rename to crates/pack-tests/tests/snapshot/async_chunk/output/turbopack-42u84-9btqy5o.js index b942a32d4a..4bcfa4f19b 100644 --- a/crates/pack-tests/tests/snapshot/async_chunk/output/main.js +++ b/crates/pack-tests/tests/snapshot/async_chunk/output/turbopack-42u84-9btqy5o.js @@ -1,5 +1,5 @@ (globalThis["utooChunk_async_chunk_test"] || (globalThis["utooChunk_async_chunk_test"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_15liy8us72sxf.js"],"runtimeModuleIds":[45]} + {"otherChunks":["3iutdrd92konk.js"],"runtimeModuleIds":[45]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/input_index_less_068ohc37ge4my.css.map b/crates/pack-tests/tests/snapshot/basic/alias/output/0dn7di4htuh8p.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/alias/output/input_index_less_068ohc37ge4my.css.map rename to crates/pack-tests/tests/snapshot/basic/alias/output/0dn7di4htuh8p.css.map diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/alias/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/alias/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/alias/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/_project___1zbalh90n71_f.js b/crates/pack-tests/tests/snapshot/basic/alias/output/37o_c1e84go2i.js similarity index 99% rename from crates/pack-tests/tests/snapshot/basic/alias/output/_project___1zbalh90n71_f.js rename to crates/pack-tests/tests/snapshot/basic/alias/output/37o_c1e84go2i.js index 87326fe077..6f6dfb12b0 100644 --- a/crates/pack-tests/tests/snapshot/basic/alias/output/_project___1zbalh90n71_f.js +++ b/crates/pack-tests/tests/snapshot/basic/alias/output/37o_c1e84go2i.js @@ -168,4 +168,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_project___1zbalh90n71_f.js.map \ No newline at end of file +//# sourceMappingURL=3ax5ju0ejpeym.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/_project___1zbalh90n71_f.js.map b/crates/pack-tests/tests/snapshot/basic/alias/output/3ax5ju0ejpeym.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/alias/output/_project___1zbalh90n71_f.js.map rename to crates/pack-tests/tests/snapshot/basic/alias/output/3ax5ju0ejpeym.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/input_index_less_068ohc37ge4my.css b/crates/pack-tests/tests/snapshot/basic/alias/output/3ifzw8uwk49rx.css similarity index 65% rename from crates/pack-tests/tests/snapshot/basic/alias/output/input_index_less_068ohc37ge4my.css rename to crates/pack-tests/tests/snapshot/basic/alias/output/3ifzw8uwk49rx.css index da7ce8064b..822c2e49a4 100644 --- a/crates/pack-tests/tests/snapshot/basic/alias/output/input_index_less_068ohc37ge4my.css +++ b/crates/pack-tests/tests/snapshot/basic/alias/output/3ifzw8uwk49rx.css @@ -3,4 +3,4 @@ background-color: red; } -/*# sourceMappingURL=input_index_less_068ohc37ge4my.css.map*/ \ No newline at end of file +/*# sourceMappingURL=0dn7di4htuh8p.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/main.js b/crates/pack-tests/tests/snapshot/basic/alias/output/main.js deleted file mode 100644 index 8d951bb4e4..0000000000 --- a/crates/pack-tests/tests/snapshot/basic/alias/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___1zbalh90n71_f.js","input_index_less_068ohc37ge4my.css"],"runtimeModuleIds":["[project]/basic/alias/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/alias/output/turbopack-22ecp8b-t377e.js b/crates/pack-tests/tests/snapshot/basic/alias/output/turbopack-22ecp8b-t377e.js new file mode 100644 index 0000000000..fa0442e079 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/alias/output/turbopack-22ecp8b-t377e.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["37o_c1e84go2i.js","3ifzw8uwk49rx.css"],"runtimeModuleIds":["[project]/basic/alias/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/input_index_0yzwyi6ourq_9.js.map b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/04z4ceak9elv3.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/input_index_0yzwyi6ourq_9.js.map rename to crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/04z4ceak9elv3.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/input_index_0yzwyi6ourq_9.js b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/1579vm8q43ebc.js similarity index 85% rename from crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/input_index_0yzwyi6ourq_9.js rename to crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/1579vm8q43ebc.js index 3f3fdf50ad..2d67f6f88c 100644 --- a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/input_index_0yzwyi6ourq_9.js +++ b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/1579vm8q43ebc.js @@ -5,4 +5,4 @@ console.log('ChunkingLoadingGlobal test'); }), ]); -//# sourceMappingURL=input_index_0yzwyi6ourq_9.js.map \ No newline at end of file +//# sourceMappingURL=04z4ceak9elv3.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/stats.json b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/stats.json index c6d9d38183..74f293ea17 100644 --- a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/stats.json +++ b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/stats.json @@ -3,15 +3,15 @@ "main": { "name": "main", "chunks": [ - "input_index_0yzwyi6ourq_9.js", - "main.js" + "1579vm8q43ebc.js", + "turbopack-2miq62fi5cp2x.js" ], "assets": [ { - "name": "input_index_0yzwyi6ourq_9.js" + "name": "1579vm8q43ebc.js" }, { - "name": "main.js" + "name": "turbopack-2miq62fi5cp2x.js" } ] } @@ -22,11 +22,11 @@ "initial": false, "entry": false, "recorded": false, - "id": "input_index_0yzwyi6ourq_9.js", - "size": 375, + "id": "1579vm8q43ebc.js", + "size": 363, "hash": "", "files": [ - "input_index_0yzwyi6ourq_9.js" + "1579vm8q43ebc.js" ] }, { @@ -34,61 +34,61 @@ "initial": false, "entry": false, "recorded": false, - "id": "main.js", - "size": 321, + "id": "turbopack-2miq62fi5cp2x.js", + "size": 309, "hash": "", "files": [ - "main.js" + "turbopack-2miq62fi5cp2x.js" ] } ], "assets": [ { "type": "asset", - "name": "input_index_0yzwyi6ourq_9.js", + "name": "04z4ceak9elv3.js.map", "info": {}, - "size": 375, + "size": 321, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_index_0yzwyi6ourq_9.js" + "04z4ceak9elv3.js.map" ] }, { "type": "asset", - "name": "input_index_0yzwyi6ourq_9.js.map", + "name": "1579vm8q43ebc.js", "info": {}, - "size": 321, + "size": 363, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_index_0yzwyi6ourq_9.js.map" + "1579vm8q43ebc.js" ] }, { "type": "asset", - "name": "main.js", + "name": "2z3sh82dl8glu.js.map", "info": {}, - "size": 321, + "size": 53, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "main.js" + "2z3sh82dl8glu.js.map" ] }, { "type": "asset", - "name": "main.js.map", + "name": "turbopack-2miq62fi5cp2x.js", "info": {}, - "size": 53, + "size": 309, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "main.js.map" + "turbopack-2miq62fi5cp2x.js" ] } ], @@ -97,7 +97,7 @@ "name": "basic/chunk_loading_global/input/index.js", "id": "[project]/basic/chunk_loading_global/input/index.js [client] (ecmascript)", "chunks": [ - "input_index_0yzwyi6ourq_9.js" + "1579vm8q43ebc.js" ], "size": 93 } diff --git a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/main.js b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/turbopack-2miq62fi5cp2x.js similarity index 53% rename from crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/main.js rename to crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/turbopack-2miq62fi5cp2x.js index af315af727..c4ef2713a8 100644 --- a/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/chunk_loading_global/output/turbopack-2miq62fi5cp2x.js @@ -1,5 +1,5 @@ (globalThis["utooChunk_myApp"] || (globalThis["utooChunk_myApp"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_0yzwyi6ourq_9.js"],"runtimeModuleIds":["[project]/basic/chunk_loading_global/input/index.js [client] (ecmascript)"]} + {"otherChunks":["1579vm8q43ebc.js"],"runtimeModuleIds":["[project]/basic/chunk_loading_global/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/_project__basic_conditional_exports_server_1xvsvdgxh79re.js.map b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/022nenubu4l6h.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/_project__basic_conditional_exports_server_1xvsvdgxh79re.js.map rename to crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/022nenubu4l6h.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/_project__basic_conditional_exports_server_1xvsvdgxh79re.js b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/0p4qr3d_f15-q.js similarity index 92% rename from crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/_project__basic_conditional_exports_server_1xvsvdgxh79re.js rename to crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/0p4qr3d_f15-q.js index 74aba879d6..8371fe31a3 100644 --- a/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/_project__basic_conditional_exports_server_1xvsvdgxh79re.js +++ b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/0p4qr3d_f15-q.js @@ -19,4 +19,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_project__basic_conditional_exports_server_1xvsvdgxh79re.js.map \ No newline at end of file +//# sourceMappingURL=022nenubu4l6h.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/main.js.map b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/main.js.map rename to crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/main.js b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/main.js deleted file mode 100644 index 6523963062..0000000000 --- a/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project__basic_conditional_exports_server_1xvsvdgxh79re.js"],"runtimeModuleIds":["[project]/basic/conditional_exports_server/input/client.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/b.js b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/turbopack-31be-1875acl9.js similarity index 57% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/b.js rename to crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/turbopack-31be-1875acl9.js index c7ff2faf8d..b2145846ce 100644 --- a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/b.js +++ b/crates/pack-tests/tests/snapshot/basic/conditional_exports_server/output/client/turbopack-31be-1875acl9.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1r8qa36x6dvh-.js"],"runtimeModuleIds":["[project]/basic/multi_page_shared_outputs/input/b.js [client] (ecmascript)"]} + {"otherChunks":["0p4qr3d_f15-q.js"],"runtimeModuleIds":["[project]/basic/conditional_exports_server/input/client.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/copy/output/input_index_0eqdxa7ujoyj7.js b/crates/pack-tests/tests/snapshot/basic/copy/output/143dhxybrbcom.js similarity index 84% rename from crates/pack-tests/tests/snapshot/basic/copy/output/input_index_0eqdxa7ujoyj7.js rename to crates/pack-tests/tests/snapshot/basic/copy/output/143dhxybrbcom.js index 2bfec46665..0d1179b662 100644 --- a/crates/pack-tests/tests/snapshot/basic/copy/output/input_index_0eqdxa7ujoyj7.js +++ b/crates/pack-tests/tests/snapshot/basic/copy/output/143dhxybrbcom.js @@ -5,4 +5,4 @@ console.log('copy example'); }), ]); -//# sourceMappingURL=input_index_0eqdxa7ujoyj7.js.map \ No newline at end of file +//# sourceMappingURL=297yz7pyxzn_w.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/copy/output/input_index_0eqdxa7ujoyj7.js.map b/crates/pack-tests/tests/snapshot/basic/copy/output/297yz7pyxzn_w.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/copy/output/input_index_0eqdxa7ujoyj7.js.map rename to crates/pack-tests/tests/snapshot/basic/copy/output/297yz7pyxzn_w.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/copy/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/copy/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/copy/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/copy/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/copy/output/stats.json b/crates/pack-tests/tests/snapshot/basic/copy/output/stats.json index 14b9ca79bb..5d61b5fb34 100644 --- a/crates/pack-tests/tests/snapshot/basic/copy/output/stats.json +++ b/crates/pack-tests/tests/snapshot/basic/copy/output/stats.json @@ -3,15 +3,15 @@ "main": { "name": "main", "chunks": [ - "input_index_0eqdxa7ujoyj7.js", - "main.js" + "143dhxybrbcom.js", + "turbopack-3ibokn7r99nej.js" ], "assets": [ { - "name": "input_index_0eqdxa7ujoyj7.js" + "name": "143dhxybrbcom.js" }, { - "name": "main.js" + "name": "turbopack-3ibokn7r99nej.js" } ] } @@ -22,11 +22,11 @@ "initial": false, "entry": false, "recorded": false, - "id": "input_index_0eqdxa7ujoyj7.js", - "size": 333, + "id": "143dhxybrbcom.js", + "size": 321, "hash": "", "files": [ - "input_index_0eqdxa7ujoyj7.js" + "143dhxybrbcom.js" ] }, { @@ -34,109 +34,109 @@ "initial": false, "entry": false, "recorded": false, - "id": "main.js", - "size": 293, + "id": "turbopack-3ibokn7r99nej.js", + "size": 281, "hash": "", "files": [ - "main.js" + "turbopack-3ibokn7r99nej.js" ] } ], "assets": [ { "type": "asset", - "name": "ant.svg", + "name": "143dhxybrbcom.js", "info": {}, - "size": 0, + "size": 321, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "ant.svg" + "143dhxybrbcom.js" ] }, { "type": "asset", - "name": "input_index_0eqdxa7ujoyj7.js", + "name": "297yz7pyxzn_w.js.map", "info": {}, - "size": 333, + "size": 290, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_index_0eqdxa7ujoyj7.js" + "297yz7pyxzn_w.js.map" ] }, { "type": "asset", - "name": "input_index_0eqdxa7ujoyj7.js.map", + "name": "2z3sh82dl8glu.js.map", "info": {}, - "size": 290, + "size": 53, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_index_0eqdxa7ujoyj7.js.map" + "2z3sh82dl8glu.js.map" ] }, { "type": "asset", - "name": "logo.svg", + "name": "ant.svg", "info": {}, - "size": 3896, + "size": 0, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "logo.svg" + "ant.svg" ] }, { "type": "asset", - "name": "main.js", + "name": "logo.svg", "info": {}, - "size": 293, + "size": 3896, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "main.js" + "logo.svg" ] }, { "type": "asset", - "name": "main.js.map", + "name": "reset.css", "info": {}, - "size": 53, + "size": 37, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "main.js.map" + "reset.css" ] }, { "type": "asset", - "name": "reset.css", + "name": "reset2.css", "info": {}, - "size": 37, + "size": 35, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "reset.css" + "reset2.css" ] }, { "type": "asset", - "name": "reset2.css", + "name": "turbopack-3ibokn7r99nej.js", "info": {}, - "size": 35, + "size": 281, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "reset2.css" + "turbopack-3ibokn7r99nej.js" ] } ], @@ -145,7 +145,7 @@ "name": "basic/copy/input/index.js", "id": "[project]/basic/copy/input/index.js [client] (ecmascript)", "chunks": [ - "input_index_0eqdxa7ujoyj7.js" + "143dhxybrbcom.js" ], "size": 79 } diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_console/output/main.js b/crates/pack-tests/tests/snapshot/basic/copy/output/turbopack-3ibokn7r99nej.js similarity index 56% rename from crates/pack-tests/tests/snapshot/optimization/remove_console/output/main.js rename to crates/pack-tests/tests/snapshot/basic/copy/output/turbopack-3ibokn7r99nej.js index 37c1e8ec9f..718a55b2c7 100644 --- a/crates/pack-tests/tests/snapshot/optimization/remove_console/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/copy/output/turbopack-3ibokn7r99nej.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_10brydqt79l14.js"],"runtimeModuleIds":[69]} + {"otherChunks":["143dhxybrbcom.js"],"runtimeModuleIds":["[project]/basic/copy/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/filename/output/input_index_03bspz3w97gef.js.map b/crates/pack-tests/tests/snapshot/basic/filename/output/29zuvuenasfy-.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/filename/output/input_index_03bspz3w97gef.js.map rename to crates/pack-tests/tests/snapshot/basic/filename/output/29zuvuenasfy-.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/filename/output/input_index_03bspz3w97gef.js b/crates/pack-tests/tests/snapshot/basic/filename/output/2u2lk47i27y43.js similarity index 84% rename from crates/pack-tests/tests/snapshot/basic/filename/output/input_index_03bspz3w97gef.js rename to crates/pack-tests/tests/snapshot/basic/filename/output/2u2lk47i27y43.js index 10517ee323..b5e36e85ec 100644 --- a/crates/pack-tests/tests/snapshot/basic/filename/output/input_index_03bspz3w97gef.js +++ b/crates/pack-tests/tests/snapshot/basic/filename/output/2u2lk47i27y43.js @@ -5,4 +5,4 @@ console.log('this is filename output'); }), ]); -//# sourceMappingURL=input_index_03bspz3w97gef.js.map \ No newline at end of file +//# sourceMappingURL=29zuvuenasfy-.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/filename/output/main.a1a09d33.js b/crates/pack-tests/tests/snapshot/basic/filename/output/main.a1a09d33.js new file mode 100644 index 0000000000..1b24301efd --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/filename/output/main.a1a09d33.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2u2lk47i27y43.js"],"runtimeModuleIds":["[project]/basic/filename/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/_project__basic_foreign_jsx_transform_10dxbc22alihh.js.map b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/0grf-_mcwtyo7.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/_project__basic_foreign_jsx_transform_10dxbc22alihh.js.map rename to crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/0grf-_mcwtyo7.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/_project__basic_foreign_jsx_transform_10dxbc22alihh.js b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/29-vnjoiijtet.js similarity index 97% rename from crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/_project__basic_foreign_jsx_transform_10dxbc22alihh.js rename to crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/29-vnjoiijtet.js index 0c370c710e..19518c87cd 100644 --- a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/_project__basic_foreign_jsx_transform_10dxbc22alihh.js +++ b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/29-vnjoiijtet.js @@ -50,4 +50,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project__basic_foreign_jsx_transform_10dxbc22alihh.js.map \ No newline at end of file +//# sourceMappingURL=0grf-_mcwtyo7.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/main.js b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/main.js deleted file mode 100644 index f059af55e8..0000000000 --- a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project__basic_foreign_jsx_transform_10dxbc22alihh.js"],"runtimeModuleIds":["[project]/basic/foreign_jsx_transform/input/index.tsx [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/turbopack-0yrk05nc1m_sd.js b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/turbopack-0yrk05nc1m_sd.js new file mode 100644 index 0000000000..b6b03237e3 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/foreign_jsx_transform/output/turbopack-0yrk05nc1m_sd.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["29-vnjoiijtet.js"],"runtimeModuleIds":["[project]/basic/foreign_jsx_transform/input/index.tsx [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/jsx/output/_project___02s03wfusu1tb.js.map b/crates/pack-tests/tests/snapshot/basic/jsx/output/0ahsux29dbx4r.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/jsx/output/_project___02s03wfusu1tb.js.map rename to crates/pack-tests/tests/snapshot/basic/jsx/output/0ahsux29dbx4r.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/jsx/output/_project___02s03wfusu1tb.js b/crates/pack-tests/tests/snapshot/basic/jsx/output/2v121ifdwced0.js similarity index 96% rename from crates/pack-tests/tests/snapshot/basic/jsx/output/_project___02s03wfusu1tb.js rename to crates/pack-tests/tests/snapshot/basic/jsx/output/2v121ifdwced0.js index 6e804af694..769874aa44 100644 --- a/crates/pack-tests/tests/snapshot/basic/jsx/output/_project___02s03wfusu1tb.js +++ b/crates/pack-tests/tests/snapshot/basic/jsx/output/2v121ifdwced0.js @@ -34,4 +34,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project___02s03wfusu1tb.js.map \ No newline at end of file +//# sourceMappingURL=0ahsux29dbx4r.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/jsx/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/jsx/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/jsx/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/jsx/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/jsx/output/turbopack-3kvyyd357_z66.js b/crates/pack-tests/tests/snapshot/basic/jsx/output/turbopack-3kvyyd357_z66.js new file mode 100644 index 0000000000..45f91b58b9 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/jsx/output/turbopack-3kvyyd357_z66.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2v121ifdwced0.js"],"runtimeModuleIds":["[project]/basic/jsx/input/index.tsx [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/minify/output/input_index_15-2uaf8cdjq0.js.map b/crates/pack-tests/tests/snapshot/basic/minify/output/12oe6zx5quvx6.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/minify/output/input_index_15-2uaf8cdjq0.js.map rename to crates/pack-tests/tests/snapshot/basic/minify/output/12oe6zx5quvx6.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/minify/output/input_index_15-2uaf8cdjq0.js b/crates/pack-tests/tests/snapshot/basic/minify/output/2pqbhz3zlbxfc.js similarity index 87% rename from crates/pack-tests/tests/snapshot/basic/minify/output/input_index_15-2uaf8cdjq0.js rename to crates/pack-tests/tests/snapshot/basic/minify/output/2pqbhz3zlbxfc.js index cd2d532baa..f08ebada1b 100644 --- a/crates/pack-tests/tests/snapshot/basic/minify/output/input_index_15-2uaf8cdjq0.js +++ b/crates/pack-tests/tests/snapshot/basic/minify/output/2pqbhz3zlbxfc.js @@ -11,4 +11,4 @@ function getMessage() { }), ]); -//# sourceMappingURL=input_index_15-2uaf8cdjq0.js.map \ No newline at end of file +//# sourceMappingURL=12oe6zx5quvx6.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/minify/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/minify/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/minify/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/minify/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/main.js b/crates/pack-tests/tests/snapshot/basic/minify/output/turbopack-0jw2n02sqq4mv.js similarity index 68% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/main.js rename to crates/pack-tests/tests/snapshot/basic/minify/output/turbopack-0jw2n02sqq4mv.js index 518916b23d..b3e4e313d4 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/minify/output/turbopack-0jw2n02sqq4mv.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0-sfuk63j8wyd.js"],"runtimeModuleIds":[38]} + {"otherChunks":["2pqbhz3zlbxfc.js"],"runtimeModuleIds":[71]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_1r8qa36x6dvh-.js.map b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/13992yqznsnym.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_1r8qa36x6dvh-.js.map rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/13992yqznsnym.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_a_1wi34tpx8aov-.js.map b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/14uu8q2ttdrkm.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_a_1wi34tpx8aov-.js.map rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/14uu8q2ttdrkm.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_1r8qa36x6dvh-.js b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/1yuwjct22tfg4.js similarity index 97% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_1r8qa36x6dvh-.js rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/1yuwjct22tfg4.js index 1283c2f7c1..7f2a231d7a 100644 --- a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_1r8qa36x6dvh-.js +++ b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/1yuwjct22tfg4.js @@ -43,4 +43,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_1r8qa36x6dvh-.js.map \ No newline at end of file +//# sourceMappingURL=13992yqznsnym.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/a.js.map b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/a.js.map rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_a_1wi34tpx8aov-.js b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/3_jpehk02pkjp.js similarity index 85% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_a_1wi34tpx8aov-.js rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/3_jpehk02pkjp.js index 8f33198cb5..ec506696c1 100644 --- a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/input_a_1wi34tpx8aov-.js +++ b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/3_jpehk02pkjp.js @@ -5,4 +5,4 @@ globalThis.pageA = true; }), ]); -//# sourceMappingURL=input_a_1wi34tpx8aov-.js.map \ No newline at end of file +//# sourceMappingURL=14uu8q2ttdrkm.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/main.js b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/turbopack-1sh4a-hggod9u.js similarity index 56% rename from crates/pack-tests/tests/snapshot/basic/server_function/output/client/main.js rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/turbopack-1sh4a-hggod9u.js index e170fed2f5..a491a97471 100644 --- a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/main.js +++ b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/turbopack-1sh4a-hggod9u.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1oleh6oy595fs.js"],"runtimeModuleIds":["[project]/basic/server_function/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["3_jpehk02pkjp.js"],"runtimeModuleIds":["[project]/basic/multi_page_shared_outputs/input/a.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/define/basic/output/main.js b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/turbopack-2eaf_xnwfmauq.js similarity index 56% rename from crates/pack-tests/tests/snapshot/define/basic/output/main.js rename to crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/turbopack-2eaf_xnwfmauq.js index 1dbea5d28a..12c7dc5713 100644 --- a/crates/pack-tests/tests/snapshot/define/basic/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/turbopack-2eaf_xnwfmauq.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_08kh12o3_hhhg.js"],"runtimeModuleIds":["[project]/define/basic/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["1yuwjct22tfg4.js"],"runtimeModuleIds":["[project]/basic/multi_page_shared_outputs/input/b.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/_project___00b_z3_y0iblx.js.map b/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/08o_h4y1mi9v8.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/_project___00b_z3_y0iblx.js.map rename to crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/08o_h4y1mi9v8.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/_project___00b_z3_y0iblx.js b/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/1zifx3xkm1sqe.js similarity index 95% rename from crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/_project___00b_z3_y0iblx.js rename to crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/1zifx3xkm1sqe.js index d1129b281c..c114cdbd01 100644 --- a/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/_project___00b_z3_y0iblx.js +++ b/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/1zifx3xkm1sqe.js @@ -32,4 +32,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project___00b_z3_y0iblx.js.map \ No newline at end of file +//# sourceMappingURL=08o_h4y1mi9v8.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/b.js.map b/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/b.js.map rename to crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/define/complex/output/main.js b/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/turbopack-22k_zct8_tcm9.js similarity index 57% rename from crates/pack-tests/tests/snapshot/define/complex/output/main.js rename to crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/turbopack-22k_zct8_tcm9.js index 55b66afb6b..4ae4f3decb 100644 --- a/crates/pack-tests/tests/snapshot/define/complex/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/turbopack-22k_zct8_tcm9.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_1rq69kqhx505m.js"],"runtimeModuleIds":["[project]/define/complex/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["1zifx3xkm1sqe.js"],"runtimeModuleIds":["[project]/basic/no_named_export_default/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler/output/_project___0d2pcxkpt90d1.js.map b/crates/pack-tests/tests/snapshot/basic/react_compiler/output/013n-sebz5ruu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/react_compiler/output/_project___0d2pcxkpt90d1.js.map rename to crates/pack-tests/tests/snapshot/basic/react_compiler/output/013n-sebz5ruu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/react_compiler/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/react_compiler/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler/output/_project___0d2pcxkpt90d1.js b/crates/pack-tests/tests/snapshot/basic/react_compiler/output/39t5uy2i1hykc.js similarity index 98% rename from crates/pack-tests/tests/snapshot/basic/react_compiler/output/_project___0d2pcxkpt90d1.js rename to crates/pack-tests/tests/snapshot/basic/react_compiler/output/39t5uy2i1hykc.js index 31e3d3321b..284fd5f9ee 100644 --- a/crates/pack-tests/tests/snapshot/basic/react_compiler/output/_project___0d2pcxkpt90d1.js +++ b/crates/pack-tests/tests/snapshot/basic/react_compiler/output/39t5uy2i1hykc.js @@ -119,4 +119,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project___0d2pcxkpt90d1.js.map \ No newline at end of file +//# sourceMappingURL=013n-sebz5ruu.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/jsx/output/main.js b/crates/pack-tests/tests/snapshot/basic/react_compiler/output/turbopack-32j1gxxq09yp-.js similarity index 56% rename from crates/pack-tests/tests/snapshot/basic/jsx/output/main.js rename to crates/pack-tests/tests/snapshot/basic/react_compiler/output/turbopack-32j1gxxq09yp-.js index 773f50a3fd..5418833d6b 100644 --- a/crates/pack-tests/tests/snapshot/basic/jsx/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/react_compiler/output/turbopack-32j1gxxq09yp-.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___02s03wfusu1tb.js"],"runtimeModuleIds":["[project]/basic/jsx/input/index.tsx [client] (ecmascript)"]} + {"otherChunks":["39t5uy2i1hykc.js"],"runtimeModuleIds":["[project]/basic/react_compiler/input/index.jsx [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/_root-of-the-server___0i2mg0h-qucpn.js b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/0zpff51oni7bs.js similarity index 98% rename from crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/_root-of-the-server___0i2mg0h-qucpn.js rename to crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/0zpff51oni7bs.js index 1113c34755..cc0193af7c 100644 --- a/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/_root-of-the-server___0i2mg0h-qucpn.js +++ b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/0zpff51oni7bs.js @@ -113,4 +113,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_root-of-the-server___0i2mg0h-qucpn.js.map \ No newline at end of file +//# sourceMappingURL=1txwnurf-05h9.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/_root-of-the-server___0i2mg0h-qucpn.js.map b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/1txwnurf-05h9.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/_root-of-the-server___0i2mg0h-qucpn.js.map rename to crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/1txwnurf-05h9.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/react_compiler/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/main.js b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/main.js deleted file mode 100644 index f427755bcd..0000000000 --- a/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___0i2mg0h-qucpn.js"],"runtimeModuleIds":["[project]/basic/react_compiler_react17/input/index.jsx [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/mdx/basic/output/main.js b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/turbopack-1z57lf3yiky1n.js similarity index 57% rename from crates/pack-tests/tests/snapshot/mdx/basic/output/main.js rename to crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/turbopack-1z57lf3yiky1n.js index 73f5ff107c..fbdc4f587f 100644 --- a/crates/pack-tests/tests/snapshot/mdx/basic/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/turbopack-1z57lf3yiky1n.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project__mdx_basic_1_51ij72a3-ch.js"],"runtimeModuleIds":["[project]/mdx/basic/input/index.js [client] (ecmascript)"]} + {"otherChunks":["0zpff51oni7bs.js"],"runtimeModuleIds":["[project]/basic/react_compiler_react17/input/index.jsx [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/input_0-ag_n2qqgdwb.js b/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/3zwzd5bh9juvi.js similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/server_alias/output/client/input_0-ag_n2qqgdwb.js rename to crates/pack-tests/tests/snapshot/basic/server_alias/output/client/3zwzd5bh9juvi.js diff --git a/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/client.js b/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/client.js deleted file mode 100644 index 469977b607..0000000000 --- a/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/client.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0-ag_n2qqgdwb.js"],"runtimeModuleIds":["[project]/basic/server_alias/input/client.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/turbopack-2zbvq1oz57_tx.js b/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/turbopack-2zbvq1oz57_tx.js new file mode 100644 index 0000000000..3e5960854b --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/server_alias/output/client/turbopack-2zbvq1oz57_tx.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["3zwzd5bh9juvi.js"],"runtimeModuleIds":["[project]/basic/server_alias/input/client.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/input_1oleh6oy595fs.js.map b/crates/pack-tests/tests/snapshot/basic/server_function/output/client/0p87rhipx4hpy.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/server_function/output/client/input_1oleh6oy595fs.js.map rename to crates/pack-tests/tests/snapshot/basic/server_function/output/client/0p87rhipx4hpy.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/server_function/output/client/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/react_compiler_react17/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/server_function/output/client/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/input_1oleh6oy595fs.js b/crates/pack-tests/tests/snapshot/basic/server_function/output/client/3kd0xu-o-qop8.js similarity index 98% rename from crates/pack-tests/tests/snapshot/basic/server_function/output/client/input_1oleh6oy595fs.js rename to crates/pack-tests/tests/snapshot/basic/server_function/output/client/3kd0xu-o-qop8.js index 274fc44e99..84483d1fad 100644 --- a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/input_1oleh6oy595fs.js +++ b/crates/pack-tests/tests/snapshot/basic/server_function/output/client/3kd0xu-o-qop8.js @@ -74,4 +74,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_1oleh6oy595fs.js.map \ No newline at end of file +//# sourceMappingURL=0p87rhipx4hpy.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/turbopack-27-m__dcexbxp.js b/crates/pack-tests/tests/snapshot/basic/server_function/output/client/turbopack-27-m__dcexbxp.js new file mode 100644 index 0000000000..ceeb2244e8 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/server_function/output/client/turbopack-27-m__dcexbxp.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["3kd0xu-o-qop8.js"],"runtimeModuleIds":["[project]/basic/server_function/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/_project__basic_server_relative_root_1pk0zos2v8j3r.js b/crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/39mtfllbx8e5m.js similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/_project__basic_server_relative_root_1pk0zos2v8j3r.js rename to crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/39mtfllbx8e5m.js diff --git a/crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/turbopack-0d0o3r2c_irfm.js b/crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/turbopack-0d0o3r2c_irfm.js new file mode 100644 index 0000000000..b9bb38005f --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/server_relative_root/output/client/turbopack-0d0o3r2c_irfm.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["39mtfllbx8e5m.js"],"runtimeModuleIds":["[project]/basic/server_relative_root/input/client.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/assert.js b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/assert.js new file mode 100644 index 0000000000..8fed22355c --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/assert.js @@ -0,0 +1,23 @@ +const assert = require("node:assert/strict"); +const fs = require("node:fs"); +const path = require("node:path"); + +const outputDir = path.join(__dirname, "output"); +const files = fs.readdirSync(outputDir); +const chunks = files.filter((file) => /\.(js|css)$/.test(file)); + +assert(chunks.filter((file) => file.endsWith(".js")).length >= 3); +assert.equal(chunks.filter((file) => file.endsWith(".css")).length, 2); +assert(chunks.some((file) => file.startsWith("turbopack-"))); + +for (const file of files) { + assert.match(file, /^(?:turbopack-)?[0-9a-z_-]{13}\.(?:js|css)(?:\.map)?$/); +} + +// The dummy runtime used by snapshots does not emit a source map comment. +for (const file of chunks.filter((file) => !file.startsWith("turbopack-"))) { + const content = fs.readFileSync(path.join(outputDir, file), "utf8"); + const sourceMap = content.match(/sourceMappingURL=([^\s*]+)/); + assert(sourceMap, `missing source map reference in ${file}`); + assert(files.includes(sourceMap[1]), `missing source map ${sourceMap[1]}`); +} diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/config.json b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/config.json new file mode 100644 index 0000000000..742601643e --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/config.json @@ -0,0 +1,11 @@ +{ + "config": { + "entry": [ + { + "import": "input/index.js", + "name": "an_entry_name_that_should_not_appear_in_the_production_filename" + } + ], + "sourceMaps": true + } +} diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css new file mode 100644 index 0000000000..7cfe2bf449 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css @@ -0,0 +1,3 @@ +body { + color: blue; +} diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css new file mode 100644 index 0000000000..29da9e2599 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css @@ -0,0 +1,3 @@ +.lazy { + color: red; +} diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js new file mode 100644 index 0000000000..057cf7c467 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js @@ -0,0 +1,3 @@ +import "./lazy.css"; + +export default "lazy loaded"; diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/index.js b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/index.js new file mode 100644 index 0000000000..1c851f0fff --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/input/index.js @@ -0,0 +1,6 @@ +import "./a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css"; + +globalThis.loadFeature = () => + import( + "./a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js" + ); diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0645wpwgexbq6.css b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0645wpwgexbq6.css new file mode 100644 index 0000000000..767a9932e8 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0645wpwgexbq6.css @@ -0,0 +1,6 @@ +/* [project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css [client] (css) */ +.lazy { + color: red; +} + +/*# sourceMappingURL=3x38j0854438f.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0_13gtirjpqwj.css b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0_13gtirjpqwj.css new file mode 100644 index 0000000000..80bb4df5de --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0_13gtirjpqwj.css @@ -0,0 +1,6 @@ +/* [project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css [client] (css) */ +body { + color: #00f; +} + +/*# sourceMappingURL=0sbg61air7ho8.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0sbg61air7ho8.css.map b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0sbg61air7ho8.css.map new file mode 100644 index 0000000000..9cbb3d558a --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0sbg61air7ho8.css.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css"],"sourcesContent":["body {\n color: blue;\n}\n"],"names":[],"mappings":"AAAA"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0t5p--549vsp5.js b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0t5p--549vsp5.js new file mode 100644 index 0000000000..37eb2797a9 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/0t5p--549vsp5.js @@ -0,0 +1,15 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, +"[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript)", ((__turbopack_context__) => { +"use strict"; + +; +var __TURBOPACK__default__export__ = "lazy loaded"; +__turbopack_context__.s([ + "default", + 0, + __TURBOPACK__default__export__ +]); +}), +]); + +//# sourceMappingURL=2fza6klz8zr59.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2-k201oerkvrd.js.map b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2-k201oerkvrd.js.map new file mode 100644 index 0000000000..2678ab8d1e --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2-k201oerkvrd.js.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/index.js"],"sourcesContent":["import \"./a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css\";\n\nglobalThis.loadFeature = () =>\n import(\n \"./a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js\"\n );\n"],"names":["globalThis","loadFeature"],"mappings":";AAEAA,WAAWC,WAAW,GAAG"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2fza6klz8zr59.js.map b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2fza6klz8zr59.js.map new file mode 100644 index 0000000000..687ac5a0b2 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2fza6klz8zr59.js.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js"],"sourcesContent":["import \"./lazy.css\";\n\nexport default \"lazy loaded\";\n"],"names":[],"mappings":";qCAEe"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2n11yfcofpa8_.js b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2n11yfcofpa8_.js new file mode 100644 index 0000000000..63fbd4555f --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2n11yfcofpa8_.js @@ -0,0 +1,22 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, +"[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript, async loader)", ((__turbopack_context__) => { + +__turbopack_context__.v((parentImport) => { + return Promise.all([ + "0645wpwgexbq6.css", + "0t5p--549vsp5.js" +].map((chunk) => __turbopack_context__.l(chunk))).then(() => { + return parentImport("[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript)"); + }); +}); +}), +"[project]/basic/short_hash_filenames/input/index.js [client] (ecmascript)", ((__turbopack_context__) => { +"use strict"; + +; +globalThis.loadFeature = ()=>__turbopack_context__.A("[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript, async loader)"); +__turbopack_context__.s([]); +}), +]); + +//# sourceMappingURL=2-k201oerkvrd.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/server_function/output/client/main.js.map b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/server_function/output/client/main.js.map rename to crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/3x38j0854438f.css.map b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/3x38j0854438f.css.map new file mode 100644 index 0000000000..846065d0f0 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/3x38j0854438f.css.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css"],"sourcesContent":[".lazy {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/main.js b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/turbopack-1gwlyrd5z5j77.js similarity index 59% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/main.js rename to crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/turbopack-1gwlyrd5z5j77.js index 8ed46653ff..9f5b8a2aa1 100644 --- a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/main.js +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_filenames/output/turbopack-1gwlyrd5z5j77.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0-9g5nwc1co3i.js"],"runtimeModuleIds":["[project]/circular_dependency/reexport_cycle_class/input/index.js [client] (ecmascript)"]} + {"otherChunks":["0_13gtirjpqwj.css","2n11yfcofpa8_.js"],"runtimeModuleIds":["[project]/basic/short_hash_filenames/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/assert.js b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/assert.js new file mode 100644 index 0000000000..e7b0552a2f --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/assert.js @@ -0,0 +1,31 @@ +const assert = require("node:assert/strict"); +const fs = require("node:fs"); +const path = require("node:path"); + +const outputDir = path.join(__dirname, "output"); +assert(fs.existsSync(path.join(outputDir, "scripts/main.js"))); + +for (const [directory, extension] of [ + ["chunks", "js"], + ["styles", "css"], +]) { + const files = fs.readdirSync(path.join(outputDir, directory)); + assert(files.some((file) => file.endsWith(`.${extension}`))); + for (const file of files) { + assert.match( + file, + new RegExp(`^.+\\.[0-9a-f]{8}\\.${extension}(?:\\.map)?$`), + ); + } +} + +assert( + fs + .readdirSync(path.join(outputDir, "chunks")) + .some((file) => + file.includes( + "directory_name_that_must_not_appear_in_production_chunk_urls_lazy", + ), + ), + "[name] templates must preserve readable chunk names", +); diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/config.json b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/config.json new file mode 100644 index 0000000000..98dd129966 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/config.json @@ -0,0 +1,16 @@ +{ + "config": { + "entry": [ + { + "import": "../short_hash_filenames/input/index.js", + "name": "main" + } + ], + "output": { + "filename": "scripts/[name].js", + "chunkFilename": "chunks/[name].[contenthash:8].js", + "cssFilename": "styles/[name].[contenthash:8].css" + }, + "sourceMaps": true + } +} diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.4f78c5e3.js b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.4f78c5e3.js new file mode 100644 index 0000000000..b8fdfdd894 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.4f78c5e3.js @@ -0,0 +1,15 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, +"[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript)", ((__turbopack_context__) => { +"use strict"; + +; +var __TURBOPACK__default__export__ = "lazy loaded"; +__turbopack_context__.s([ + "default", + 0, + __TURBOPACK__default__export__ +]); +}), +]); + +//# sourceMappingURL=2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.c17efc04.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.c17efc04.js.map b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.c17efc04.js.map new file mode 100644 index 0000000000..687ac5a0b2 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.c17efc04.js.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js"],"sourcesContent":["import \"./lazy.css\";\n\nexport default \"lazy loaded\";\n"],"names":[],"mappings":";qCAEe"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.9b9a8ff9.js.map b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.9b9a8ff9.js.map new file mode 100644 index 0000000000..2678ab8d1e --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.9b9a8ff9.js.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/index.js"],"sourcesContent":["import \"./a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css\";\n\nglobalThis.loadFeature = () =>\n import(\n \"./a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js\"\n );\n"],"names":["globalThis","loadFeature"],"mappings":";AAEAA,WAAWC,WAAW,GAAG"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.db5e0268.js b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.db5e0268.js new file mode 100644 index 0000000000..8e15686e49 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.db5e0268.js @@ -0,0 +1,22 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, +"[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript, async loader)", ((__turbopack_context__) => { + +__turbopack_context__.v((parentImport) => { + return Promise.all([ + "styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.59d582f7.css", + "chunks/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_1mtri6cs54_t9.4f78c5e3.js" +].map((chunk) => __turbopack_context__.l(chunk))).then(() => { + return parentImport("[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript)"); + }); +}); +}), +"[project]/basic/short_hash_filenames/input/index.js [client] (ecmascript)", ((__turbopack_context__) => { +"use strict"; + +; +globalThis.loadFeature = ()=>__turbopack_context__.A("[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.js [client] (ecmascript, async loader)"); +__turbopack_context__.s([]); +}), +]); + +//# sourceMappingURL=_project__basic_short_hash_filenames_input_0o3qeuvp18509.9b9a8ff9.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/scripts/main.js b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/scripts/main.js new file mode 100644 index 0000000000..ab5cfbc796 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/scripts/main.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.a9fcc3c4.css","chunks/_project__basic_short_hash_filenames_input_0o3qeuvp18509.db5e0268.js"],"runtimeModuleIds":["[project]/basic/short_hash_filenames/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/main.js.map b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/scripts/main.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/main.js.map rename to crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/scripts/main.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.59d582f7.css b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.59d582f7.css new file mode 100644 index 0000000000..02bd0e9768 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.59d582f7.css @@ -0,0 +1,6 @@ +/* [project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css [client] (css) */ +.lazy { + color: red; +} + +/*# sourceMappingURL=2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.7252311e.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.7252311e.css.map b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.7252311e.css.map new file mode 100644 index 0000000000..846065d0f0 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/2fb49_directory_name_that_must_not_appear_in_production_chunk_urls_lazy_0j7go8k1qr856.7252311e.css.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/lazy.css"],"sourcesContent":[".lazy {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.6a3c70b3.css.map b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.6a3c70b3.css.map new file mode 100644 index 0000000000..9cbb3d558a --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.6a3c70b3.css.map @@ -0,0 +1,6 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css"],"sourcesContent":["body {\n color: blue;\n}\n"],"names":[],"mappings":"AAAA"}}] +} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.a9fcc3c4.css b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.a9fcc3c4.css new file mode 100644 index 0000000000..5765d40d84 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/basic/short_hash_templates/output/styles/654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.a9fcc3c4.css @@ -0,0 +1,6 @@ +/* [project]/basic/short_hash_filenames/input/a_very_long_directory_name_that_must_not_appear_in_production_chunk_urls/initial.css [client] (css) */ +body { + color: #00f; +} + +/*# sourceMappingURL=654d0_name_that_must_not_appear_in_production_chunk_urls_initial_14bc-o2k083f0.6a3c70b3.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/input_1v8wsq3zj-evj.js.map b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/24p0pf8xslnk2.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/input_1v8wsq3zj-evj.js.map rename to crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/24p0pf8xslnk2.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/app.js.map b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/app.js.map rename to crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/input_1v8wsq3zj-evj.js b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/3yu4ts37d3a9k.js similarity index 97% rename from crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/input_1v8wsq3zj-evj.js rename to crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/3yu4ts37d3a9k.js index 29b7f2fa33..4047f5dfff 100644 --- a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/input_1v8wsq3zj-evj.js +++ b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/3yu4ts37d3a9k.js @@ -31,4 +31,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_1v8wsq3zj-evj.js.map \ No newline at end of file +//# sourceMappingURL=24p0pf8xslnk2.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/stats.json b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/stats.json index d7a1bbb162..15bd8b0d9f 100644 --- a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/stats.json +++ b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/stats.json @@ -14,15 +14,15 @@ "app": { "name": "app", "chunks": [ - "app.js", - "input_1v8wsq3zj-evj.js" + "3yu4ts37d3a9k.js", + "turbopack-03bvao1fcu-xy.js" ], "assets": [ { - "name": "app.js" + "name": "3yu4ts37d3a9k.js" }, { - "name": "input_1v8wsq3zj-evj.js" + "name": "turbopack-03bvao1fcu-xy.js" } ] }, @@ -44,11 +44,11 @@ "initial": false, "entry": false, "recorded": false, - "id": "a.js", - "size": 447, + "id": "3yu4ts37d3a9k.js", + "size": 1615, "hash": "", "files": [ - "a.js" + "3yu4ts37d3a9k.js" ] }, { @@ -56,11 +56,11 @@ "initial": false, "entry": false, "recorded": false, - "id": "app.js", - "size": 312, + "id": "a.js", + "size": 447, "hash": "", "files": [ - "app.js" + "a.js" ] }, { @@ -80,109 +80,109 @@ "initial": false, "entry": false, "recorded": false, - "id": "input_1v8wsq3zj-evj.js", - "size": 1621, + "id": "turbopack-03bvao1fcu-xy.js", + "size": 306, "hash": "", "files": [ - "input_1v8wsq3zj-evj.js" + "turbopack-03bvao1fcu-xy.js" ] } ], "assets": [ { "type": "asset", - "name": "a.js", + "name": "24p0pf8xslnk2.js.map", "info": {}, - "size": 447, + "size": 908, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "a.js" + "24p0pf8xslnk2.js.map" ] }, { "type": "asset", - "name": "a.js.map", + "name": "2z3sh82dl8glu.js.map", "info": {}, - "size": 280, + "size": 53, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "a.js.map" + "2z3sh82dl8glu.js.map" ] }, { "type": "asset", - "name": "app.js", + "name": "3yu4ts37d3a9k.js", "info": {}, - "size": 312, + "size": 1615, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "app.js" + "3yu4ts37d3a9k.js" ] }, { "type": "asset", - "name": "app.js.map", + "name": "a.js", "info": {}, - "size": 53, + "size": 447, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "app.js.map" + "a.js" ] }, { "type": "asset", - "name": "b.js", + "name": "a.js.map", "info": {}, - "size": 447, + "size": 280, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "b.js" + "a.js.map" ] }, { "type": "asset", - "name": "b.js.map", + "name": "b.js", "info": {}, - "size": 280, + "size": 447, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "b.js.map" + "b.js" ] }, { "type": "asset", - "name": "input_1v8wsq3zj-evj.js", + "name": "b.js.map", "info": {}, - "size": 1621, + "size": 280, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_1v8wsq3zj-evj.js" + "b.js.map" ] }, { "type": "asset", - "name": "input_1v8wsq3zj-evj.js.map", + "name": "turbopack-03bvao1fcu-xy.js", "info": {}, - "size": 908, + "size": 306, "emitted": false, "comparedForEmit": false, "cached": false, "chunks": [ - "input_1v8wsq3zj-evj.js.map" + "turbopack-03bvao1fcu-xy.js" ] } ], @@ -191,7 +191,7 @@ "name": "basic/stats_with_server_and_libraries/input/a.ts", "id": "[project]/basic/stats_with_server_and_libraries/input/a.ts [client] (ecmascript)", "chunks": [ - "input_1v8wsq3zj-evj.js" + "3yu4ts37d3a9k.js" ], "size": 120 }, @@ -207,7 +207,7 @@ "name": "basic/stats_with_server_and_libraries/input/app.ts", "id": "[project]/basic/stats_with_server_and_libraries/input/app.ts [client] (ecmascript)", "chunks": [ - "input_1v8wsq3zj-evj.js" + "3yu4ts37d3a9k.js" ], "size": 936 }, @@ -215,7 +215,7 @@ "name": "basic/stats_with_server_and_libraries/input/b.ts", "id": "[project]/basic/stats_with_server_and_libraries/input/b.ts [client] (ecmascript)", "chunks": [ - "input_1v8wsq3zj-evj.js" + "3yu4ts37d3a9k.js" ], "size": 120 }, diff --git a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/a.js b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/turbopack-03bvao1fcu-xy.js similarity index 58% rename from crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/a.js rename to crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/turbopack-03bvao1fcu-xy.js index 3a720d4f41..f18554abf8 100644 --- a/crates/pack-tests/tests/snapshot/basic/multi_page_shared_outputs/output/a.js +++ b/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/turbopack-03bvao1fcu-xy.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_a_1wi34tpx8aov-.js"],"runtimeModuleIds":["[project]/basic/multi_page_shared_outputs/input/a.js [client] (ecmascript)"]} + {"otherChunks":["3yu4ts37d3a9k.js"],"runtimeModuleIds":["[project]/basic/stats_with_server_and_libraries/input/app.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/main.js.map b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/main.js.map rename to crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/input_14_cs4z8gxuoe.js.map b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/3-tzg3a92_img.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/input_14_cs4z8gxuoe.js.map rename to crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/3-tzg3a92_img.js.map diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/input_14_cs4z8gxuoe.js b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/3piq0xda05yz2.js similarity index 97% rename from crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/input_14_cs4z8gxuoe.js rename to crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/3piq0xda05yz2.js index 20a32a4b59..79977cfc72 100644 --- a/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/input_14_cs4z8gxuoe.js +++ b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/3piq0xda05yz2.js @@ -25,4 +25,4 @@ var __TURBOPACK__default__export__ = __TURBOPACK__imported__module__$5b$project$ }), ]); -//# sourceMappingURL=input_14_cs4z8gxuoe.js.map \ No newline at end of file +//# sourceMappingURL=3-tzg3a92_img.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/main.js b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/main.js deleted file mode 100644 index cd8409e254..0000000000 --- a/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_14_cs4z8gxuoe.js"],"runtimeModuleIds":["[project]/circular_dependency/basic_circular_case/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/promise/output/main.js b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/turbopack-2iraj376dub3u.js similarity index 58% rename from crates/pack-tests/tests/snapshot/externals/promise/output/main.js rename to crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/turbopack-2iraj376dub3u.js index 37ef09354d..14d4bdba61 100644 --- a/crates/pack-tests/tests/snapshot/externals/promise/output/main.js +++ b/crates/pack-tests/tests/snapshot/circular_dependency/basic_circular_case/output/turbopack-2iraj376dub3u.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___00r3egijzt6q5.js"],"runtimeModuleIds":["[project]/externals/promise/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["3piq0xda05yz2.js"],"runtimeModuleIds":["[project]/circular_dependency/basic_circular_case/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/input_14xafvgct4twx.js b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/2jm-a7swh7wpb.js similarity index 99% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/input_14xafvgct4twx.js rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/2jm-a7swh7wpb.js index c14d414b11..4a479ab611 100644 --- a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/input_14xafvgct4twx.js +++ b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/2jm-a7swh7wpb.js @@ -90,4 +90,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_14xafvgct4twx.js.map \ No newline at end of file +//# sourceMappingURL=3ymeky41f37pk.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/main.js.map b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/main.js.map rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/input_14xafvgct4twx.js.map b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/3ymeky41f37pk.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/input_14xafvgct4twx.js.map rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/3ymeky41f37pk.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/app.js b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/turbopack-2ya2rggj7saqq.js similarity index 58% rename from crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/app.js rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/turbopack-2ya2rggj7saqq.js index c3fa18d5a5..2eb9ab2f68 100644 --- a/crates/pack-tests/tests/snapshot/basic/stats_with_server_and_libraries/output/client/app.js +++ b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/turbopack-2ya2rggj7saqq.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1v8wsq3zj-evj.js"],"runtimeModuleIds":["[project]/basic/stats_with_server_and_libraries/input/app.ts [client] (ecmascript)"]} + {"otherChunks":["2jm-a7swh7wpb.js"],"runtimeModuleIds":["[project]/circular_dependency/reexport_cycle_barrel/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/input_0-9g5nwc1co3i.js.map b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/0_13yux4xri6v.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/input_0-9g5nwc1co3i.js.map rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/0_13yux4xri6v.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/main.js.map b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/main.js.map rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/input_0-9g5nwc1co3i.js b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/3jpd3zvf7jld9.js similarity index 98% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/input_0-9g5nwc1co3i.js rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/3jpd3zvf7jld9.js index 448287400d..70aa7af938 100644 --- a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/input_0-9g5nwc1co3i.js +++ b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/3jpd3zvf7jld9.js @@ -52,4 +52,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_0-9g5nwc1co3i.js.map \ No newline at end of file +//# sourceMappingURL=0_13yux4xri6v.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/main.js b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/turbopack-29eolnmkpm3-z.js similarity index 58% rename from crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/main.js rename to crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/turbopack-29eolnmkpm3-z.js index 507664579a..65c72e9378 100644 --- a/crates/pack-tests/tests/snapshot/basic/no_named_export_default/output/main.js +++ b/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_class/output/turbopack-29eolnmkpm3-z.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___00b_z3_y0iblx.js"],"runtimeModuleIds":["[project]/basic/no_named_export_default/input/index.js [client] (ecmascript)"]} + {"otherChunks":["3jpd3zvf7jld9.js"],"runtimeModuleIds":["[project]/circular_dependency/reexport_cycle_class/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/input_1quqytjgbl30q.js b/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/05vg9047-w-c9.js similarity index 98% rename from crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/input_1quqytjgbl30q.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/05vg9047-w-c9.js index 25cf618411..8b6d6f5384 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/input_1quqytjgbl30q.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/05vg9047-w-c9.js @@ -30,4 +30,4 @@ __turbopack_context__.s([], "[project]/concatenate_modules/duplicate-imports/inp }), ]); -//# sourceMappingURL=input_1quqytjgbl30q.js.map \ No newline at end of file +//# sourceMappingURL=3qeaf_7xtjmuu.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/main.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/main.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/input_1quqytjgbl30q.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/3qeaf_7xtjmuu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/input_1quqytjgbl30q.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/3qeaf_7xtjmuu.js.map diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/main.js b/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/turbopack-2bwuhv6g_h6-x.js similarity index 58% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/main.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/turbopack-2bwuhv6g_h6-x.js index c90ac854df..f6ade549eb 100644 --- a/crates/pack-tests/tests/snapshot/ignore_comments/output/main.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/turbopack-2bwuhv6g_h6-x.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___1ps30wbvogjt4.js"],"runtimeModuleIds":["[project]/ignore_comments/input/index.js [client] (ecmascript)"]} + {"otherChunks":["05vg9047-w-c9.js"],"runtimeModuleIds":["[project]/concatenate_modules/duplicate-imports/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/input_index_1xpah8f408lg4.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/0cd7u8e7kt484.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/input_index_1xpah8f408lg4.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/0cd7u8e7kt484.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/main.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/main.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/input_index_1xpah8f408lg4.js b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/32d2sev_v_j58.js similarity index 96% rename from crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/input_index_1xpah8f408lg4.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/32d2sev_v_j58.js index d73dffa4ba..f012fb0bba 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/input_index_1xpah8f408lg4.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/32d2sev_v_j58.js @@ -47,4 +47,4 @@ __turbopack_context__.s([], "[project]/concatenate_modules/export-local-name-con }), ]); -//# sourceMappingURL=input_index_1xpah8f408lg4.js.map \ No newline at end of file +//# sourceMappingURL=0cd7u8e7kt484.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/main.js b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/main.js deleted file mode 100644 index 3dcf827b9d..0000000000 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_1xpah8f408lg4.js"],"runtimeModuleIds":["[project]/concatenate_modules/export-local-name-conflict/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/main.js b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/turbopack-3anuorugws-re.js similarity index 59% rename from crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/main.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/turbopack-3anuorugws-re.js index afded506ef..3456e68b47 100644 --- a/crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/main.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/export-local-name-conflict/output/turbopack-3anuorugws-re.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___1_57-e6_q107h.js"],"runtimeModuleIds":["[project]/style/inline_css_postcss/input/index.js [client] (ecmascript)"]} + {"otherChunks":["32d2sev_v_j58.js"],"runtimeModuleIds":["[project]/concatenate_modules/export-local-name-conflict/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/input_index_14wtd1aj_xt2-.js b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/1famyasenstx3.js similarity index 94% rename from crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/input_index_14wtd1aj_xt2-.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/1famyasenstx3.js index 679e5cdf3a..16575ddf4e 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/input_index_14wtd1aj_xt2-.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/1famyasenstx3.js @@ -22,4 +22,4 @@ __turbopack_context__.s([], "[project]/concatenate_modules/merged_additional_ids }), ]); -//# sourceMappingURL=input_index_14wtd1aj_xt2-.js.map \ No newline at end of file +//# sourceMappingURL=2symiyuald53w.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/input_index_14wtd1aj_xt2-.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/2symiyuald53w.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/input_index_14wtd1aj_xt2-.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/2symiyuald53w.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/a.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/a.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/main.js b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/main.js deleted file mode 100644 index a04df15059..0000000000 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_14wtd1aj_xt2-.js"],"runtimeModuleIds":["[project]/concatenate_modules/merged_additional_ids/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/a.js b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/turbopack-2k3wlgokdbewi.js similarity index 58% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/a.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/turbopack-2k3wlgokdbewi.js index a3c9981484..46f905790b 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/a.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/merged_additional_ids/output/turbopack-2k3wlgokdbewi.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1kbvc_xwakxk_.js"],"runtimeModuleIds":["[project]/concatenate_modules/side-effects-import/input/a.js [client] (ecmascript)"]} + {"otherChunks":["1famyasenstx3.js"],"runtimeModuleIds":["[project]/concatenate_modules/merged_additional_ids/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_1kbvc_xwakxk_.js b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/0csfzh6rnc-kt.js similarity index 97% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_1kbvc_xwakxk_.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/0csfzh6rnc-kt.js index e739dcc894..75c0ac1c11 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_1kbvc_xwakxk_.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/0csfzh6rnc-kt.js @@ -28,4 +28,4 @@ console.log("shared2"); }), ]); -//# sourceMappingURL=input_1kbvc_xwakxk_.js.map \ No newline at end of file +//# sourceMappingURL=3sx9gy4ns9mq0.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_06o2c1pxu7fg0.js b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/24u-h_uy9iic0.js similarity index 97% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_06o2c1pxu7fg0.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/24u-h_uy9iic0.js index 5b12b7c324..65149d7f4e 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_06o2c1pxu7fg0.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/24u-h_uy9iic0.js @@ -28,4 +28,4 @@ console.log("shared2"); }), ]); -//# sourceMappingURL=input_06o2c1pxu7fg0.js.map \ No newline at end of file +//# sourceMappingURL=3f704ewb1l53b.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/b.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/b.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_06o2c1pxu7fg0.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/3f704ewb1l53b.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_06o2c1pxu7fg0.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/3f704ewb1l53b.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_1kbvc_xwakxk_.js.map b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/3sx9gy4ns9mq0.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/input_1kbvc_xwakxk_.js.map rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/3sx9gy4ns9mq0.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/b.js b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/b.js deleted file mode 100644 index e9c3c85a53..0000000000 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/b.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_06o2c1pxu7fg0.js"],"runtimeModuleIds":["[project]/concatenate_modules/side-effects-import/input/b.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/node_polyfill/output/main.js b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/turbopack-0rd1es6nmlk2q.js similarity index 58% rename from crates/pack-tests/tests/snapshot/node_polyfill/output/main.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/turbopack-0rd1es6nmlk2q.js index cd336a51cc..cbf59f55e9 100644 --- a/crates/pack-tests/tests/snapshot/node_polyfill/output/main.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/turbopack-0rd1es6nmlk2q.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___1diyofdh4083v.js"],"runtimeModuleIds":["[project]/node_polyfill/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["0csfzh6rnc-kt.js"],"runtimeModuleIds":["[project]/concatenate_modules/side-effects-import/input/a.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/main.js b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/turbopack-1uc5-ffzrr05a.js similarity index 58% rename from crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/main.js rename to crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/turbopack-1uc5-ffzrr05a.js index 1e7d7bbda5..7b2cb76837 100644 --- a/crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/main.js +++ b/crates/pack-tests/tests/snapshot/concatenate_modules/side-effects-import/output/turbopack-1uc5-ffzrr05a.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___1uejn9u7mr8-g.js"],"runtimeModuleIds":["[project]/style/emotion_no_pragma/input/index.tsx [client] (ecmascript)"]} + {"otherChunks":["24u-h_uy9iic0.js"],"runtimeModuleIds":["[project]/concatenate_modules/side-effects-import/input/b.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/define/basic/output/input_index_ts_08kh12o3_hhhg.js.map b/crates/pack-tests/tests/snapshot/define/basic/output/2kb02gc8tyf8q.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/define/basic/output/input_index_ts_08kh12o3_hhhg.js.map rename to crates/pack-tests/tests/snapshot/define/basic/output/2kb02gc8tyf8q.js.map diff --git a/crates/pack-tests/tests/snapshot/define/basic/output/main.js.map b/crates/pack-tests/tests/snapshot/define/basic/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/define/basic/output/main.js.map rename to crates/pack-tests/tests/snapshot/define/basic/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/define/basic/output/input_index_ts_08kh12o3_hhhg.js b/crates/pack-tests/tests/snapshot/define/basic/output/3vwh4sxqylp92.js similarity index 93% rename from crates/pack-tests/tests/snapshot/define/basic/output/input_index_ts_08kh12o3_hhhg.js rename to crates/pack-tests/tests/snapshot/define/basic/output/3vwh4sxqylp92.js index 056dd5b9ed..55cb99f988 100644 --- a/crates/pack-tests/tests/snapshot/define/basic/output/input_index_ts_08kh12o3_hhhg.js +++ b/crates/pack-tests/tests/snapshot/define/basic/output/3vwh4sxqylp92.js @@ -15,4 +15,4 @@ console.log(("TURBOPACK compile-time value", { }), ]); -//# sourceMappingURL=input_index_ts_08kh12o3_hhhg.js.map \ No newline at end of file +//# sourceMappingURL=2kb02gc8tyf8q.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/58e1d_modules_static-url-package_processes_main_MainWorker_1ygm6s0hxaxg1.js b/crates/pack-tests/tests/snapshot/define/basic/output/turbopack-371afu9r0x72b.js similarity index 56% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/58e1d_modules_static-url-package_processes_main_MainWorker_1ygm6s0hxaxg1.js rename to crates/pack-tests/tests/snapshot/define/basic/output/turbopack-371afu9r0x72b.js index 9ba4e2913b..5a3366d326 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/58e1d_modules_static-url-package_processes_main_MainWorker_1ygm6s0hxaxg1.js +++ b/crates/pack-tests/tests/snapshot/define/basic/output/turbopack-371afu9r0x72b.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js"],"runtimeModuleIds":[277]} + {"otherChunks":["3vwh4sxqylp92.js"],"runtimeModuleIds":["[project]/define/basic/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/define/complex/output/input_index_ts_1rq69kqhx505m.js.map b/crates/pack-tests/tests/snapshot/define/complex/output/1fwpczoeqo2fe.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/define/complex/output/input_index_ts_1rq69kqhx505m.js.map rename to crates/pack-tests/tests/snapshot/define/complex/output/1fwpczoeqo2fe.js.map diff --git a/crates/pack-tests/tests/snapshot/define/complex/output/input_index_ts_1rq69kqhx505m.js b/crates/pack-tests/tests/snapshot/define/complex/output/2465ud80b716l.js similarity index 99% rename from crates/pack-tests/tests/snapshot/define/complex/output/input_index_ts_1rq69kqhx505m.js rename to crates/pack-tests/tests/snapshot/define/complex/output/2465ud80b716l.js index cfb1772877..de1bf97e76 100644 --- a/crates/pack-tests/tests/snapshot/define/complex/output/input_index_ts_1rq69kqhx505m.js +++ b/crates/pack-tests/tests/snapshot/define/complex/output/2465ud80b716l.js @@ -108,4 +108,4 @@ console.log(("TURBOPACK compile-time value", { }), ]); -//# sourceMappingURL=input_index_ts_1rq69kqhx505m.js.map \ No newline at end of file +//# sourceMappingURL=1fwpczoeqo2fe.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/define/complex/output/main.js.map b/crates/pack-tests/tests/snapshot/define/complex/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/define/complex/output/main.js.map rename to crates/pack-tests/tests/snapshot/define/complex/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/define/complex/output/turbopack-0ogt21licxcbe.js b/crates/pack-tests/tests/snapshot/define/complex/output/turbopack-0ogt21licxcbe.js new file mode 100644 index 0000000000..0720137cc9 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/define/complex/output/turbopack-0ogt21licxcbe.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2465ud80b716l.js"],"runtimeModuleIds":["[project]/define/complex/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/input_index_ts_0hglm01kujxmh.js.map b/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/1xucs0qbh-foa.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/input_index_ts_0hglm01kujxmh.js.map rename to crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/1xucs0qbh-foa.js.map diff --git a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/main.js.map b/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/main.js.map rename to crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/input_index_ts_0hglm01kujxmh.js b/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/3cxvmlrfgqdyv.js similarity index 93% rename from crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/input_index_ts_0hglm01kujxmh.js rename to crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/3cxvmlrfgqdyv.js index bc059bdabb..b1ec4bbf75 100644 --- a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/input_index_ts_0hglm01kujxmh.js +++ b/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/3cxvmlrfgqdyv.js @@ -27,4 +27,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_index_ts_0hglm01kujxmh.js.map \ No newline at end of file +//# sourceMappingURL=1xucs0qbh-foa.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/turbopack-0sbxoi_ghduxi.js b/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/turbopack-0sbxoi_ghduxi.js new file mode 100644 index 0000000000..33bc2f9118 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/turbopack-0sbxoi_ghduxi.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["3cxvmlrfgqdyv.js"],"runtimeModuleIds":["[project]/dynamic_import/very-dynamic/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_externals____0a9dx99gw2g61.js b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/0xamz4waolznx.js similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_externals____0a9dx99gw2g61.js rename to crates/pack-tests/tests/snapshot/externals/async-script-externals/output/0xamz4waolznx.js diff --git a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_externals____0a9dx99gw2g61.js.map b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_externals____0a9dx99gw2g61.js.map rename to crates/pack-tests/tests/snapshot/externals/async-script-externals/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_root-of-the-server___0w4apur6hl7wo.js b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/3ji0a7_wgub7l.js similarity index 97% rename from crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_root-of-the-server___0w4apur6hl7wo.js rename to crates/pack-tests/tests/snapshot/externals/async-script-externals/output/3ji0a7_wgub7l.js index 8d54c2e566..904b7ab428 100644 --- a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_root-of-the-server___0w4apur6hl7wo.js +++ b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/3ji0a7_wgub7l.js @@ -28,7 +28,7 @@ __turbopack_async_result__(); __turbopack_context__.v((parentImport) => { return Promise.all([ - "_externals____0a9dx99gw2g61.js" + "0xamz4waolznx.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport("[externals]/_ [external] (_@https://gw.alipayobjects.com/os/lib/lodash/4.17.21/lodash.min.js, script)"); }); @@ -64,4 +64,4 @@ return __turbopack_context__.a(async function(__turbopack_handle_async_dependenc }), ]); -//# sourceMappingURL=_root-of-the-server___0w4apur6hl7wo.js.map \ No newline at end of file +//# sourceMappingURL=3ziusj2jrni8u.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_root-of-the-server___0w4apur6hl7wo.js.map b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/3ziusj2jrni8u.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/async-script-externals/output/_root-of-the-server___0w4apur6hl7wo.js.map rename to crates/pack-tests/tests/snapshot/externals/async-script-externals/output/3ziusj2jrni8u.js.map diff --git a/crates/pack-tests/tests/snapshot/basic/react_compiler/output/main.js b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/turbopack-28toe2a97yrqb.js similarity index 57% rename from crates/pack-tests/tests/snapshot/basic/react_compiler/output/main.js rename to crates/pack-tests/tests/snapshot/externals/async-script-externals/output/turbopack-28toe2a97yrqb.js index ca5563b354..ff85e407b8 100644 --- a/crates/pack-tests/tests/snapshot/basic/react_compiler/output/main.js +++ b/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/turbopack-28toe2a97yrqb.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___0d2pcxkpt90d1.js"],"runtimeModuleIds":["[project]/basic/react_compiler/input/index.jsx [client] (ecmascript)"]} + {"otherChunks":["3ji0a7_wgub7l.js"],"runtimeModuleIds":["[project]/externals/async-script-externals/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/basic/assert.js b/crates/pack-tests/tests/snapshot/externals/basic/assert.js index e425adffd5..be79b4de0d 100644 --- a/crates/pack-tests/tests/snapshot/externals/basic/assert.js +++ b/crates/pack-tests/tests/snapshot/externals/basic/assert.js @@ -2,7 +2,12 @@ const assert = require("node:assert"); const fs = require("node:fs"); const path = require("node:path"); -const runtime = fs.readFileSync(path.join(__dirname, "output", "main.js"), "utf8"); +const outputDir = path.join(__dirname, "output"); +const runtimeFile = fs + .readdirSync(outputDir) + .find((file) => file.startsWith("turbopack-") && file.endsWith(".js")); +assert.ok(runtimeFile, "expected a browser entry runtime"); +const runtime = fs.readFileSync(path.join(outputDir, runtimeFile), "utf8"); assert.match( runtime, diff --git a/crates/pack-tests/tests/snapshot/externals/basic/output/_root-of-the-server___0_xzvfxuywn0_.js b/crates/pack-tests/tests/snapshot/externals/basic/output/0kz5mfnd5vs73.js similarity index 99% rename from crates/pack-tests/tests/snapshot/externals/basic/output/_root-of-the-server___0_xzvfxuywn0_.js rename to crates/pack-tests/tests/snapshot/externals/basic/output/0kz5mfnd5vs73.js index e49aacedd0..bf34d1de52 100644 --- a/crates/pack-tests/tests/snapshot/externals/basic/output/_root-of-the-server___0_xzvfxuywn0_.js +++ b/crates/pack-tests/tests/snapshot/externals/basic/output/0kz5mfnd5vs73.js @@ -129,4 +129,4 @@ return __turbopack_context__.a(async function(__turbopack_handle_async_dependenc }), ]); -//# sourceMappingURL=_root-of-the-server___0_xzvfxuywn0_.js.map \ No newline at end of file +//# sourceMappingURL=2j2zisgihnsgz.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/basic/output/main.js.map b/crates/pack-tests/tests/snapshot/externals/basic/output/1-kkvreecke20.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/basic/output/main.js.map rename to crates/pack-tests/tests/snapshot/externals/basic/output/1-kkvreecke20.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/basic/output/_root-of-the-server___0_xzvfxuywn0_.js.map b/crates/pack-tests/tests/snapshot/externals/basic/output/2j2zisgihnsgz.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/basic/output/_root-of-the-server___0_xzvfxuywn0_.js.map rename to crates/pack-tests/tests/snapshot/externals/basic/output/2j2zisgihnsgz.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/basic/output/main.js b/crates/pack-tests/tests/snapshot/externals/basic/output/turbopack-405h4mfvp041e.js similarity index 99% rename from crates/pack-tests/tests/snapshot/externals/basic/output/main.js rename to crates/pack-tests/tests/snapshot/externals/basic/output/turbopack-405h4mfvp041e.js index 5f7797b9d1..611cd08f4f 100644 --- a/crates/pack-tests/tests/snapshot/externals/basic/output/main.js +++ b/crates/pack-tests/tests/snapshot/externals/basic/output/turbopack-405h4mfvp041e.js @@ -1,6 +1,6 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___0_xzvfxuywn0_.js"],"runtimeModuleIds":["[project]/externals/basic/input/index.js [client] (ecmascript)"]} + {"otherChunks":["0kz5mfnd5vs73.js"],"runtimeModuleIds":["[project]/externals/basic/input/index.js [client] (ecmascript)"]} ]); (() => { var chunksToRegister = globalThis["TURBOPACK"]; @@ -1509,4 +1509,4 @@ chunksToRegister.forEach(registerChunk); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=1-kkvreecke20.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/_root-of-the-server___0n-e08bmzcgr-.js.map b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/0f9pjhvg9s82v.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/_root-of-the-server___0n-e08bmzcgr-.js.map rename to crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/0f9pjhvg9s82v.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/_root-of-the-server___0n-e08bmzcgr-.js b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/2k_b-vg_-ckko.js similarity index 97% rename from crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/_root-of-the-server___0n-e08bmzcgr-.js rename to crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/2k_b-vg_-ckko.js index e73749a3d4..1077f20a17 100644 --- a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/_root-of-the-server___0n-e08bmzcgr-.js +++ b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/2k_b-vg_-ckko.js @@ -33,4 +33,4 @@ return __turbopack_context__.a(async function(__turbopack_handle_async_dependenc }), ]); -//# sourceMappingURL=_root-of-the-server___0n-e08bmzcgr-.js.map \ No newline at end of file +//# sourceMappingURL=0f9pjhvg9s82v.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/main.js.map b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/async-script-externals/output/main.js.map rename to crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/main.js b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/main.js deleted file mode 100644 index 6ec34524df..0000000000 --- a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___0n-e08bmzcgr-.js"],"runtimeModuleIds":["[project]/externals/esm-import-namespace/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/turbopack-38t5zj8hahy4-.js b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/turbopack-38t5zj8hahy4-.js new file mode 100644 index 0000000000..494d5bba2e --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/turbopack-38t5zj8hahy4-.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2k_b-vg_-ckko.js"],"runtimeModuleIds":["[project]/externals/esm-import-namespace/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/promise/assert.js b/crates/pack-tests/tests/snapshot/externals/promise/assert.js index 1c6a0112bb..7161a2e31c 100644 --- a/crates/pack-tests/tests/snapshot/externals/promise/assert.js +++ b/crates/pack-tests/tests/snapshot/externals/promise/assert.js @@ -33,7 +33,11 @@ async function main() { .readdirSync(outputDir) .find( (file) => - file.startsWith("_root-of-the-server___") && file.endsWith(".js"), + file.endsWith(".js") && + !file.startsWith("turbopack-") && + fs + .readFileSync(path.join(outputDir, file), "utf8") + .includes("[external] (promise)"), ); assert.ok(chunkFile, "expected a root chunk containing promise externals"); diff --git a/crates/pack-tests/tests/snapshot/externals/promise/output/_root-of-the-server___00r3egijzt6q5.js b/crates/pack-tests/tests/snapshot/externals/promise/output/1yf9z7zwn2kj-.js similarity index 98% rename from crates/pack-tests/tests/snapshot/externals/promise/output/_root-of-the-server___00r3egijzt6q5.js rename to crates/pack-tests/tests/snapshot/externals/promise/output/1yf9z7zwn2kj-.js index 6b11cb8443..bf5128956c 100644 --- a/crates/pack-tests/tests/snapshot/externals/promise/output/_root-of-the-server___00r3egijzt6q5.js +++ b/crates/pack-tests/tests/snapshot/externals/promise/output/1yf9z7zwn2kj-.js @@ -77,4 +77,4 @@ return __turbopack_context__.a(async function(__turbopack_handle_async_dependenc }), ]); -//# sourceMappingURL=_root-of-the-server___00r3egijzt6q5.js.map \ No newline at end of file +//# sourceMappingURL=32obo1aytlgh7.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/main.js.map b/crates/pack-tests/tests/snapshot/externals/promise/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/esm-import-namespace/output/main.js.map rename to crates/pack-tests/tests/snapshot/externals/promise/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/promise/output/_root-of-the-server___00r3egijzt6q5.js.map b/crates/pack-tests/tests/snapshot/externals/promise/output/32obo1aytlgh7.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/promise/output/_root-of-the-server___00r3egijzt6q5.js.map rename to crates/pack-tests/tests/snapshot/externals/promise/output/32obo1aytlgh7.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/promise/output/turbopack-021n3l2ggtizg.js b/crates/pack-tests/tests/snapshot/externals/promise/output/turbopack-021n3l2ggtizg.js new file mode 100644 index 0000000000..45bc80ef5b --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/promise/output/turbopack-021n3l2ggtizg.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1yf9z7zwn2kj-.js"],"runtimeModuleIds":["[project]/externals/promise/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/assert.js b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/assert.js index 4e60ea7ccf..9d8d6414c2 100644 --- a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/assert.js +++ b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/assert.js @@ -35,14 +35,26 @@ async function evaluateExternal(factory) { async function main() { const outputDir = path.join(__dirname, "output"); - const chunkFile = fs + const chunkFiles = fs .readdirSync(outputDir) - .find((file) => file.startsWith("_externals__") && file.endsWith(".js")); + .filter( + (file) => + file.endsWith(".js") && + !file.startsWith("turbopack-") && + fs + .readFileSync(path.join(outputDir, file), "utf8") + .includes(", script)"), + ); - assert.ok(chunkFile, "expected a chunk containing the script external"); + assert.ok( + chunkFiles.length > 0, + "expected chunks containing the script external", + ); globalThis.TURBOPACK = []; - require(path.join(outputDir, chunkFile)); + for (const chunkFile of chunkFiles) { + require(path.join(outputDir, chunkFile)); + } const registration = globalThis.TURBOPACK.find((item) => item.some( diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_root-of-the-server___183lg4qim4biy.js b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/0mp1c5xo2r3g2.js similarity index 89% rename from crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_root-of-the-server___183lg4qim4biy.js rename to crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/0mp1c5xo2r3g2.js index a72df1a63d..46e8a426a1 100644 --- a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_root-of-the-server___183lg4qim4biy.js +++ b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/0mp1c5xo2r3g2.js @@ -3,7 +3,7 @@ __turbopack_context__.v((parentImport) => { return Promise.all([ - "_externals__JSZip_1e2s1wqm_7c7i.js" + "16ksst39493xt.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport("[externals]/JSZip [external] (JSZip@https://example.com/jszip.js, script)"); }); @@ -19,4 +19,4 @@ load(); }), ]); -//# sourceMappingURL=_root-of-the-server___183lg4qim4biy.js.map \ No newline at end of file +//# sourceMappingURL=42rzdsfwv_620.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_externals__JSZip_1e2s1wqm_7c7i.js b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/16ksst39493xt.js similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_externals__JSZip_1e2s1wqm_7c7i.js rename to crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/16ksst39493xt.js diff --git a/crates/pack-tests/tests/snapshot/externals/promise/output/main.js.map b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/promise/output/main.js.map rename to crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_root-of-the-server___183lg4qim4biy.js.map b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/42rzdsfwv_620.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_root-of-the-server___183lg4qim4biy.js.map rename to crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/42rzdsfwv_620.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/main.js b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/main.js deleted file mode 100644 index 579682428d..0000000000 --- a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___183lg4qim4biy.js"],"runtimeModuleIds":["[project]/externals/script-cjs-namespace/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/turbopack-1mcimxjnb9ldc.js b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/turbopack-1mcimxjnb9ldc.js new file mode 100644 index 0000000000..430f436f42 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/turbopack-1mcimxjnb9ldc.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0mp1c5xo2r3g2.js"],"runtimeModuleIds":["[project]/externals/script-cjs-namespace/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script/assert.js b/crates/pack-tests/tests/snapshot/externals/script/assert.js index 77e1a9ce44..970c249bef 100644 --- a/crates/pack-tests/tests/snapshot/externals/script/assert.js +++ b/crates/pack-tests/tests/snapshot/externals/script/assert.js @@ -40,10 +40,18 @@ async function main() { const chunkFiles = fs .readdirSync(outputDir) .filter( - (file) => file.startsWith("_externals__") && file.endsWith(".js"), + (file) => + file.endsWith(".js") && + !file.startsWith("turbopack-") && + fs + .readFileSync(path.join(outputDir, file), "utf8") + .includes(", script)"), ); - assert.ok(chunkFiles.length > 0, "expected chunks containing script externals"); + assert.ok( + chunkFiles.length > 0, + "expected chunks containing script externals", + ); globalThis.TURBOPACK = []; for (const chunkFile of chunkFiles) { diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/_externals____0a9dx99gw2g61.js b/crates/pack-tests/tests/snapshot/externals/script/output/0xamz4waolznx.js similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script/output/_externals____0a9dx99gw2g61.js rename to crates/pack-tests/tests/snapshot/externals/script/output/0xamz4waolznx.js diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/_root-of-the-server___053x8_zp-1fw4.js b/crates/pack-tests/tests/snapshot/externals/script/output/18bfyk6hfo2v6.js similarity index 91% rename from crates/pack-tests/tests/snapshot/externals/script/output/_root-of-the-server___053x8_zp-1fw4.js rename to crates/pack-tests/tests/snapshot/externals/script/output/18bfyk6hfo2v6.js index 10ac4cc67a..703ce6ab56 100644 --- a/crates/pack-tests/tests/snapshot/externals/script/output/_root-of-the-server___053x8_zp-1fw4.js +++ b/crates/pack-tests/tests/snapshot/externals/script/output/18bfyk6hfo2v6.js @@ -3,7 +3,7 @@ __turbopack_context__.v((parentImport) => { return Promise.all([ - "_externals__EsmScript_1qv01s_ahh4-x.js" + "19i9a7o8mswhz.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport("[externals]/EsmScript [external] (EsmScript@https://example.com/esm-script.js, script)"); }); @@ -13,7 +13,7 @@ __turbopack_context__.v((parentImport) => { __turbopack_context__.v((parentImport) => { return Promise.all([ - "_externals____0a9dx99gw2g61.js" + "0xamz4waolznx.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport("[externals]/_ [external] (_@https://gw.alipayobjects.com/os/lib/lodash/4.17.21/lodash.min.js, script)"); }); @@ -34,4 +34,4 @@ func(); }), ]); -//# sourceMappingURL=_root-of-the-server___053x8_zp-1fw4.js.map \ No newline at end of file +//# sourceMappingURL=3e5jmfhvuijvm.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/_externals__EsmScript_1qv01s_ahh4-x.js b/crates/pack-tests/tests/snapshot/externals/script/output/19i9a7o8mswhz.js similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script/output/_externals__EsmScript_1qv01s_ahh4-x.js rename to crates/pack-tests/tests/snapshot/externals/script/output/19i9a7o8mswhz.js diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_externals__JSZip_1e2s1wqm_7c7i.js.map b/crates/pack-tests/tests/snapshot/externals/script/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/_externals__JSZip_1e2s1wqm_7c7i.js.map rename to crates/pack-tests/tests/snapshot/externals/script/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/_root-of-the-server___053x8_zp-1fw4.js.map b/crates/pack-tests/tests/snapshot/externals/script/output/3e5jmfhvuijvm.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script/output/_root-of-the-server___053x8_zp-1fw4.js.map rename to crates/pack-tests/tests/snapshot/externals/script/output/3e5jmfhvuijvm.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/turbopack-0xrzwp1mbfajr.js b/crates/pack-tests/tests/snapshot/externals/script/output/turbopack-0xrzwp1mbfajr.js new file mode 100644 index 0000000000..64486edfe4 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/script/output/turbopack-0xrzwp1mbfajr.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["18bfyk6hfo2v6.js"],"runtimeModuleIds":["[project]/externals/script/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/server-specific/output/client/2sebnpcgs19aj.js b/crates/pack-tests/tests/snapshot/externals/server-specific/output/client/2sebnpcgs19aj.js new file mode 100644 index 0000000000..2c098ddb42 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/server-specific/output/client/2sebnpcgs19aj.js @@ -0,0 +1,29 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, +"[externals]/global ClientOnly [external] (global ClientOnly, global)", ((__turbopack_context__) => { +"use strict"; + +var mod = globalThis["global"]["ClientOnly"]; + +__turbopack_context__.v(mod); +}), +"[project]/externals/server-specific/input/node_modules/server-only/index.js [client] (ecmascript)", ((__turbopack_context__) => { +"use strict"; + +var __TURBOPACK__default__export__ = "bundled server-only"; +__turbopack_context__.s([ + "f", + 0, + __TURBOPACK__default__export__ +]); +}), +"[project]/externals/server-specific/input/client.ts [client] (ecmascript)", ((__turbopack_context__) => { +"use strict"; + +var __TURBOPACK__imported__module__$5b$externals$5d2f$global__ClientOnly__$5b$external$5d$__$28$global__ClientOnly$2c$__global$29$__ = __turbopack_context__.i("[externals]/global ClientOnly [external] (global ClientOnly, global)"); +var __TURBOPACK__imported__module__$5b$project$5d2f$externals$2f$server$2d$specific$2f$input$2f$node_modules$2f$server$2d$only$2f$index$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/externals/server-specific/input/node_modules/server-only/index.js [client] (ecmascript)"); +; +; +console.log(__TURBOPACK__imported__module__$5b$externals$5d2f$global__ClientOnly__$5b$external$5d$__$28$global__ClientOnly$2c$__global$29$__["default"], __TURBOPACK__imported__module__$5b$project$5d2f$externals$2f$server$2d$specific$2f$input$2f$node_modules$2f$server$2d$only$2f$index$2e$js__$5b$client$5d$__$28$ecmascript$29$__["f"]); +__turbopack_context__.s([]); +}), +]); \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/filename/output/main.fd9a1482.js b/crates/pack-tests/tests/snapshot/externals/server-specific/output/client/turbopack-3ckvltqkqtxbv.js similarity index 56% rename from crates/pack-tests/tests/snapshot/basic/filename/output/main.fd9a1482.js rename to crates/pack-tests/tests/snapshot/externals/server-specific/output/client/turbopack-3ckvltqkqtxbv.js index ae59a3e7c9..d81e4bc7ea 100644 --- a/crates/pack-tests/tests/snapshot/basic/filename/output/main.fd9a1482.js +++ b/crates/pack-tests/tests/snapshot/externals/server-specific/output/client/turbopack-3ckvltqkqtxbv.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_03bspz3w97gef.js"],"runtimeModuleIds":["[project]/basic/filename/input/index.js [client] (ecmascript)"]} + {"otherChunks":["2sebnpcgs19aj.js"],"runtimeModuleIds":["[project]/externals/server-specific/input/client.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/subpath/output/_root-of-the-server___1xia4yux-1nbe.js b/crates/pack-tests/tests/snapshot/externals/subpath/output/0l7naj_aqwo9_.js similarity index 98% rename from crates/pack-tests/tests/snapshot/externals/subpath/output/_root-of-the-server___1xia4yux-1nbe.js rename to crates/pack-tests/tests/snapshot/externals/subpath/output/0l7naj_aqwo9_.js index f01b1a4197..ea69003d53 100644 --- a/crates/pack-tests/tests/snapshot/externals/subpath/output/_root-of-the-server___1xia4yux-1nbe.js +++ b/crates/pack-tests/tests/snapshot/externals/subpath/output/0l7naj_aqwo9_.js @@ -67,4 +67,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_root-of-the-server___1xia4yux-1nbe.js.map \ No newline at end of file +//# sourceMappingURL=3z3rocdimssgq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/main.js.map b/crates/pack-tests/tests/snapshot/externals/subpath/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script-cjs-namespace/output/main.js.map rename to crates/pack-tests/tests/snapshot/externals/subpath/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/subpath/output/_root-of-the-server___1xia4yux-1nbe.js.map b/crates/pack-tests/tests/snapshot/externals/subpath/output/3z3rocdimssgq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/subpath/output/_root-of-the-server___1xia4yux-1nbe.js.map rename to crates/pack-tests/tests/snapshot/externals/subpath/output/3z3rocdimssgq.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/subpath/output/turbopack-2t7y706fm4frt.js b/crates/pack-tests/tests/snapshot/externals/subpath/output/turbopack-2t7y706fm4frt.js new file mode 100644 index 0000000000..2925aec8d9 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/subpath/output/turbopack-2t7y706fm4frt.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0l7naj_aqwo9_.js"],"runtimeModuleIds":["[project]/externals/subpath/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/with-alias/output/_root-of-the-server___1lu09m1w94i2_.js.map b/crates/pack-tests/tests/snapshot/externals/with-alias/output/04wnt00syg070.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/with-alias/output/_root-of-the-server___1lu09m1w94i2_.js.map rename to crates/pack-tests/tests/snapshot/externals/with-alias/output/04wnt00syg070.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/_externals__EsmScript_1qv01s_ahh4-x.js.map b/crates/pack-tests/tests/snapshot/externals/with-alias/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script/output/_externals__EsmScript_1qv01s_ahh4-x.js.map rename to crates/pack-tests/tests/snapshot/externals/with-alias/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/with-alias/output/_root-of-the-server___1lu09m1w94i2_.js b/crates/pack-tests/tests/snapshot/externals/with-alias/output/2zftxrbcmt8_5.js similarity index 92% rename from crates/pack-tests/tests/snapshot/externals/with-alias/output/_root-of-the-server___1lu09m1w94i2_.js rename to crates/pack-tests/tests/snapshot/externals/with-alias/output/2zftxrbcmt8_5.js index ec41e99082..f3978c9d29 100644 --- a/crates/pack-tests/tests/snapshot/externals/with-alias/output/_root-of-the-server___1lu09m1w94i2_.js +++ b/crates/pack-tests/tests/snapshot/externals/with-alias/output/2zftxrbcmt8_5.js @@ -16,4 +16,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_root-of-the-server___1lu09m1w94i2_.js.map \ No newline at end of file +//# sourceMappingURL=04wnt00syg070.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/with-alias/output/turbopack-12didqf61-3gw.js b/crates/pack-tests/tests/snapshot/externals/with-alias/output/turbopack-12didqf61-3gw.js new file mode 100644 index 0000000000..b6bacbbeeb --- /dev/null +++ b/crates/pack-tests/tests/snapshot/externals/with-alias/output/turbopack-12didqf61-3gw.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2zftxrbcmt8_5.js"],"runtimeModuleIds":["[project]/externals/with-alias/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_09-9pxbbrfb39.js b/crates/pack-tests/tests/snapshot/ignore_comments/output/0x10nw1b7odyd.js similarity index 83% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_09-9pxbbrfb39.js rename to crates/pack-tests/tests/snapshot/ignore_comments/output/0x10nw1b7odyd.js index 2a76a8e859..f01ce925a2 100644 --- a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_09-9pxbbrfb39.js +++ b/crates/pack-tests/tests/snapshot/ignore_comments/output/0x10nw1b7odyd.js @@ -5,4 +5,4 @@ module.exports = 'turbopack'; }), ]); -//# sourceMappingURL=input_vercel_cjs_09-9pxbbrfb39.js.map \ No newline at end of file +//# sourceMappingURL=1-x90ng_ztehz.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_09-9pxbbrfb39.js.map b/crates/pack-tests/tests/snapshot/ignore_comments/output/1-x90ng_ztehz.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_09-9pxbbrfb39.js.map rename to crates/pack-tests/tests/snapshot/ignore_comments/output/1-x90ng_ztehz.js.map diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/_root-of-the-server___1ps30wbvogjt4.js.map b/crates/pack-tests/tests/snapshot/ignore_comments/output/2e-o90lkfjmzh.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/_root-of-the-server___1ps30wbvogjt4.js.map rename to crates/pack-tests/tests/snapshot/ignore_comments/output/2e-o90lkfjmzh.js.map diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/_root-of-the-server___1ps30wbvogjt4.js b/crates/pack-tests/tests/snapshot/ignore_comments/output/2eb_i2la0n2v2.js similarity index 96% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/_root-of-the-server___1ps30wbvogjt4.js rename to crates/pack-tests/tests/snapshot/ignore_comments/output/2eb_i2la0n2v2.js index a2e2c0f0ed..564c6605a7 100644 --- a/crates/pack-tests/tests/snapshot/ignore_comments/output/_root-of-the-server___1ps30wbvogjt4.js +++ b/crates/pack-tests/tests/snapshot/ignore_comments/output/2eb_i2la0n2v2.js @@ -10,7 +10,7 @@ module.exports = 'turbopack'; __turbopack_context__.v((parentImport) => { return Promise.all([ - "input_vercel_mjs_0d86h3x3limnc.js" + "43qnlkiri5fi1.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport("[project]/ignore_comments/input/vercel.mjs [client] (ecmascript)"); }); @@ -85,7 +85,7 @@ __turbopack_context__.s([ }), "[project]/ignore_comments/input/vercel.cjs [client] (ecmascript, worker loader)", ((__turbopack_context__) => { -__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [client] (ecmascript)")["f"]("turbopack-worker-_client-fs___0uy0mninb8pht.js", ["input_vercel_cjs_09-9pxbbrfb39.js","turbopack-input_vercel_cjs_0m5opm96hpxpo.js"])); +__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [client] (ecmascript)")["f"]("turbopack-worker-00tma42mu2bq8.js", ["0x10nw1b7odyd.js","turbopack-3vfun6ytx3o_t.js"])); }), "[project]/ignore_comments/input/ignore-worker.cjs (static in ecmascript)", ((__turbopack_context__) => { @@ -128,4 +128,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_root-of-the-server___1ps30wbvogjt4.js.map \ No newline at end of file +//# sourceMappingURL=2e-o90lkfjmzh.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/_externals____0a9dx99gw2g61.js.map b/crates/pack-tests/tests/snapshot/ignore_comments/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script/output/_externals____0a9dx99gw2g61.js.map rename to crates/pack-tests/tests/snapshot/ignore_comments/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_mjs_0d86h3x3limnc.js.map b/crates/pack-tests/tests/snapshot/ignore_comments/output/41-5gpdydv8vs.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_mjs_0d86h3x3limnc.js.map rename to crates/pack-tests/tests/snapshot/ignore_comments/output/41-5gpdydv8vs.js.map diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_mjs_0d86h3x3limnc.js b/crates/pack-tests/tests/snapshot/ignore_comments/output/43qnlkiri5fi1.js similarity index 87% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_mjs_0d86h3x3limnc.js rename to crates/pack-tests/tests/snapshot/ignore_comments/output/43qnlkiri5fi1.js index 17485e5208..be892ce743 100644 --- a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_mjs_0d86h3x3limnc.js +++ b/crates/pack-tests/tests/snapshot/ignore_comments/output/43qnlkiri5fi1.js @@ -11,4 +11,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_vercel_mjs_0d86h3x3limnc.js.map \ No newline at end of file +//# sourceMappingURL=41-5gpdydv8vs.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-0a97ap6sr7kj_.js b/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-0a97ap6sr7kj_.js new file mode 100644 index 0000000000..718f595f78 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-0a97ap6sr7kj_.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2eb_i2la0n2v2.js"],"runtimeModuleIds":["[project]/ignore_comments/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-3vfun6ytx3o_t.js b/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-3vfun6ytx3o_t.js new file mode 100644 index 0000000000..19a0592f07 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-3vfun6ytx3o_t.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0x10nw1b7odyd.js"],"runtimeModuleIds":["[project]/ignore_comments/input/vercel.cjs [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-worker-_client-fs___0uy0mninb8pht.js b/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-worker-00tma42mu2bq8.js similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-worker-_client-fs___0uy0mninb8pht.js rename to crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-worker-00tma42mu2bq8.js diff --git a/crates/pack-tests/tests/snapshot/mdx/basic/output/_project__mdx_basic_1_51ij72a3-ch.js b/crates/pack-tests/tests/snapshot/mdx/basic/output/0zenwuyrdadt8.js similarity index 98% rename from crates/pack-tests/tests/snapshot/mdx/basic/output/_project__mdx_basic_1_51ij72a3-ch.js rename to crates/pack-tests/tests/snapshot/mdx/basic/output/0zenwuyrdadt8.js index d635fad58a..f9011253bc 100644 --- a/crates/pack-tests/tests/snapshot/mdx/basic/output/_project__mdx_basic_1_51ij72a3-ch.js +++ b/crates/pack-tests/tests/snapshot/mdx/basic/output/0zenwuyrdadt8.js @@ -76,4 +76,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project__mdx_basic_1_51ij72a3-ch.js.map \ No newline at end of file +//# sourceMappingURL=1hg0tbtdn43jq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/mdx/basic/output/_project__mdx_basic_1_51ij72a3-ch.js.map b/crates/pack-tests/tests/snapshot/mdx/basic/output/1hg0tbtdn43jq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/mdx/basic/output/_project__mdx_basic_1_51ij72a3-ch.js.map rename to crates/pack-tests/tests/snapshot/mdx/basic/output/1hg0tbtdn43jq.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/main.js.map b/crates/pack-tests/tests/snapshot/mdx/basic/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/script/output/main.js.map rename to crates/pack-tests/tests/snapshot/mdx/basic/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/main.js b/crates/pack-tests/tests/snapshot/mdx/basic/output/turbopack-18h815acvchlp.js similarity index 56% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/main.js rename to crates/pack-tests/tests/snapshot/mdx/basic/output/turbopack-18h815acvchlp.js index da569e8186..8814af6149 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/main.js +++ b/crates/pack-tests/tests/snapshot/mdx/basic/output/turbopack-18h815acvchlp.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___0h5nsh2e5lg3g.js"],"runtimeModuleIds":[197]} + {"otherChunks":["0zenwuyrdadt8.js"],"runtimeModuleIds":["[project]/mdx/basic/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/node_polyfill/output/_root-of-the-server___1diyofdh4083v.js b/crates/pack-tests/tests/snapshot/node_polyfill/output/1jn9e9qx6g7uq.js similarity index 99% rename from crates/pack-tests/tests/snapshot/node_polyfill/output/_root-of-the-server___1diyofdh4083v.js rename to crates/pack-tests/tests/snapshot/node_polyfill/output/1jn9e9qx6g7uq.js index 88a2d61dd6..6798f16551 100644 --- a/crates/pack-tests/tests/snapshot/node_polyfill/output/_root-of-the-server___1diyofdh4083v.js +++ b/crates/pack-tests/tests/snapshot/node_polyfill/output/1jn9e9qx6g7uq.js @@ -11113,4 +11113,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_root-of-the-server___1diyofdh4083v.js.map \ No newline at end of file +//# sourceMappingURL=1uisjwkhmh2t-.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/node_polyfill/output/_root-of-the-server___1diyofdh4083v.js.map b/crates/pack-tests/tests/snapshot/node_polyfill/output/1uisjwkhmh2t-.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/node_polyfill/output/_root-of-the-server___1diyofdh4083v.js.map rename to crates/pack-tests/tests/snapshot/node_polyfill/output/1uisjwkhmh2t-.js.map diff --git a/crates/pack-tests/tests/snapshot/externals/subpath/output/main.js.map b/crates/pack-tests/tests/snapshot/node_polyfill/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/subpath/output/main.js.map rename to crates/pack-tests/tests/snapshot/node_polyfill/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/node_polyfill/output/turbopack-1qo779xjpv-nz.js b/crates/pack-tests/tests/snapshot/node_polyfill/output/turbopack-1qo779xjpv-nz.js new file mode 100644 index 0000000000..2b51fcbb79 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/node_polyfill/output/turbopack-1qo779xjpv-nz.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1jn9e9qx6g7uq.js"],"runtimeModuleIds":["[project]/node_polyfill/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/input_1od3xpytw5f97.js b/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/0wqmgldqvfdk2.js similarity index 94% rename from crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/input_1od3xpytw5f97.js rename to crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/0wqmgldqvfdk2.js index a1444cf591..fad6d24be8 100644 --- a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/input_1od3xpytw5f97.js +++ b/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/0wqmgldqvfdk2.js @@ -14,4 +14,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_1od3xpytw5f97.js.map \ No newline at end of file +//# sourceMappingURL=3okpxig0gihsp.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/with-alias/output/main.js.map b/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/externals/with-alias/output/main.js.map rename to crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/input_1od3xpytw5f97.js.map b/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/3okpxig0gihsp.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/input_1od3xpytw5f97.js.map rename to crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/3okpxig0gihsp.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/turbopack-13wdao062-iip.js b/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/turbopack-13wdao062-iip.js new file mode 100644 index 0000000000..b36e542c30 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/turbopack-13wdao062-iip.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0wqmgldqvfdk2.js"],"runtimeModuleIds":["[project]/optimization/cjs_optimizations/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/input_index_0ao8du010hr9n.js b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/1-xg80e3iksbl.js similarity index 89% rename from crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/input_index_0ao8du010hr9n.js rename to crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/1-xg80e3iksbl.js index 7dd5bfb1f0..4e044abc84 100644 --- a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/input_index_0ao8du010hr9n.js +++ b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/1-xg80e3iksbl.js @@ -1,3 +1,3 @@ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,"[project]/optimization/compress_sequences_0/input/index.js [client] (ecmascript)",__turbopack_context__=>{"use strict";function sideEffect(v){return globalThis.__seq_log=(globalThis.__seq_log||0)+v,globalThis.__seq_log}function calc(a,b){return sideEffect(a)+sideEffect(b)}calc(1,2);__turbopack_context__.s(["calc",0,calc])}]); -//# sourceMappingURL=input_index_0ao8du010hr9n.js.map \ No newline at end of file +//# sourceMappingURL=193yix10812zd.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/input_index_0ao8du010hr9n.js.map b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/193yix10812zd.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/input_index_0ao8du010hr9n.js.map rename to crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/193yix10812zd.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/main.js.map b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/2o75p8sdyycvy.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/main.js.map rename to crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/2o75p8sdyycvy.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/main.js b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/main.js deleted file mode 100644 index 164040bb4d..0000000000 --- a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/main.js +++ /dev/null @@ -1,3 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["input_index_0ao8du010hr9n.js"],runtimeModuleIds:["[project]/optimization/compress_sequences_0/input/index.js [client] (ecmascript)"]}]); - -//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/turbopack-2ijq-qy9nxavp.js b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/turbopack-2ijq-qy9nxavp.js new file mode 100644 index 0000000000..e5ac2f08c2 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/optimization/compress_sequences_0/output/turbopack-2ijq-qy9nxavp.js @@ -0,0 +1,3 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["1-xg80e3iksbl.js"],runtimeModuleIds:["[project]/optimization/compress_sequences_0/input/index.js [client] (ecmascript)"]}]); + +//# sourceMappingURL=2o75p8sdyycvy.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/input_index_0mrpgg9suvx4o.js b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2jhfb2mdenkkf.js similarity index 86% rename from crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/input_index_0mrpgg9suvx4o.js rename to crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2jhfb2mdenkkf.js index ad33e7ad78..8b2c6dd721 100644 --- a/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/input_index_0mrpgg9suvx4o.js +++ b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2jhfb2mdenkkf.js @@ -8,4 +8,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_index_0mrpgg9suvx4o.js.map \ No newline at end of file +//# sourceMappingURL=2s5zcm11eg92s.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/input_index_0mrpgg9suvx4o.js.map b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2s5zcm11eg92s.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/input_index_0mrpgg9suvx4o.js.map rename to crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2s5zcm11eg92s.js.map diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/_client-fs___0uy0mninb8pht.js.map b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/_client-fs___0uy0mninb8pht.js.map rename to crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/main.js b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/main.js deleted file mode 100644 index ca413f850c..0000000000 --- a/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_0mrpgg9suvx4o.js"],"runtimeModuleIds":["[project]/optimization/infer_module_side_effects/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/script/output/main.js b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/turbopack-3gs12p96hfupu.js similarity index 58% rename from crates/pack-tests/tests/snapshot/externals/script/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/turbopack-3gs12p96hfupu.js index 95a8f3be16..6c84a319d6 100644 --- a/crates/pack-tests/tests/snapshot/externals/script/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/turbopack-3gs12p96hfupu.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___053x8_zp-1fw4.js"],"runtimeModuleIds":["[project]/externals/script/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["2jhfb2mdenkkf.js"],"runtimeModuleIds":["[project]/optimization/infer_module_side_effects/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/_project___0eofvn_ecfk8x.js.map b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/0l1_mno4qm9v4.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/_project___0eofvn_ecfk8x.js.map rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/0l1_mno4qm9v4.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/_project___0eofvn_ecfk8x.js b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/18my9crl1xhp5.js similarity index 96% rename from crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/_project___0eofvn_ecfk8x.js rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/18my9crl1xhp5.js index 3678da47ec..bb6ccd8f84 100644 --- a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/_project___0eofvn_ecfk8x.js +++ b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/18my9crl1xhp5.js @@ -35,4 +35,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_project___0eofvn_ecfk8x.js.map \ No newline at end of file +//# sourceMappingURL=0l1_mno4qm9v4.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_0m5opm96hpxpo.js.map b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/input_vercel_cjs_0m5opm96hpxpo.js.map rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/main.js b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/main.js deleted file mode 100644 index 548426f628..0000000000 --- a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___0eofvn_ecfk8x.js"],"runtimeModuleIds":["[project]/optimization/modularize_imports_camel_case/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/main.js b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/turbopack-0vxu3-jd0ki4a.js similarity index 58% rename from crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/turbopack-0vxu3-jd0ki4a.js index e7f816a283..94785e2c3b 100644 --- a/crates/pack-tests/tests/snapshot/dynamic_import/very-dynamic/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/turbopack-0vxu3-jd0ki4a.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_0hglm01kujxmh.js"],"runtimeModuleIds":["[project]/dynamic_import/very-dynamic/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["18my9crl1xhp5.js"],"runtimeModuleIds":["[project]/optimization/modularize_imports_camel_case/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/_project___1bw2pyy4mc2do.js b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/1s66f0x9kacuw.js similarity index 98% rename from crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/_project___1bw2pyy4mc2do.js rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/1s66f0x9kacuw.js index 4a55b7bcaf..c055bb1029 100644 --- a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/_project___1bw2pyy4mc2do.js +++ b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/1s66f0x9kacuw.js @@ -75,4 +75,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project___1bw2pyy4mc2do.js.map \ No newline at end of file +//# sourceMappingURL=3042e9ukwm4_j.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/main.js.map b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/main.js.map rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/_project___1bw2pyy4mc2do.js.map b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/3042e9ukwm4_j.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/_project___1bw2pyy4mc2do.js.map rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/3042e9ukwm4_j.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/main.js b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/main.js deleted file mode 100644 index 1612e785bc..0000000000 --- a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___1bw2pyy4mc2do.js"],"runtimeModuleIds":["[project]/optimization/modularize_imports_keba_case/input/index.tsx [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/with-alias/output/main.js b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/turbopack-408cnwo0dmb-m.js similarity index 58% rename from crates/pack-tests/tests/snapshot/externals/with-alias/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/turbopack-408cnwo0dmb-m.js index 86f7b87cde..5578caa0e3 100644 --- a/crates/pack-tests/tests/snapshot/externals/with-alias/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/turbopack-408cnwo0dmb-m.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___1lu09m1w94i2_.js"],"runtimeModuleIds":["[project]/externals/with-alias/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["1s66f0x9kacuw.js"],"runtimeModuleIds":["[project]/optimization/modularize_imports_keba_case/input/index.tsx [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/input_07sbx5obqxp3t.js b/crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/0ur3u9dz6970e.js similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/input_07sbx5obqxp3t.js rename to crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/0ur3u9dz6970e.js diff --git a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/main.js b/crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/turbopack-1620ul9ud3l45.js similarity index 57% rename from crates/pack-tests/tests/snapshot/typescript/interface_export/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/turbopack-1620ul9ud3l45.js index f1476bfbfd..ff5b197313 100644 --- a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/turbopack-1620ul9ud3l45.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_11f73xuxi1b8r.js"],"runtimeModuleIds":["[project]/typescript/interface_export/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["0ur3u9dz6970e.js"],"runtimeModuleIds":["[project]/optimization/no_mangling_exports/input/client.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_console/output/input_index_10brydqt79l14.js.map b/crates/pack-tests/tests/snapshot/optimization/remove_console/output/04ceooziuuxl1.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/remove_console/output/input_index_10brydqt79l14.js.map rename to crates/pack-tests/tests/snapshot/optimization/remove_console/output/04ceooziuuxl1.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_console/output/input_index_10brydqt79l14.js b/crates/pack-tests/tests/snapshot/optimization/remove_console/output/2oslodx2usfn3.js similarity index 85% rename from crates/pack-tests/tests/snapshot/optimization/remove_console/output/input_index_10brydqt79l14.js rename to crates/pack-tests/tests/snapshot/optimization/remove_console/output/2oslodx2usfn3.js index 8cc02f8fdd..e70b2f51f7 100644 --- a/crates/pack-tests/tests/snapshot/optimization/remove_console/output/input_index_10brydqt79l14.js +++ b/crates/pack-tests/tests/snapshot/optimization/remove_console/output/2oslodx2usfn3.js @@ -14,4 +14,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_index_10brydqt79l14.js.map \ No newline at end of file +//# sourceMappingURL=04ceooziuuxl1.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/mdx/basic/output/main.js.map b/crates/pack-tests/tests/snapshot/optimization/remove_console/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/mdx/basic/output/main.js.map rename to crates/pack-tests/tests/snapshot/optimization/remove_console/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/main.js b/crates/pack-tests/tests/snapshot/optimization/remove_console/output/turbopack-151yhi043eg4d.js similarity index 68% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/remove_console/output/turbopack-151yhi043eg4d.js index 0ae3c752b4..5f446d6dc7 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/remove_console/output/turbopack-151yhi043eg4d.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_07x66ty5-cud2.js"],"runtimeModuleIds":[75]} + {"otherChunks":["2oslodx2usfn3.js"],"runtimeModuleIds":[69]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/input_index_0cw8oezfgv874.js b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/1yr57mx4f-3h4.js similarity index 97% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/input_index_0cw8oezfgv874.js rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/1yr57mx4f-3h4.js index 6d4d86644a..80645acc12 100644 --- a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/input_index_0cw8oezfgv874.js +++ b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/1yr57mx4f-3h4.js @@ -36,4 +36,4 @@ __turbopack_context__.s([], "[project]/optimization/remove_unused_imports_reexpo }), ]); -//# sourceMappingURL=input_index_0cw8oezfgv874.js.map \ No newline at end of file +//# sourceMappingURL=2yykn18-ca7do.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/input_index_0cw8oezfgv874.js.map b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/2yykn18-ca7do.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/input_index_0cw8oezfgv874.js.map rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/2yykn18-ca7do.js.map diff --git a/crates/pack-tests/tests/snapshot/node_polyfill/output/main.js.map b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/node_polyfill/output/main.js.map rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/main.js b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/turbopack-1f8kctxkom7tn.js similarity index 59% rename from crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/turbopack-1f8kctxkom7tn.js index aa8d3572a1..241ef20323 100644 --- a/crates/pack-tests/tests/snapshot/concatenate_modules/duplicate-imports/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/turbopack-1f8kctxkom7tn.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1quqytjgbl30q.js"],"runtimeModuleIds":["[project]/concatenate_modules/duplicate-imports/input/index.js [client] (ecmascript)"]} + {"otherChunks":["1yr57mx4f-3h4.js"],"runtimeModuleIds":["[project]/optimization/remove_unused_imports_reexport/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/input_0tbtduk8q_s7p.js b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/0f-o6szr4l0ba.js similarity index 99% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/input_0tbtduk8q_s7p.js rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/0f-o6szr4l0ba.js index f0e8aed50a..bc6d65476e 100644 --- a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/input_0tbtduk8q_s7p.js +++ b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/0f-o6szr4l0ba.js @@ -94,4 +94,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_0tbtduk8q_s7p.js.map \ No newline at end of file +//# sourceMappingURL=10na0ta93owx1.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/input_0tbtduk8q_s7p.js.map b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/10na0ta93owx1.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/input_0tbtduk8q_s7p.js.map rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/10na0ta93owx1.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/main.js.map b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/main.js.map rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/main.js b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/main.js deleted file mode 100644 index 5aa5c513bc..0000000000 --- a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0tbtduk8q_s7p.js"],"runtimeModuleIds":["[project]/optimization/remove_unused_imports_reexport_runtime_use/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/main.js b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/turbopack-1n5-wb-j0ad3a.js similarity index 60% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/main.js rename to crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/turbopack-1n5-wb-j0ad3a.js index fd7284f85c..fe41bd2c22 100644 --- a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/main.js +++ b/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/turbopack-1n5-wb-j0ad3a.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_0cw8oezfgv874.js"],"runtimeModuleIds":["[project]/optimization/remove_unused_imports_reexport/input/index.js [client] (ecmascript)"]} + {"otherChunks":["0f-o6szr4l0ba.js"],"runtimeModuleIds":["[project]/optimization/remove_unused_imports_reexport_runtime_use/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/provider/basic/output/_project___1r0ck5j7wce6f.js.map b/crates/pack-tests/tests/snapshot/provider/basic/output/0w4v4h5avogke.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/provider/basic/output/_project___1r0ck5j7wce6f.js.map rename to crates/pack-tests/tests/snapshot/provider/basic/output/0w4v4h5avogke.js.map diff --git a/crates/pack-tests/tests/snapshot/provider/basic/output/_project___1r0ck5j7wce6f.js b/crates/pack-tests/tests/snapshot/provider/basic/output/1fhfv35019-52.js similarity index 96% rename from crates/pack-tests/tests/snapshot/provider/basic/output/_project___1r0ck5j7wce6f.js rename to crates/pack-tests/tests/snapshot/provider/basic/output/1fhfv35019-52.js index cb79b2a676..322462e116 100644 --- a/crates/pack-tests/tests/snapshot/provider/basic/output/_project___1r0ck5j7wce6f.js +++ b/crates/pack-tests/tests/snapshot/provider/basic/output/1fhfv35019-52.js @@ -29,4 +29,4 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$buff }), ]); -//# sourceMappingURL=_project___1r0ck5j7wce6f.js.map \ No newline at end of file +//# sourceMappingURL=0w4v4h5avogke.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/main.js.map b/crates/pack-tests/tests/snapshot/provider/basic/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/infer_module_side_effects/output/main.js.map rename to crates/pack-tests/tests/snapshot/provider/basic/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/provider/basic/output/main.js b/crates/pack-tests/tests/snapshot/provider/basic/output/main.js deleted file mode 100644 index 84e88adbdb..0000000000 --- a/crates/pack-tests/tests/snapshot/provider/basic/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___1r0ck5j7wce6f.js"],"runtimeModuleIds":["[project]/provider/basic/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/provider/basic/output/turbopack-34gq-iptl4x0k.js b/crates/pack-tests/tests/snapshot/provider/basic/output/turbopack-34gq-iptl4x0k.js new file mode 100644 index 0000000000..d8f964c078 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/provider/basic/output/turbopack-34gq-iptl4x0k.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1fhfv35019-52.js"],"runtimeModuleIds":["[project]/provider/basic/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/auto/output/main.js.map b/crates/pack-tests/tests/snapshot/public_path/auto/output/11-z8we98mrgq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/auto/output/main.js.map rename to crates/pack-tests/tests/snapshot/public_path/auto/output/11-z8we98mrgq.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/auto/output/input_lazy_12wuen_zw9841.js.map b/crates/pack-tests/tests/snapshot/public_path/auto/output/1sjbk-tytxoez.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/auto/output/input_lazy_12wuen_zw9841.js.map rename to crates/pack-tests/tests/snapshot/public_path/auto/output/1sjbk-tytxoez.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/auto/output/input_1n8kg7d1-kmgh.js.map b/crates/pack-tests/tests/snapshot/public_path/auto/output/20eei5ef8s3d4.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/auto/output/input_1n8kg7d1-kmgh.js.map rename to crates/pack-tests/tests/snapshot/public_path/auto/output/20eei5ef8s3d4.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/auto/output/input_1n8kg7d1-kmgh.js b/crates/pack-tests/tests/snapshot/public_path/auto/output/2fnqsn3_d8hc1.js similarity index 92% rename from crates/pack-tests/tests/snapshot/public_path/auto/output/input_1n8kg7d1-kmgh.js rename to crates/pack-tests/tests/snapshot/public_path/auto/output/2fnqsn3_d8hc1.js index 58036e708a..d759993e4f 100644 --- a/crates/pack-tests/tests/snapshot/public_path/auto/output/input_1n8kg7d1-kmgh.js +++ b/crates/pack-tests/tests/snapshot/public_path/auto/output/2fnqsn3_d8hc1.js @@ -30,7 +30,7 @@ __turbopack_context__.s([ __turbopack_context__.v((parentImport) => { return Promise.all([ - "input_lazy_12wuen_zw9841.js" + "3fr5lia_he-r5.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport(23); }); @@ -38,4 +38,4 @@ __turbopack_context__.v((parentImport) => { }), ]); -//# sourceMappingURL=input_1n8kg7d1-kmgh.js.map \ No newline at end of file +//# sourceMappingURL=20eei5ef8s3d4.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/auto/output/input_lazy_12wuen_zw9841.js b/crates/pack-tests/tests/snapshot/public_path/auto/output/3fr5lia_he-r5.js similarity index 87% rename from crates/pack-tests/tests/snapshot/public_path/auto/output/input_lazy_12wuen_zw9841.js rename to crates/pack-tests/tests/snapshot/public_path/auto/output/3fr5lia_he-r5.js index f59cdb7449..fc7256cfd6 100644 --- a/crates/pack-tests/tests/snapshot/public_path/auto/output/input_lazy_12wuen_zw9841.js +++ b/crates/pack-tests/tests/snapshot/public_path/auto/output/3fr5lia_he-r5.js @@ -16,4 +16,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_lazy_12wuen_zw9841.js.map \ No newline at end of file +//# sourceMappingURL=1sjbk-tytxoez.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/auto/output/main.js b/crates/pack-tests/tests/snapshot/public_path/auto/output/turbopack-3yb-kvydpqwhg.js similarity index 99% rename from crates/pack-tests/tests/snapshot/public_path/auto/output/main.js rename to crates/pack-tests/tests/snapshot/public_path/auto/output/turbopack-3yb-kvydpqwhg.js index 370d94a1d0..7d4554cec8 100644 --- a/crates/pack-tests/tests/snapshot/public_path/auto/output/main.js +++ b/crates/pack-tests/tests/snapshot/public_path/auto/output/turbopack-3yb-kvydpqwhg.js @@ -1,6 +1,6 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1n8kg7d1-kmgh.js"],"runtimeModuleIds":[44]} + {"otherChunks":["2fnqsn3_d8hc1.js"],"runtimeModuleIds":[44]} ]); (() => { var chunksToRegister = globalThis["TURBOPACK"]; @@ -1301,4 +1301,4 @@ chunksToRegister.forEach(registerChunk); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=11-z8we98mrgq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/basic/output/input_lazy_15hx-u408fu-p.js b/crates/pack-tests/tests/snapshot/public_path/basic/output/0k4rx2fmvjp9f.js similarity index 90% rename from crates/pack-tests/tests/snapshot/public_path/basic/output/input_lazy_15hx-u408fu-p.js rename to crates/pack-tests/tests/snapshot/public_path/basic/output/0k4rx2fmvjp9f.js index 74303dc6ec..948f4cd500 100644 --- a/crates/pack-tests/tests/snapshot/public_path/basic/output/input_lazy_15hx-u408fu-p.js +++ b/crates/pack-tests/tests/snapshot/public_path/basic/output/0k4rx2fmvjp9f.js @@ -23,4 +23,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_lazy_15hx-u408fu-p.js.map \ No newline at end of file +//# sourceMappingURL=2s91g2pbb6a6c.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/basic/output/main.js.map b/crates/pack-tests/tests/snapshot/public_path/basic/output/11-z8we98mrgq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/basic/output/main.js.map rename to crates/pack-tests/tests/snapshot/public_path/basic/output/11-z8we98mrgq.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/basic/output/input_1194gb0bt7gwr.js.map b/crates/pack-tests/tests/snapshot/public_path/basic/output/1f3ljlo4xm7q6.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/basic/output/input_1194gb0bt7gwr.js.map rename to crates/pack-tests/tests/snapshot/public_path/basic/output/1f3ljlo4xm7q6.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/basic/output/input_lazy_15hx-u408fu-p.js.map b/crates/pack-tests/tests/snapshot/public_path/basic/output/2s91g2pbb6a6c.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/basic/output/input_lazy_15hx-u408fu-p.js.map rename to crates/pack-tests/tests/snapshot/public_path/basic/output/2s91g2pbb6a6c.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/basic/output/input_1194gb0bt7gwr.js b/crates/pack-tests/tests/snapshot/public_path/basic/output/3dnnqgnzk6x-o.js similarity index 93% rename from crates/pack-tests/tests/snapshot/public_path/basic/output/input_1194gb0bt7gwr.js rename to crates/pack-tests/tests/snapshot/public_path/basic/output/3dnnqgnzk6x-o.js index ae87527c37..3707ab3f88 100644 --- a/crates/pack-tests/tests/snapshot/public_path/basic/output/input_1194gb0bt7gwr.js +++ b/crates/pack-tests/tests/snapshot/public_path/basic/output/3dnnqgnzk6x-o.js @@ -32,7 +32,7 @@ __turbopack_context__.s([ __turbopack_context__.v((parentImport) => { return Promise.all([ - "input_lazy_15hx-u408fu-p.js" + "0k4rx2fmvjp9f.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport(73); }); @@ -40,4 +40,4 @@ __turbopack_context__.v((parentImport) => { }), ]); -//# sourceMappingURL=input_1194gb0bt7gwr.js.map \ No newline at end of file +//# sourceMappingURL=1f3ljlo4xm7q6.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/basic/output/main.js b/crates/pack-tests/tests/snapshot/public_path/basic/output/turbopack-2z1b4b-ii4jte.js similarity index 99% rename from crates/pack-tests/tests/snapshot/public_path/basic/output/main.js rename to crates/pack-tests/tests/snapshot/public_path/basic/output/turbopack-2z1b4b-ii4jte.js index 50341b2ece..5dbbabadd2 100644 --- a/crates/pack-tests/tests/snapshot/public_path/basic/output/main.js +++ b/crates/pack-tests/tests/snapshot/public_path/basic/output/turbopack-2z1b4b-ii4jte.js @@ -1,6 +1,6 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1194gb0bt7gwr.js"],"runtimeModuleIds":[4]} + {"otherChunks":["3dnnqgnzk6x-o.js"],"runtimeModuleIds":[4]} ]); (() => { var chunksToRegister = globalThis["TURBOPACK"]; @@ -1301,4 +1301,4 @@ chunksToRegister.forEach(registerChunk); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=11-z8we98mrgq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/runtime/output/input_0op90ea_s7xbs.js.map b/crates/pack-tests/tests/snapshot/public_path/runtime/output/0pr9rmxfxo61t.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/runtime/output/input_0op90ea_s7xbs.js.map rename to crates/pack-tests/tests/snapshot/public_path/runtime/output/0pr9rmxfxo61t.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/runtime/output/main.js.map b/crates/pack-tests/tests/snapshot/public_path/runtime/output/11-z8we98mrgq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/public_path/runtime/output/main.js.map rename to crates/pack-tests/tests/snapshot/public_path/runtime/output/11-z8we98mrgq.js.map diff --git a/crates/pack-tests/tests/snapshot/public_path/runtime/output/input_0op90ea_s7xbs.js b/crates/pack-tests/tests/snapshot/public_path/runtime/output/123vts5sndf9p.js similarity index 95% rename from crates/pack-tests/tests/snapshot/public_path/runtime/output/input_0op90ea_s7xbs.js rename to crates/pack-tests/tests/snapshot/public_path/runtime/output/123vts5sndf9p.js index 26c4433397..f38ef51281 100644 --- a/crates/pack-tests/tests/snapshot/public_path/runtime/output/input_0op90ea_s7xbs.js +++ b/crates/pack-tests/tests/snapshot/public_path/runtime/output/123vts5sndf9p.js @@ -37,4 +37,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_0op90ea_s7xbs.js.map \ No newline at end of file +//# sourceMappingURL=0pr9rmxfxo61t.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/public_path/runtime/output/main.js b/crates/pack-tests/tests/snapshot/public_path/runtime/output/turbopack-36nlb69vknkeg.js similarity index 99% rename from crates/pack-tests/tests/snapshot/public_path/runtime/output/main.js rename to crates/pack-tests/tests/snapshot/public_path/runtime/output/turbopack-36nlb69vknkeg.js index 2f2fd3e283..b1a8415c20 100644 --- a/crates/pack-tests/tests/snapshot/public_path/runtime/output/main.js +++ b/crates/pack-tests/tests/snapshot/public_path/runtime/output/turbopack-36nlb69vknkeg.js @@ -1,6 +1,6 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0op90ea_s7xbs.js"],"runtimeModuleIds":[48]} + {"otherChunks":["123vts5sndf9p.js"],"runtimeModuleIds":[48]} ]); (() => { var chunksToRegister = globalThis["TURBOPACK"]; @@ -1301,4 +1301,4 @@ chunksToRegister.forEach(registerChunk); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=11-z8we98mrgq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/main.js.map b/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/11-z8we98mrgq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/main.js.map rename to crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/11-z8we98mrgq.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/input_index_0kxp2wtlm037m.js.map b/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/14luzd_q2nq78.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/input_index_0kxp2wtlm037m.js.map rename to crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/14luzd_q2nq78.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/input_index_0kxp2wtlm037m.js b/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/1818qkn696q_o.js similarity index 80% rename from crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/input_index_0kxp2wtlm037m.js rename to crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/1818qkn696q_o.js index 509215feb7..b518021b04 100644 --- a/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/input_index_0kxp2wtlm037m.js +++ b/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/1818qkn696q_o.js @@ -5,4 +5,4 @@ console.log('Hello, world!'); }), ]); -//# sourceMappingURL=input_index_0kxp2wtlm037m.js.map \ No newline at end of file +//# sourceMappingURL=14luzd_q2nq78.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/main.js b/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/turbopack-1rt_xyuwnd4bm.js similarity index 99% rename from crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/main.js rename to crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/turbopack-1rt_xyuwnd4bm.js index 2d2a3da7bf..5f863c6a3e 100644 --- a/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/main.js +++ b/crates/pack-tests/tests/snapshot/runtime/app_build_runtime/output/turbopack-1rt_xyuwnd4bm.js @@ -1,6 +1,6 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_0kxp2wtlm037m.js"],"runtimeModuleIds":[47]} + {"otherChunks":["1818qkn696q_o.js"],"runtimeModuleIds":[47]} ]); (() => { var chunksToRegister = globalThis["TURBOPACK"]; @@ -1301,4 +1301,4 @@ chunksToRegister.forEach(registerChunk); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=11-z8we98mrgq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/input_index_0gh3b55vvb6s2.js.map b/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/0bh019ennrr8b.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/input_index_0gh3b55vvb6s2.js.map rename to crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/0bh019ennrr8b.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/input_index_0gh3b55vvb6s2.js b/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/1ja8-rq9dyrks.js similarity index 81% rename from crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/input_index_0gh3b55vvb6s2.js rename to crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/1ja8-rq9dyrks.js index 8a535527e0..2cd7f7f1b7 100644 --- a/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/input_index_0gh3b55vvb6s2.js +++ b/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/1ja8-rq9dyrks.js @@ -5,4 +5,4 @@ console.log('Hello, world!'); }), ]); -//# sourceMappingURL=input_index_0gh3b55vvb6s2.js.map \ No newline at end of file +//# sourceMappingURL=0bh019ennrr8b.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/main.js.map b/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/2s19m4mi4skli.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/main.js.map rename to crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/2s19m4mi4skli.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/main.js b/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/turbopack-2w_figwrywlsb.js similarity index 99% rename from crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/main.js rename to crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/turbopack-2w_figwrywlsb.js index f98675b56b..441b9d3552 100644 --- a/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/main.js +++ b/crates/pack-tests/tests/snapshot/runtime/app_dev_runtime/output/turbopack-2w_figwrywlsb.js @@ -1,6 +1,6 @@ (globalThis["utooChunk_appDev"] || (globalThis["utooChunk_appDev"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_0gh3b55vvb6s2.js"],"runtimeModuleIds":[41]} + {"otherChunks":["1ja8-rq9dyrks.js"],"runtimeModuleIds":[41]} ]); (() => { var chunksToRegister = globalThis["utooChunk_appDev"]; @@ -2594,4 +2594,4 @@ chunkListsToRegister.forEach(registerChunkList); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=2s19m4mi4skli.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/main.js.map b/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/11-z8we98mrgq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/main.js.map rename to crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/11-z8we98mrgq.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/input_index_1z5a_erw88q4d.js b/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/24sp90rpsmplw.js similarity index 81% rename from crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/input_index_1z5a_erw88q4d.js rename to crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/24sp90rpsmplw.js index 7b4cdb5698..14c6ffc0d4 100644 --- a/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/input_index_1z5a_erw88q4d.js +++ b/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/24sp90rpsmplw.js @@ -5,4 +5,4 @@ console.log('crossOriginLoading anonymous'); }), ]); -//# sourceMappingURL=input_index_1z5a_erw88q4d.js.map \ No newline at end of file +//# sourceMappingURL=3e9i29anhhwgj.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/input_index_1z5a_erw88q4d.js.map b/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/3e9i29anhhwgj.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/input_index_1z5a_erw88q4d.js.map rename to crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/3e9i29anhhwgj.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/main.js b/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/turbopack-27e3xlm8rd9fm.js similarity index 99% rename from crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/main.js rename to crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/turbopack-27e3xlm8rd9fm.js index 54630a4525..3d2f8471b8 100644 --- a/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/main.js +++ b/crates/pack-tests/tests/snapshot/runtime/cross_origin_loading_anonymous/output/turbopack-27e3xlm8rd9fm.js @@ -1,6 +1,6 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_1z5a_erw88q4d.js"],"runtimeModuleIds":[59]} + {"otherChunks":["24sp90rpsmplw.js"],"runtimeModuleIds":[59]} ]); (() => { var chunksToRegister = globalThis["TURBOPACK"]; @@ -1301,4 +1301,4 @@ chunksToRegister.forEach(registerChunk); })(); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=11-z8we98mrgq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/input_index_ts_0jlwhohl013jv.js.map b/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/1rt_rb0yf32px.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/input_index_ts_0jlwhohl013jv.js.map rename to crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/1rt_rb0yf32px.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/main.js.map b/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/25lphyc_zus-j.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/main.js.map rename to crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/25lphyc_zus-j.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/input_index_ts_0jlwhohl013jv.js b/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/2py8zj84iry-w.js similarity index 94% rename from crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/input_index_ts_0jlwhohl013jv.js rename to crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/2py8zj84iry-w.js index 84801d57ae..8bfb0f79fe 100644 --- a/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/input_index_ts_0jlwhohl013jv.js +++ b/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/2py8zj84iry-w.js @@ -36,4 +36,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_index_ts_0jlwhohl013jv.js.map \ No newline at end of file +//# sourceMappingURL=1rt_rb0yf32px.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/main.js b/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/turbopack-1waors-q19y--.js similarity index 99% rename from crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/main.js rename to crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/turbopack-1waors-q19y--.js index c25913dfed..40c0e9a0ec 100644 --- a/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/main.js +++ b/crates/pack-tests/tests/snapshot/runtime/export_entry_exports/output/turbopack-1waors-q19y--.js @@ -1,6 +1,6 @@ (globalThis["utooChunk_export_entry_exports"] || (globalThis["utooChunk_export_entry_exports"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_0jlwhohl013jv.js"],"runtimeModuleIds":["[project]/runtime/export_entry_exports/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["2py8zj84iry-w.js"],"runtimeModuleIds":["[project]/runtime/export_entry_exports/input/index.ts [client] (ecmascript)"]} ]); (() => { (function(root, factory) { @@ -1340,4 +1340,4 @@ return __chunk__; })); -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=25lphyc_zus-j.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/input_index_20jvvg8k1jmd5.js b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/20t-yirfyrt12.js similarity index 85% rename from crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/input_index_20jvvg8k1jmd5.js rename to crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/20t-yirfyrt12.js index c242225333..540143aad7 100644 --- a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/input_index_20jvvg8k1jmd5.js +++ b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/20t-yirfyrt12.js @@ -5,4 +5,4 @@ console.log("Hello from a legacy browser"); }), ]); -//# sourceMappingURL=input_index_20jvvg8k1jmd5.js.map \ No newline at end of file +//# sourceMappingURL=2brvhbzh238zb.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/input_index_20jvvg8k1jmd5.js.map b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/2brvhbzh238zb.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/input_index_20jvvg8k1jmd5.js.map rename to crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/2brvhbzh238zb.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/main.js.map b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/modularize_imports_camel_case/output/main.js.map rename to crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/main.js b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/main.js deleted file mode 100644 index 5ca0c0b0a3..0000000000 --- a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(self["TURBOPACK"] || (self["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_20jvvg8k1jmd5.js"],"runtimeModuleIds":["[project]/runtime/legacy_global_this/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/turbopack-0eslqg4unpkbg.js b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/turbopack-0eslqg4unpkbg.js new file mode 100644 index 0000000000..aeddf03543 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/turbopack-0eslqg4unpkbg.js @@ -0,0 +1,5 @@ +(self["TURBOPACK"] || (self["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["20t-yirfyrt12.js"],"runtimeModuleIds":["[project]/runtime/legacy_global_this/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_root-of-the-server___0h5nsh2e5lg3g.js.map b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/26ljwqarw5qpd.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_root-of-the-server___0h5nsh2e5lg3g.js.map rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/26ljwqarw5qpd.js.map diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js.map b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/2no_quknb5bpq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js.map rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/2no_quknb5bpq.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/main.js.map b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/modularize_imports_keba_case/output/main.js.map rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_root-of-the-server___0h5nsh2e5lg3g.js b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/3oaak8orfe2c2.js similarity index 94% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_root-of-the-server___0h5nsh2e5lg3g.js rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/3oaak8orfe2c2.js index d6be432f92..62b1321b16 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_root-of-the-server___0h5nsh2e5lg3g.js +++ b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/3oaak8orfe2c2.js @@ -74,7 +74,7 @@ __turbopack_context__.s([ }), 675, ((__turbopack_context__) => { -__turbopack_context__.v(__turbopack_context__.r(730)["f"]("turbopack-worker-_client-fs___0uy0mninb8pht.js", ["node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js","58e1d_modules_static-url-package_processes_main_MainWorker_1ygm6s0hxaxg1.js"])); +__turbopack_context__.v(__turbopack_context__.r(730)["f"]("turbopack-worker-00tma42mu2bq8.js", ["42ki2fbwiz5za.js","turbopack-3kv443lkqvc8c.js"])); }), 936, ((__turbopack_context__) => { "use strict"; @@ -114,4 +114,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_root-of-the-server___0h5nsh2e5lg3g.js.map \ No newline at end of file +//# sourceMappingURL=26ljwqarw5qpd.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/42ki2fbwiz5za.js similarity index 74% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/42ki2fbwiz5za.js index 2a9de20bcd..adf7265507 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js +++ b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/42ki2fbwiz5za.js @@ -9,4 +9,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=node_modules_static-url-package_processes_main_MainWorker_1t00nydcjs582.js.map \ No newline at end of file +//# sourceMappingURL=2no_quknb5bpq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/main.js b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-0p3-9l9r-qzh_.js similarity index 68% rename from crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/main.js rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-0p3-9l9r-qzh_.js index d26ab115f7..5ca55952d7 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/main.js +++ b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-0p3-9l9r-qzh_.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0twuv70mvc3bj.js"],"runtimeModuleIds":[55]} + {"otherChunks":["3oaak8orfe2c2.js"],"runtimeModuleIds":[197]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/wasm/output/main.js b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-3kv443lkqvc8c.js similarity index 67% rename from crates/pack-tests/tests/snapshot/static-assets/wasm/output/main.js rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-3kv443lkqvc8c.js index dacff50a95..fe195e5a9e 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/wasm/output/main.js +++ b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-3kv443lkqvc8c.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___19ess2rpccpgu.js"],"runtimeModuleIds":[90]} + {"otherChunks":["42ki2fbwiz5za.js"],"runtimeModuleIds":[277]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-worker-_client-fs___0uy0mninb8pht.js b/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-worker-00tma42mu2bq8.js similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-worker-_client-fs___0uy0mninb8pht.js rename to crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/turbopack-worker-00tma42mu2bq8.js diff --git a/crates/pack-tests/tests/snapshot/static-assets/json/output/input_1091t70a1-rug.js b/crates/pack-tests/tests/snapshot/static-assets/json/output/12v8znaz6x7ms.js similarity index 92% rename from crates/pack-tests/tests/snapshot/static-assets/json/output/input_1091t70a1-rug.js rename to crates/pack-tests/tests/snapshot/static-assets/json/output/12v8znaz6x7ms.js index 0a31b41de2..b9e81b6c02 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/json/output/input_1091t70a1-rug.js +++ b/crates/pack-tests/tests/snapshot/static-assets/json/output/12v8znaz6x7ms.js @@ -3,7 +3,7 @@ __turbopack_context__.v((parentImport) => { return Promise.all([ - "input_Regular_Expressions__JavaScript__tmLanguage_json__json__cjs_1jol_jamv2456.js" + "1sg3j50qtgvaa.js" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => { return parentImport("[project]/static-assets/json/input/Regular Expressions (JavaScript).tmLanguage.json.[json].cjs [client] (ecmascript)"); }); diff --git a/crates/pack-tests/tests/snapshot/static-assets/json/output/input_Regular_Expressions__JavaScript__tmLanguage_json__json__cjs_1jol_jamv2456.js b/crates/pack-tests/tests/snapshot/static-assets/json/output/1sg3j50qtgvaa.js similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/json/output/input_Regular_Expressions__JavaScript__tmLanguage_json__json__cjs_1jol_jamv2456.js rename to crates/pack-tests/tests/snapshot/static-assets/json/output/1sg3j50qtgvaa.js diff --git a/crates/pack-tests/tests/snapshot/static-assets/json/output/turbopack-2o-atggizyhu0.js b/crates/pack-tests/tests/snapshot/static-assets/json/output/turbopack-2o-atggizyhu0.js new file mode 100644 index 0000000000..30fec49014 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/static-assets/json/output/turbopack-2o-atggizyhu0.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["12v8znaz6x7ms.js"],"runtimeModuleIds":["[project]/static-assets/json/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/wasm/output/_project___19ess2rpccpgu.js b/crates/pack-tests/tests/snapshot/static-assets/wasm/output/04cudeua9zfy4.js similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/wasm/output/_project___19ess2rpccpgu.js rename to crates/pack-tests/tests/snapshot/static-assets/wasm/output/04cudeua9zfy4.js diff --git a/crates/pack-tests/tests/snapshot/static-assets/wasm/output/turbopack-1nq8bjfli01l4.js b/crates/pack-tests/tests/snapshot/static-assets/wasm/output/turbopack-1nq8bjfli01l4.js new file mode 100644 index 0000000000..e30bf1fa55 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/static-assets/wasm/output/turbopack-1nq8bjfli01l4.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["04cudeua9zfy4.js"],"runtimeModuleIds":[90]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/input_index_1ywo_6qlkay65.js b/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/2pduox5qhxsbi.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/input_index_1ywo_6qlkay65.js rename to crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/2pduox5qhxsbi.js diff --git a/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/input_navbar_1s0rwniv9brhk.css b/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/3yt_-6bsbrz-b.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/input_navbar_1s0rwniv9brhk.css rename to crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/3yt_-6bsbrz-b.css diff --git a/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/main.js b/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/main.js deleted file mode 100644 index 275a1725e2..0000000000 --- a/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_navbar_1s0rwniv9brhk.css","input_index_1ywo_6qlkay65.js"],"runtimeModuleIds":["[project]/style/backdrop_filter_prefix/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/turbopack-0_e5zw4pfav_e.js b/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/turbopack-0_e5zw4pfav_e.js new file mode 100644 index 0000000000..15cac94da8 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/backdrop_filter_prefix/output/turbopack-0_e5zw4pfav_e.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["3yt_-6bsbrz-b.css","2pduox5qhxsbi.js"],"runtimeModuleIds":["[project]/style/backdrop_filter_prefix/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/input_RuleEdit_Vidw_Panel_less_0nnx01f_arh2a.css b/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/0s-ymiio-580o.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css-filename-escape/output/input_RuleEdit_Vidw_Panel_less_0nnx01f_arh2a.css rename to crates/pack-tests/tests/snapshot/style/css-filename-escape/output/0s-ymiio-580o.css diff --git a/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/input_index_03l6x5y19-6qj.js b/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/3ocvlxizvta69.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css-filename-escape/output/input_index_03l6x5y19-6qj.js rename to crates/pack-tests/tests/snapshot/style/css-filename-escape/output/3ocvlxizvta69.js diff --git a/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/main.js b/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/main.js deleted file mode 100644 index 59474eff3c..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_RuleEdit_Vidw_Panel_less_0nnx01f_arh2a.css","input_index_03l6x5y19-6qj.js"],"runtimeModuleIds":["[project]/style/css-filename-escape/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/turbopack-1pa5f2yozy_6k.js b/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/turbopack-1pa5f2yozy_6k.js new file mode 100644 index 0000000000..f564f53edf --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/css-filename-escape/output/turbopack-1pa5f2yozy_6k.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0s-ymiio-580o.css","3ocvlxizvta69.js"],"runtimeModuleIds":["[project]/style/css-filename-escape/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/input_11bq4v-od7pr1.css b/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/2pwele93r_ixs.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/input_11bq4v-od7pr1.css rename to crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/2pwele93r_ixs.css diff --git a/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/input_index_ts_14cjenj6-7s80.js b/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/3y1vsmmseg8at.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/input_index_ts_14cjenj6-7s80.js rename to crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/3y1vsmmseg8at.js diff --git a/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/main.js b/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/main.js deleted file mode 100644 index 61fed124fd..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_11bq4v-od7pr1.css","input_index_ts_14cjenj6-7s80.js"],"runtimeModuleIds":["[project]/style/css_instantiate_error/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/turbopack-1foe16ui4w4a_.js b/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/turbopack-1foe16ui4w4a_.js new file mode 100644 index 0000000000..d0f84268a6 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/css_instantiate_error/output/turbopack-1foe16ui4w4a_.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2pwele93r_ixs.css","3y1vsmmseg8at.js"],"runtimeModuleIds":["[project]/style/css_instantiate_error/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/assert.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/assert.js index ace2215059..0f67128fbb 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/assert.js +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/assert.js @@ -7,12 +7,23 @@ const outputDir = path.join(__dirname, "output"); const markerAsset = fs .readdirSync(outputDir) .filter((asset) => asset.endsWith(".css")) - .find((asset) => fs.readFileSync(path.join(outputDir, asset), "utf8").includes(marker)); + .find((asset) => + fs.readFileSync(path.join(outputDir, asset), "utf8").includes(marker), + ); assert(markerAsset, "missing page A global CSS marker in emitted CSS"); -const pageA = fs.readFileSync(path.join(outputDir, "a.js"), "utf8"); -const pageB = fs.readFileSync(path.join(outputDir, "b.js"), "utf8"); +const entries = fs + .readdirSync(outputDir) + .filter((file) => file.startsWith("turbopack-") && file.endsWith(".js")) + .map((file) => fs.readFileSync(path.join(outputDir, file), "utf8")); +const pageA = entries.find((content) => content.includes("/input/a.js")); +const pageB = entries.find((content) => content.includes("/input/b.js")); +assert(pageA, "missing page A entry runtime"); +assert(pageB, "missing page B entry runtime"); assert(pageA.includes(markerAsset), "page A must load its global CSS asset"); -assert(!pageB.includes(markerAsset), "page B must not load page A global CSS asset"); +assert( + !pageB.includes(markerAsset), + "page B must not load page A global CSS asset", +); diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_05az0yr3ueo-y.js.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/16cr0vly9v-k0.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_05az0yr3ueo-y.js.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/16cr0vly9v-k0.js.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_05az0yr3ueo-y.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/1anpsuwggzprr.js similarity index 95% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_05az0yr3ueo-y.js rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/1anpsuwggzprr.js index 312a4875fb..c65aca7480 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_05az0yr3ueo-y.js +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/1anpsuwggzprr.js @@ -21,4 +21,4 @@ __turbopack_context__.v({ }), ]); -//# sourceMappingURL=input_05az0yr3ueo-y.js.map \ No newline at end of file +//# sourceMappingURL=16cr0vly9v-k0.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_shared_module_0g6_2uv12bgy4.css b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/1e4odp_2pwei2.css similarity index 66% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_shared_module_0g6_2uv12bgy4.css rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/1e4odp_2pwei2.css index 5e792e9296..0bdb48c4da 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_shared_module_0g6_2uv12bgy4.css +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/1e4odp_2pwei2.css @@ -3,4 +3,4 @@ padding: 1rem; } -/*# sourceMappingURL=input_shared_module_0g6_2uv12bgy4.css.map*/ \ No newline at end of file +/*# sourceMappingURL=2t_rigqtr5zab.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_a_module_0nszrnwp-jy9_.css b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/26f34lq-s0_3f.css similarity index 78% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_a_module_0nszrnwp-jy9_.css rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/26f34lq-s0_3f.css index 617e7ee85f..36d381f3d0 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_a_module_0nszrnwp-jy9_.css +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/26f34lq-s0_3f.css @@ -11,4 +11,4 @@ body { overflow: hidden; } -/*# sourceMappingURL=input_a_module_0nszrnwp-jy9_.css.map*/ \ No newline at end of file +/*# sourceMappingURL=2kmh47_2_k9o9.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_0ohyvbxv5n-zm.js.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2acuir7j9b0jh.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_0ohyvbxv5n-zm.js.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2acuir7j9b0jh.js.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_a_module_0nszrnwp-jy9_.css.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2kmh47_2_k9o9.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_a_module_0nszrnwp-jy9_.css.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2kmh47_2_k9o9.css.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_shared_module_0g6_2uv12bgy4.css.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2t_rigqtr5zab.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_shared_module_0g6_2uv12bgy4.css.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2t_rigqtr5zab.css.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_0ohyvbxv5n-zm.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2w7pl-zrnl9or.js similarity index 97% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_0ohyvbxv5n-zm.js rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2w7pl-zrnl9or.js index af1e3a68b3..e5e43e8a3f 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/input_0ohyvbxv5n-zm.js +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2w7pl-zrnl9or.js @@ -30,4 +30,4 @@ __turbopack_context__.v({ }), ]); -//# sourceMappingURL=input_0ohyvbxv5n-zm.js.map \ No newline at end of file +//# sourceMappingURL=2acuir7j9b0jh.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_console/output/main.js.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/remove_console/output/main.js.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/a.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/a.js deleted file mode 100644 index f67d979efd..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/a.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_a_module_0nszrnwp-jy9_.css","input_shared_module_0g6_2uv12bgy4.css","input_0ohyvbxv5n-zm.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_graph/input/a.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/b.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/b.js deleted file mode 100644 index 72592f03de..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/b.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_shared_module_0g6_2uv12bgy4.css","input_05az0yr3ueo-y.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_graph/input/b.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/turbopack-1807hi_j3j2a6.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/turbopack-1807hi_j3j2a6.js new file mode 100644 index 0000000000..d7a47f5c54 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/turbopack-1807hi_j3j2a6.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["26f34lq-s0_3f.css","1e4odp_2pwei2.css","2w7pl-zrnl9or.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_graph/input/a.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/turbopack-41r6lr0p81ah_.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/turbopack-41r6lr0p81ah_.js new file mode 100644 index 0000000000..ed387cc545 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/turbopack-41r6lr0p81ah_.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1e4odp_2pwei2.css","1anpsuwggzprr.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_graph/input/b.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/assert.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/assert.js index ace2215059..0f67128fbb 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/assert.js +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/assert.js @@ -7,12 +7,23 @@ const outputDir = path.join(__dirname, "output"); const markerAsset = fs .readdirSync(outputDir) .filter((asset) => asset.endsWith(".css")) - .find((asset) => fs.readFileSync(path.join(outputDir, asset), "utf8").includes(marker)); + .find((asset) => + fs.readFileSync(path.join(outputDir, asset), "utf8").includes(marker), + ); assert(markerAsset, "missing page A global CSS marker in emitted CSS"); -const pageA = fs.readFileSync(path.join(outputDir, "a.js"), "utf8"); -const pageB = fs.readFileSync(path.join(outputDir, "b.js"), "utf8"); +const entries = fs + .readdirSync(outputDir) + .filter((file) => file.startsWith("turbopack-") && file.endsWith(".js")) + .map((file) => fs.readFileSync(path.join(outputDir, file), "utf8")); +const pageA = entries.find((content) => content.includes("/input/a.js")); +const pageB = entries.find((content) => content.includes("/input/b.js")); +assert(pageA, "missing page A entry runtime"); +assert(pageB, "missing page B entry runtime"); assert(pageA.includes(markerAsset), "page A must load its global CSS asset"); -assert(!pageB.includes(markerAsset), "page B must not load page A global CSS asset"); +assert( + !pageB.includes(markerAsset), + "page B must not load page A global CSS asset", +); diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_shared_module_0o28hmwe73---.css b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/08_fxy32t9nu_.css similarity index 66% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_shared_module_0o28hmwe73---.css rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/08_fxy32t9nu_.css index cb43569044..9ba1a6ad39 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_shared_module_0o28hmwe73---.css +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/08_fxy32t9nu_.css @@ -3,4 +3,4 @@ padding: 1rem; } -/*# sourceMappingURL=input_shared_module_0o28hmwe73---.css.map*/ \ No newline at end of file +/*# sourceMappingURL=0emjoglwaqfqv.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_shared_module_0o28hmwe73---.css.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/0emjoglwaqfqv.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_shared_module_0o28hmwe73---.css.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/0emjoglwaqfqv.css.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_1uw2hcihu2z3z.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/0tv6krngu93km.js similarity index 97% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_1uw2hcihu2z3z.js rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/0tv6krngu93km.js index 29313a83f5..ada5a7912e 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_1uw2hcihu2z3z.js +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/0tv6krngu93km.js @@ -30,4 +30,4 @@ __turbopack_context__.v({ }), ]); -//# sourceMappingURL=input_1uw2hcihu2z3z.js.map \ No newline at end of file +//# sourceMappingURL=3t5tmjlyp-8ea.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_a_module_165z159v802lt.css b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/1jugj8oln2o6y.css similarity index 78% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_a_module_165z159v802lt.css rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/1jugj8oln2o6y.css index 20162a28a1..1be3b9b9de 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_a_module_165z159v802lt.css +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/1jugj8oln2o6y.css @@ -11,4 +11,4 @@ body { overflow: hidden; } -/*# sourceMappingURL=input_a_module_165z159v802lt.css.map*/ \ No newline at end of file +/*# sourceMappingURL=2nnkptyhnmja-.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_a_module_165z159v802lt.css.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/2nnkptyhnmja-.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_a_module_165z159v802lt.css.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/2nnkptyhnmja-.css.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_0slbc919dahal.js.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/2pf3ecxh9pxqs.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_0slbc919dahal.js.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/2pf3ecxh9pxqs.js.map diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/main.js.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport/output/main.js.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_0slbc919dahal.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/392a1bap0wx7w.js similarity index 95% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_0slbc919dahal.js rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/392a1bap0wx7w.js index 92799815ad..31d62aea31 100644 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_0slbc919dahal.js +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/392a1bap0wx7w.js @@ -21,4 +21,4 @@ __turbopack_context__.v({ }), ]); -//# sourceMappingURL=input_0slbc919dahal.js.map \ No newline at end of file +//# sourceMappingURL=2pf3ecxh9pxqs.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_1uw2hcihu2z3z.js.map b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/3t5tmjlyp-8ea.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/input_1uw2hcihu2z3z.js.map rename to crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/3t5tmjlyp-8ea.js.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/a.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/a.js deleted file mode 100644 index 474475c4d5..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/a.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_a_module_165z159v802lt.css","input_shared_module_0o28hmwe73---.css","input_1uw2hcihu2z3z.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_loose/input/a.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/b.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/b.js deleted file mode 100644 index 28c39cf7cf..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/b.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_shared_module_0o28hmwe73---.css","input_0slbc919dahal.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_loose/input/b.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/turbopack-1u_qwvbu47ieq.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/turbopack-1u_qwvbu47ieq.js new file mode 100644 index 0000000000..e2399d8b1a --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/turbopack-1u_qwvbu47ieq.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1jugj8oln2o6y.css","08_fxy32t9nu_.css","0tv6krngu93km.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_loose/input/a.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/turbopack-3po8ewc8xyb62.js b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/turbopack-3po8ewc8xyb62.js new file mode 100644 index 0000000000..07a0050bcc --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/turbopack-3po8ewc8xyb62.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["08_fxy32t9nu_.css","392a1bap0wx7w.js"],"runtimeModuleIds":["[project]/style/css_module_global_leak_loose/input/b.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_modules/output/input_1hng4usfxrdrr.css b/crates/pack-tests/tests/snapshot/style/css_modules/output/0xcmc5-lk80nj.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_modules/output/input_1hng4usfxrdrr.css rename to crates/pack-tests/tests/snapshot/style/css_modules/output/0xcmc5-lk80nj.css diff --git a/crates/pack-tests/tests/snapshot/style/css_modules/output/input_1l-9s_n88r356.js b/crates/pack-tests/tests/snapshot/style/css_modules/output/3bprz5j9jljph.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_modules/output/input_1l-9s_n88r356.js rename to crates/pack-tests/tests/snapshot/style/css_modules/output/3bprz5j9jljph.js diff --git a/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/main.js b/crates/pack-tests/tests/snapshot/style/css_modules/output/turbopack-35hxi2clwl86n.js similarity index 58% rename from crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/main.js rename to crates/pack-tests/tests/snapshot/style/css_modules/output/turbopack-35hxi2clwl86n.js index ca95f0a954..8ce9457b1b 100644 --- a/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/css_modules/output/turbopack-35hxi2clwl86n.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___0x1or-xaxac0o.js"],"runtimeModuleIds":["[project]/style/emotion_with_pragma/input/index.tsx [client] (ecmascript)"]} + {"otherChunks":["0xcmc5-lk80nj.css","3bprz5j9jljph.js"],"runtimeModuleIds":["[project]/style/css_modules/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/input_style_less_0dy7jrhy-kk3-.css b/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/2777tlr43zrrf.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/input_style_less_0dy7jrhy-kk3-.css rename to crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/2777tlr43zrrf.css diff --git a/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/input_0ui09i_tijmmj.js b/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/2qpqbl_sqqec5.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/input_0ui09i_tijmmj.js rename to crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/2qpqbl_sqqec5.js diff --git a/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/main.js b/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/main.js deleted file mode 100644 index 8d7922678a..0000000000 --- a/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_style_less_0dy7jrhy-kk3-.css","input_0ui09i_tijmmj.js"],"runtimeModuleIds":["[project]/style/css_modules_local_ident/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_modules/output/main.js b/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/turbopack-2-38r363h3v1q.js similarity index 59% rename from crates/pack-tests/tests/snapshot/style/css_modules/output/main.js rename to crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/turbopack-2-38r363h3v1q.js index a8745ce7ce..c0d830b3b3 100644 --- a/crates/pack-tests/tests/snapshot/style/css_modules/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/css_modules_local_ident/output/turbopack-2-38r363h3v1q.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1hng4usfxrdrr.css","input_1l-9s_n88r356.js"],"runtimeModuleIds":["[project]/style/css_modules/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["2777tlr43zrrf.css","2qpqbl_sqqec5.js"],"runtimeModuleIds":["[project]/style/css_modules_local_ident/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/_project___0llue5qp25usc.js b/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/34whj3yl0ew-c.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/_project___0llue5qp25usc.js rename to crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/34whj3yl0ew-c.js diff --git a/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/turbopack-2pdizgzbjdvol.js b/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/turbopack-2pdizgzbjdvol.js new file mode 100644 index 0000000000..2fb2b6b8d4 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/turbopack-2pdizgzbjdvol.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["34whj3yl0ew-c.js"],"runtimeModuleIds":["[project]/style/emotion_custom_options/input/index.tsx [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/_project___1uejn9u7mr8-g.js b/crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/43zqr5xkxfs71.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/_project___1uejn9u7mr8-g.js rename to crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/43zqr5xkxfs71.js diff --git a/crates/pack-tests/tests/snapshot/static-assets/json/output/main.js b/crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/turbopack-3ret27zw6a-6i.js similarity index 56% rename from crates/pack-tests/tests/snapshot/static-assets/json/output/main.js rename to crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/turbopack-3ret27zw6a-6i.js index 4fcfc53ffa..ab44456d32 100644 --- a/crates/pack-tests/tests/snapshot/static-assets/json/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/emotion_no_pragma/output/turbopack-3ret27zw6a-6i.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1091t70a1-rug.js"],"runtimeModuleIds":["[project]/static-assets/json/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["43zqr5xkxfs71.js"],"runtimeModuleIds":["[project]/style/emotion_no_pragma/input/index.tsx [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/_project___0x1or-xaxac0o.js b/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/3uuypq-zx-mbr.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/_project___0x1or-xaxac0o.js rename to crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/3uuypq-zx-mbr.js diff --git a/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/turbopack-0y8fbyfftnyh1.js b/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/turbopack-0y8fbyfftnyh1.js new file mode 100644 index 0000000000..0dec143456 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/emotion_with_pragma/output/turbopack-0y8fbyfftnyh1.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["3uuypq-zx-mbr.js"],"runtimeModuleIds":["[project]/style/emotion_with_pragma/input/index.tsx [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/global_css/output/input_index_02z6xlu346th1.js b/crates/pack-tests/tests/snapshot/style/global_css/output/277ksfa0vqlpf.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/global_css/output/input_index_02z6xlu346th1.js rename to crates/pack-tests/tests/snapshot/style/global_css/output/277ksfa0vqlpf.js diff --git a/crates/pack-tests/tests/snapshot/style/global_css/output/input_index_less_1h_9by7vwt2c0.css b/crates/pack-tests/tests/snapshot/style/global_css/output/2k6nn867x79o8.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/global_css/output/input_index_less_1h_9by7vwt2c0.css rename to crates/pack-tests/tests/snapshot/style/global_css/output/2k6nn867x79o8.css diff --git a/crates/pack-tests/tests/snapshot/style/global_css/output/main.js b/crates/pack-tests/tests/snapshot/style/global_css/output/main.js deleted file mode 100644 index 33baeafb17..0000000000 --- a/crates/pack-tests/tests/snapshot/style/global_css/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_less_1h_9by7vwt2c0.css","input_index_02z6xlu346th1.js"],"runtimeModuleIds":["[project]/style/global_css/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/main.js b/crates/pack-tests/tests/snapshot/style/global_css/output/turbopack-25dagz58fnhpd.js similarity index 58% rename from crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/main.js rename to crates/pack-tests/tests/snapshot/style/global_css/output/turbopack-25dagz58fnhpd.js index 1864de6961..62abe59bc5 100644 --- a/crates/pack-tests/tests/snapshot/optimization/cjs_optimizations/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/global_css/output/turbopack-25dagz58fnhpd.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1od3xpytw5f97.js"],"runtimeModuleIds":["[project]/optimization/cjs_optimizations/input/index.js [client] (ecmascript)"]} + {"otherChunks":["2k6nn867x79o8.css","277ksfa0vqlpf.js"],"runtimeModuleIds":["[project]/style/global_css/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/global_scoped/output/input_0bpae8i7xl7ri.css b/crates/pack-tests/tests/snapshot/style/global_scoped/output/1ojhfbrtryppn.css similarity index 96% rename from crates/pack-tests/tests/snapshot/style/global_scoped/output/input_0bpae8i7xl7ri.css rename to crates/pack-tests/tests/snapshot/style/global_scoped/output/1ojhfbrtryppn.css index bf80dd3370..85e04f3dfe 100644 --- a/crates/pack-tests/tests/snapshot/style/global_scoped/output/input_0bpae8i7xl7ri.css +++ b/crates/pack-tests/tests/snapshot/style/global_scoped/output/1ojhfbrtryppn.css @@ -84,4 +84,4 @@ display: none; } -/*# sourceMappingURL=input_0bpae8i7xl7ri.css.map*/ \ No newline at end of file +/*# sourceMappingURL=2asgykzz9zilk.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/global_scoped/output/input_1aitm0a6a7fyu.js b/crates/pack-tests/tests/snapshot/style/global_scoped/output/1tobgtbvv2v6c.js similarity index 96% rename from crates/pack-tests/tests/snapshot/style/global_scoped/output/input_1aitm0a6a7fyu.js rename to crates/pack-tests/tests/snapshot/style/global_scoped/output/1tobgtbvv2v6c.js index f6d1fc28e9..a6219e9cfc 100644 --- a/crates/pack-tests/tests/snapshot/style/global_scoped/output/input_1aitm0a6a7fyu.js +++ b/crates/pack-tests/tests/snapshot/style/global_scoped/output/1tobgtbvv2v6c.js @@ -24,4 +24,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_1aitm0a6a7fyu.js.map \ No newline at end of file +//# sourceMappingURL=3q01i5vrhc262.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/global_scoped/output/input_0bpae8i7xl7ri.css.map b/crates/pack-tests/tests/snapshot/style/global_scoped/output/2asgykzz9zilk.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/global_scoped/output/input_0bpae8i7xl7ri.css.map rename to crates/pack-tests/tests/snapshot/style/global_scoped/output/2asgykzz9zilk.css.map diff --git a/crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/main.js.map b/crates/pack-tests/tests/snapshot/style/global_scoped/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/optimization/remove_unused_imports_reexport_runtime_use/output/main.js.map rename to crates/pack-tests/tests/snapshot/style/global_scoped/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/style/global_scoped/output/input_1aitm0a6a7fyu.js.map b/crates/pack-tests/tests/snapshot/style/global_scoped/output/3q01i5vrhc262.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/global_scoped/output/input_1aitm0a6a7fyu.js.map rename to crates/pack-tests/tests/snapshot/style/global_scoped/output/3q01i5vrhc262.js.map diff --git a/crates/pack-tests/tests/snapshot/style/global_scoped/output/main.js b/crates/pack-tests/tests/snapshot/style/global_scoped/output/main.js deleted file mode 100644 index f1d6273f49..0000000000 --- a/crates/pack-tests/tests/snapshot/style/global_scoped/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0bpae8i7xl7ri.css","input_1aitm0a6a7fyu.js"],"runtimeModuleIds":["[project]/style/global_scoped/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/subpath/output/main.js b/crates/pack-tests/tests/snapshot/style/global_scoped/output/turbopack-11rrxnsufsfhf.js similarity index 58% rename from crates/pack-tests/tests/snapshot/externals/subpath/output/main.js rename to crates/pack-tests/tests/snapshot/style/global_scoped/output/turbopack-11rrxnsufsfhf.js index 647fea76cd..db38a4010d 100644 --- a/crates/pack-tests/tests/snapshot/externals/subpath/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/global_scoped/output/turbopack-11rrxnsufsfhf.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___1xia4yux-1nbe.js"],"runtimeModuleIds":["[project]/externals/subpath/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["1ojhfbrtryppn.css","1tobgtbvv2v6c.js"],"runtimeModuleIds":["[project]/style/global_scoped/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/inline_css/assert.js b/crates/pack-tests/tests/snapshot/style/inline_css/assert.js index 182bc33300..35a6019591 100644 --- a/crates/pack-tests/tests/snapshot/style/inline_css/assert.js +++ b/crates/pack-tests/tests/snapshot/style/inline_css/assert.js @@ -5,7 +5,14 @@ const path = require("node:path"); const outputDir = path.join(__dirname, "output"); const chunkFile = fs .readdirSync(outputDir) - .find((file) => file.startsWith("_root-of-the-server___") && file.endsWith(".js")); + .find( + (file) => + file.endsWith(".js") && + !file.startsWith("turbopack-") && + fs + .readFileSync(path.join(outputDir, file), "utf8") + .includes("index.less?modules [client] (css module)"), + ); assert.ok(chunkFile, "expected an inline CSS output chunk"); @@ -18,7 +25,11 @@ const cssModuleStart = chunk.indexOf(cssModuleMarker); const entryStart = chunk.indexOf(entryMarker, cssModuleStart); assert.notEqual(cssModuleStart, -1, "expected the CSS Modules facade"); -assert.notEqual(entryStart, -1, "expected the JavaScript entry after the CSS Modules facade"); +assert.notEqual( + entryStart, + -1, + "expected the JavaScript entry after the CSS Modules facade", +); const cssModuleFactory = chunk.slice(cssModuleStart, entryStart); diff --git a/crates/pack-tests/tests/snapshot/style/inline_css/output/_root-of-the-server___01i2jh92vdebo.js b/crates/pack-tests/tests/snapshot/style/inline_css/output/0b1zyf9cd9ehj.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/inline_css/output/_root-of-the-server___01i2jh92vdebo.js rename to crates/pack-tests/tests/snapshot/style/inline_css/output/0b1zyf9cd9ehj.js diff --git a/crates/pack-tests/tests/snapshot/style/inline_css/output/turbopack-3ucwcpbyn3csv.js b/crates/pack-tests/tests/snapshot/style/inline_css/output/turbopack-3ucwcpbyn3csv.js new file mode 100644 index 0000000000..99dfb8bb16 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/inline_css/output/turbopack-3ucwcpbyn3csv.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0b1zyf9cd9ehj.js"],"runtimeModuleIds":["[project]/style/inline_css/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/_root-of-the-server___1_57-e6_q107h.js b/crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/1aih1k3gq_cyw.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/_root-of-the-server___1_57-e6_q107h.js rename to crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/1aih1k3gq_cyw.js diff --git a/crates/pack-tests/tests/snapshot/basic/copy/output/main.js b/crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/turbopack-3t0ovgolj906h.js similarity index 53% rename from crates/pack-tests/tests/snapshot/basic/copy/output/main.js rename to crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/turbopack-3t0ovgolj906h.js index 0aa8ca7b5b..35297947aa 100644 --- a/crates/pack-tests/tests/snapshot/basic/copy/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/inline_css_postcss/output/turbopack-3t0ovgolj906h.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_0eqdxa7ujoyj7.js"],"runtimeModuleIds":["[project]/basic/copy/input/index.js [client] (ecmascript)"]} + {"otherChunks":["1aih1k3gq_cyw.js"],"runtimeModuleIds":["[project]/style/inline_css_postcss/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_1dwhb-3ozifd_.js b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/06h8-wqz_6j1r.js similarity index 95% rename from crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_1dwhb-3ozifd_.js rename to crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/06h8-wqz_6j1r.js index 4099396d98..4d853cc9ec 100644 --- a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_1dwhb-3ozifd_.js +++ b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/06h8-wqz_6j1r.js @@ -18,4 +18,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_1dwhb-3ozifd_.js.map \ No newline at end of file +//# sourceMappingURL=1y9lcukqepg2b.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_index_less_191-4z0dc5uin.css b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/0k14s9_6mkedr.css similarity index 90% rename from crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_index_less_191-4z0dc5uin.css rename to crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/0k14s9_6mkedr.css index bcc095640d..f1a22ab1d0 100644 --- a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_index_less_191-4z0dc5uin.css +++ b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/0k14s9_6mkedr.css @@ -31,4 +31,4 @@ form[id="step1"] { background-image: url("") lightgray 50% / cover no-repeat; } -/*# sourceMappingURL=input_index_less_191-4z0dc5uin.css.map*/ \ No newline at end of file +/*# sourceMappingURL=3n1sly864fok2.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_1dwhb-3ozifd_.js.map b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/1y9lcukqepg2b.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_1dwhb-3ozifd_.js.map rename to crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/1y9lcukqepg2b.js.map diff --git a/crates/pack-tests/tests/snapshot/provider/basic/output/main.js.map b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/provider/basic/output/main.js.map rename to crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_index_less_191-4z0dc5uin.css.map b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/3n1sly864fok2.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/input_index_less_191-4z0dc5uin.css.map rename to crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/3n1sly864fok2.css.map diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/main.js b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/main.js deleted file mode 100644 index f2f5c08983..0000000000 --- a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_less_191-4z0dc5uin.css","input_1dwhb-3ozifd_.js"],"runtimeModuleIds":["[project]/style/invalid_pseudo_class/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/turbopack-1l0sxjhrtyvlv.js b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/turbopack-1l0sxjhrtyvlv.js new file mode 100644 index 0000000000..076d0d1564 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/turbopack-1l0sxjhrtyvlv.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0k14s9_6mkedr.css","06h8-wqz_6j1r.js"],"runtimeModuleIds":["[project]/style/invalid_pseudo_class/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/less/output/input_14_i084nq1aab.js b/crates/pack-tests/tests/snapshot/style/less/output/0-u7bp_-yx0yg.js similarity index 94% rename from crates/pack-tests/tests/snapshot/style/less/output/input_14_i084nq1aab.js rename to crates/pack-tests/tests/snapshot/style/less/output/0-u7bp_-yx0yg.js index 1fc8fe45c1..c9e0749dc0 100644 --- a/crates/pack-tests/tests/snapshot/style/less/output/input_14_i084nq1aab.js +++ b/crates/pack-tests/tests/snapshot/style/less/output/0-u7bp_-yx0yg.js @@ -14,4 +14,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_14_i084nq1aab.js.map \ No newline at end of file +//# sourceMappingURL=2m4wez15-c3eu.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/less/output/_project___1012oe4m-uh0e.css b/crates/pack-tests/tests/snapshot/style/less/output/1omd-op5oudc_.css similarity index 86% rename from crates/pack-tests/tests/snapshot/style/less/output/_project___1012oe4m-uh0e.css rename to crates/pack-tests/tests/snapshot/style/less/output/1omd-op5oudc_.css index b0eb948722..fe14373526 100644 --- a/crates/pack-tests/tests/snapshot/style/less/output/_project___1012oe4m-uh0e.css +++ b/crates/pack-tests/tests/snapshot/style/less/output/1omd-op5oudc_.css @@ -15,4 +15,4 @@ body { background-color: #000; } -/*# sourceMappingURL=_project___1012oe4m-uh0e.css.map*/ \ No newline at end of file +/*# sourceMappingURL=3bp8vk7wafjin.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/less/output/input_14_i084nq1aab.js.map b/crates/pack-tests/tests/snapshot/style/less/output/2m4wez15-c3eu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/less/output/input_14_i084nq1aab.js.map rename to crates/pack-tests/tests/snapshot/style/less/output/2m4wez15-c3eu.js.map diff --git a/crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/main.js.map b/crates/pack-tests/tests/snapshot/style/less/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/runtime/legacy_global_this/output/main.js.map rename to crates/pack-tests/tests/snapshot/style/less/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/style/less/output/_project___1012oe4m-uh0e.css.map b/crates/pack-tests/tests/snapshot/style/less/output/3bp8vk7wafjin.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/less/output/_project___1012oe4m-uh0e.css.map rename to crates/pack-tests/tests/snapshot/style/less/output/3bp8vk7wafjin.css.map diff --git a/crates/pack-tests/tests/snapshot/style/less/output/main.js b/crates/pack-tests/tests/snapshot/style/less/output/main.js deleted file mode 100644 index 3cded8db90..0000000000 --- a/crates/pack-tests/tests/snapshot/style/less/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___1012oe4m-uh0e.css","input_14_i084nq1aab.js"],"runtimeModuleIds":["[project]/style/less/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/less/output/turbopack-0fnow2399ghsb.js b/crates/pack-tests/tests/snapshot/style/less/output/turbopack-0fnow2399ghsb.js new file mode 100644 index 0000000000..32203100c9 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/less/output/turbopack-0fnow2399ghsb.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1omd-op5oudc_.css","0-u7bp_-yx0yg.js"],"runtimeModuleIds":["[project]/style/less/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/input_index_1t_yuyjv48l02.js b/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/0y_i8z6g1ex4j.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/local_postcss_config/output/input_index_1t_yuyjv48l02.js rename to crates/pack-tests/tests/snapshot/style/local_postcss_config/output/0y_i8z6g1ex4j.js diff --git a/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/input_style_0pin7tvndsvmo.css b/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/18bp6kzzocb1m.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/local_postcss_config/output/input_style_0pin7tvndsvmo.css rename to crates/pack-tests/tests/snapshot/style/local_postcss_config/output/18bp6kzzocb1m.css diff --git a/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/main.js b/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/main.js deleted file mode 100644 index fd244d5f6f..0000000000 --- a/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_style_0pin7tvndsvmo.css","input_index_1t_yuyjv48l02.js"],"runtimeModuleIds":["[project]/style/local_postcss_config/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/turbopack-2uk5j9lgchmk6.js b/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/turbopack-2uk5j9lgchmk6.js new file mode 100644 index 0000000000..b68af067ff --- /dev/null +++ b/crates/pack-tests/tests/snapshot/style/local_postcss_config/output/turbopack-2uk5j9lgchmk6.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["18bp6kzzocb1m.css","0y_i8z6g1ex4j.js"],"runtimeModuleIds":["[project]/style/local_postcss_config/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/input_index_19fhf5g67hwt_.js b/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/15_bzho09ek01.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/input_index_19fhf5g67hwt_.js rename to crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/15_bzho09ek01.js diff --git a/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/input_style_1s2j892og2e9u.css b/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/234vkhqtj47p8.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/input_style_1s2j892og2e9u.css rename to crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/234vkhqtj47p8.css diff --git a/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/main.js b/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/main.js deleted file mode 100644 index 422210072f..0000000000 --- a/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_style_1s2j892og2e9u.css","input_index_19fhf5g67hwt_.js"],"runtimeModuleIds":["[project]/style/merged_postcss_config/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/main.js b/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/turbopack-0l76g_6xcvnb6.js similarity index 59% rename from crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/main.js rename to crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/turbopack-0l76g_6xcvnb6.js index 2462cf100a..7c100bda08 100644 --- a/crates/pack-tests/tests/snapshot/circular_dependency/reexport_cycle_barrel/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/merged_postcss_config/output/turbopack-0l76g_6xcvnb6.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_14xafvgct4twx.js"],"runtimeModuleIds":["[project]/circular_dependency/reexport_cycle_barrel/input/index.js [client] (ecmascript)"]} + {"otherChunks":["234vkhqtj47p8.css","15_bzho09ek01.js"],"runtimeModuleIds":["[project]/style/merged_postcss_config/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/url_svg_font/output/input_index_1yi0kbmij4ap_.js b/crates/pack-tests/tests/snapshot/style/url_svg_font/output/0k48qs7a-w_ut.js similarity index 100% rename from crates/pack-tests/tests/snapshot/style/url_svg_font/output/input_index_1yi0kbmij4ap_.js rename to crates/pack-tests/tests/snapshot/style/url_svg_font/output/0k48qs7a-w_ut.js diff --git a/crates/pack-tests/tests/snapshot/style/url_svg_font/output/input_font_19dlz9t4mrok1.css b/crates/pack-tests/tests/snapshot/style/url_svg_font/output/1rtqy_rcc4uj0.css similarity index 100% rename from crates/pack-tests/tests/snapshot/style/url_svg_font/output/input_font_19dlz9t4mrok1.css rename to crates/pack-tests/tests/snapshot/style/url_svg_font/output/1rtqy_rcc4uj0.css diff --git a/crates/pack-tests/tests/snapshot/style/url_svg_font/output/main.js b/crates/pack-tests/tests/snapshot/style/url_svg_font/output/main.js deleted file mode 100644 index 680ee1eb05..0000000000 --- a/crates/pack-tests/tests/snapshot/style/url_svg_font/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_font_19dlz9t4mrok1.css","input_index_1yi0kbmij4ap_.js"],"runtimeModuleIds":["[project]/style/url_svg_font/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/inline_css/output/main.js b/crates/pack-tests/tests/snapshot/style/url_svg_font/output/turbopack-0pdz_hth6hz4o.js similarity index 58% rename from crates/pack-tests/tests/snapshot/style/inline_css/output/main.js rename to crates/pack-tests/tests/snapshot/style/url_svg_font/output/turbopack-0pdz_hth6hz4o.js index 63a5dbb172..5efec94128 100644 --- a/crates/pack-tests/tests/snapshot/style/inline_css/output/main.js +++ b/crates/pack-tests/tests/snapshot/style/url_svg_font/output/turbopack-0pdz_hth6hz4o.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___01i2jh92vdebo.js"],"runtimeModuleIds":["[project]/style/inline_css/input/index.js [client] (ecmascript)"]} + {"otherChunks":["1rtqy_rcc4uj0.css","0k48qs7a-w_ut.js"],"runtimeModuleIds":["[project]/style/url_svg_font/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_lazy_1svb1t7acgus6.js.map b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/0045ir_i8suiw.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_lazy_1svb1t7acgus6.js.map rename to crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/0045ir_i8suiw.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_01m51zjd5cki_.js.map b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/1_dxwgjiqzfc0.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_01m51zjd5cki_.js.map rename to crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/1_dxwgjiqzfc0.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_lazy_1svb1t7acgus6.js b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/1exc068zmvbua.js similarity index 81% rename from crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_lazy_1svb1t7acgus6.js rename to crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/1exc068zmvbua.js index 46369dced2..e1784df5a7 100644 --- a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_lazy_1svb1t7acgus6.js +++ b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/1exc068zmvbua.js @@ -1,3 +1,3 @@ (self.TURBOPACK||(self.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,"[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript)",function(t){"use strict";t.s(["value",0,42])}]); -//# sourceMappingURL=input_lazy_1svb1t7acgus6.js.map \ No newline at end of file +//# sourceMappingURL=0045ir_i8suiw.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_01m51zjd5cki_.js b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/23exmrpfkzmzx.js similarity index 64% rename from crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_01m51zjd5cki_.js rename to crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/23exmrpfkzmzx.js index f51d46575d..2a030ca450 100644 --- a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/input_01m51zjd5cki_.js +++ b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/23exmrpfkzmzx.js @@ -1,3 +1,3 @@ -(self.TURBOPACK||(self.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,"[project]/target_web/arrow_function_target/input/index.js [client] (ecmascript)",function(t,e,n){globalThis.__arrowFunctionTargetQueue={delete(t){return t}},t.A("[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript, async loader)").then(function(t){globalThis.__arrowFunctionTargetValue=t.value})},"[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript, async loader)",function(t){t.v(function(e){return Promise.all(["input_lazy_1svb1t7acgus6.js"].map(function(e){return t.l(e)})).then(function(){return e("[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript)")})})}]); +(self.TURBOPACK||(self.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,"[project]/target_web/arrow_function_target/input/index.js [client] (ecmascript)",function(t,e,n){globalThis.__arrowFunctionTargetQueue={delete(t){return t}},t.A("[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript, async loader)").then(function(t){globalThis.__arrowFunctionTargetValue=t.value})},"[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript, async loader)",function(t){t.v(function(e){return Promise.all(["1exc068zmvbua.js"].map(function(e){return t.l(e)})).then(function(){return e("[project]/target_web/arrow_function_target/input/lazy.js [client] (ecmascript)")})})}]); -//# sourceMappingURL=input_01m51zjd5cki_.js.map \ No newline at end of file +//# sourceMappingURL=1_dxwgjiqzfc0.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/main.js.map b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/2o75p8sdyycvy.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/main.js.map rename to crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/2o75p8sdyycvy.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/main.js b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/main.js deleted file mode 100644 index 935e3eba7f..0000000000 --- a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/main.js +++ /dev/null @@ -1,3 +0,0 @@ -(self.TURBOPACK||(self.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["input_01m51zjd5cki_.js"],runtimeModuleIds:["[project]/target_web/arrow_function_target/input/index.js [client] (ecmascript)"]}]); - -//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/turbopack-0qo01d68pi55u.js b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/turbopack-0qo01d68pi55u.js new file mode 100644 index 0000000000..c1ed9ef9b0 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/target_web/arrow_function_target/output/turbopack-0qo01d68pi55u.js @@ -0,0 +1,3 @@ +(self.TURBOPACK||(self.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["23exmrpfkzmzx.js"],runtimeModuleIds:["[project]/target_web/arrow_function_target/input/index.js [client] (ecmascript)"]}]); + +//# sourceMappingURL=2o75p8sdyycvy.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/_project___0m1q80lolapxj.js.map b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/18g-0s5e_823z.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/_project___0m1q80lolapxj.js.map rename to crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/18g-0s5e_823z.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/_project___0m1q80lolapxj.js b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/1_rrls8gwwa2r.js similarity index 99% rename from crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/_project___0m1q80lolapxj.js rename to crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/1_rrls8gwwa2r.js index c93b05f8c1..466c294ec3 100644 --- a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/_project___0m1q80lolapxj.js +++ b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/1_rrls8gwwa2r.js @@ -269,7 +269,7 @@ return __turbopack_context__.a(function(__turbopack_handle_async_dependencies__, __turbopack_context__.v(function(parentImport) { return Promise.all([ - "input_lazy_0s7be15rgd2fq.js" + "3k6zjoq1g38z4.js" ].map(function(chunk) { return __turbopack_context__.l(chunk); })).then(function() { return parentImport("[project]/target_web/legacy_mobile/input/lazy.js [client] (ecmascript)"); }); @@ -277,4 +277,4 @@ __turbopack_context__.v(function(parentImport) { }), ]); -//# sourceMappingURL=_project___0m1q80lolapxj.js.map \ No newline at end of file +//# sourceMappingURL=18g-0s5e_823z.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_client-fs___0uy0mninb8pht.js.map b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/_client-fs___0uy0mninb8pht.js.map rename to crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/input_lazy_0s7be15rgd2fq.js.map b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/3cpw1biu21xni.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/input_lazy_0s7be15rgd2fq.js.map rename to crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/3cpw1biu21xni.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/input_lazy_0s7be15rgd2fq.js b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/3k6zjoq1g38z4.js similarity index 89% rename from crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/input_lazy_0s7be15rgd2fq.js rename to crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/3k6zjoq1g38z4.js index 6006f62ab5..6ae0da13ca 100644 --- a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/input_lazy_0s7be15rgd2fq.js +++ b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/3k6zjoq1g38z4.js @@ -19,4 +19,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_lazy_0s7be15rgd2fq.js.map \ No newline at end of file +//# sourceMappingURL=3cpw1biu21xni.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/main.js b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/main.js deleted file mode 100644 index b62221603a..0000000000 --- a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(self["TURBOPACK"] || (self["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___0m1q80lolapxj.js"],"runtimeModuleIds":["[project]/target_web/legacy_mobile/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/turbopack-37hnybi72jgl7.js b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/turbopack-37hnybi72jgl7.js new file mode 100644 index 0000000000..2ddbbfbb40 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/turbopack-37hnybi72jgl7.js @@ -0,0 +1,5 @@ +(self["TURBOPACK"] || (self["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1_rrls8gwwa2r.js"],"runtimeModuleIds":["[project]/target_web/legacy_mobile/input/index.js [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typeof/output/input_0cg8lk0wi0g2i.js.map b/crates/pack-tests/tests/snapshot/typeof/output/15smxllth-qpa.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typeof/output/input_0cg8lk0wi0g2i.js.map rename to crates/pack-tests/tests/snapshot/typeof/output/15smxllth-qpa.js.map diff --git a/crates/pack-tests/tests/snapshot/typeof/output/input_0cg8lk0wi0g2i.js b/crates/pack-tests/tests/snapshot/typeof/output/1i3_9tk2y_dkr.js similarity index 98% rename from crates/pack-tests/tests/snapshot/typeof/output/input_0cg8lk0wi0g2i.js rename to crates/pack-tests/tests/snapshot/typeof/output/1i3_9tk2y_dkr.js index 07108013cb..ba65c7dbc8 100644 --- a/crates/pack-tests/tests/snapshot/typeof/output/input_0cg8lk0wi0g2i.js +++ b/crates/pack-tests/tests/snapshot/typeof/output/1i3_9tk2y_dkr.js @@ -84,4 +84,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_0cg8lk0wi0g2i.js.map \ No newline at end of file +//# sourceMappingURL=15smxllth-qpa.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/main.js.map b/crates/pack-tests/tests/snapshot/typeof/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/main.js.map rename to crates/pack-tests/tests/snapshot/typeof/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typeof/output/main.js b/crates/pack-tests/tests/snapshot/typeof/output/main.js deleted file mode 100644 index 9e7a17b50a..0000000000 --- a/crates/pack-tests/tests/snapshot/typeof/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_0cg8lk0wi0g2i.js"],"runtimeModuleIds":["[project]/typeof/input/index.js [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/basic/minify/output/main.js b/crates/pack-tests/tests/snapshot/typeof/output/turbopack-30043g9lw67mn.js similarity index 57% rename from crates/pack-tests/tests/snapshot/basic/minify/output/main.js rename to crates/pack-tests/tests/snapshot/typeof/output/turbopack-30043g9lw67mn.js index ed03c4f767..33a92f78ce 100644 --- a/crates/pack-tests/tests/snapshot/basic/minify/output/main.js +++ b/crates/pack-tests/tests/snapshot/typeof/output/turbopack-30043g9lw67mn.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_15-2uaf8cdjq0.js"],"runtimeModuleIds":[71]} + {"otherChunks":["1i3_9tk2y_dkr.js"],"runtimeModuleIds":["[project]/typeof/input/index.js [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/input_0twuv70mvc3bj.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/0dnor1feavk4t.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/input_0twuv70mvc3bj.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/0dnor1feavk4t.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/input_0twuv70mvc3bj.js b/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/0ppty82fg2gd1.js similarity index 95% rename from crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/input_0twuv70mvc3bj.js rename to crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/0ppty82fg2gd1.js index 1ccb7dc569..5c4fd1a5f2 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/input_0twuv70mvc3bj.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/0ppty82fg2gd1.js @@ -40,4 +40,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_0twuv70mvc3bj.js.map \ No newline at end of file +//# sourceMappingURL=0dnor1feavk4t.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1ygm6s0hxaxg1.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/static-assets/foreign_js_new_url/output/node_modules_static-url-package_processes_main_MainWorker_1ygm6s0hxaxg1.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/turbopack-444mlm2e-app3.js b/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/turbopack-444mlm2e-app3.js new file mode 100644 index 0000000000..c5b705ef6d --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/turbopack-444mlm2e-app3.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0ppty82fg2gd1.js"],"runtimeModuleIds":[55]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/input_index_ts_1y7zbl4jhm_cj.js b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/01b5z427va6dx.js similarity index 86% rename from crates/pack-tests/tests/snapshot/typescript/dts_export/output/input_index_ts_1y7zbl4jhm_cj.js rename to crates/pack-tests/tests/snapshot/typescript/dts_export/output/01b5z427va6dx.js index e605b63a10..0d9af1e848 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/input_index_ts_1y7zbl4jhm_cj.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/01b5z427va6dx.js @@ -13,4 +13,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_index_ts_1y7zbl4jhm_cj.js.map \ No newline at end of file +//# sourceMappingURL=1lgdzhktkl4pc.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/input_index_ts_1y7zbl4jhm_cj.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/1lgdzhktkl4pc.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_export/output/input_index_ts_1y7zbl4jhm_cj.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_export/output/1lgdzhktkl4pc.js.map diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/a.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/a.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_export/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/main.js b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/main.js deleted file mode 100644 index 8827fd2259..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_1y7zbl4jhm_cj.js"],"runtimeModuleIds":[72]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/turbopack-3zwgy3umb41_t.js b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/turbopack-3zwgy3umb41_t.js new file mode 100644 index 0000000000..421edece05 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_export/output/turbopack-3zwgy3umb41_t.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["01b5z427va6dx.js"],"runtimeModuleIds":[72]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/b.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_graph/output/b.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/input_index_ts_210j2f02exfd_.js b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/32i_6wfj0voz6.js similarity index 83% rename from crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/input_index_ts_210j2f02exfd_.js rename to crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/32i_6wfj0voz6.js index c64f00dc95..561f62715c 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/input_index_ts_210j2f02exfd_.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/32i_6wfj0voz6.js @@ -9,4 +9,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_index_ts_210j2f02exfd_.js.map \ No newline at end of file +//# sourceMappingURL=3sh2d25o3up82.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/input_index_ts_210j2f02exfd_.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/3sh2d25o3up82.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/input_index_ts_210j2f02exfd_.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/3sh2d25o3up82.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/main.js b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/main.js deleted file mode 100644 index dc28619c7c..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_210j2f02exfd_.js"],"runtimeModuleIds":[65]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/turbopack-2xw77_q3xn3xj.js b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/turbopack-2xw77_q3xn3xj.js new file mode 100644 index 0000000000..bc5ac9b42d --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/turbopack-2xw77_q3xn3xj.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["32i_6wfj0voz6.js"],"runtimeModuleIds":[65]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/0gdse1jdwcgf2.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/0gdse1jdwcgf2.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/2n63-4-ee85k2.js similarity index 87% rename from crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js rename to crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/2n63-4-ee85k2.js index d94cb8d455..be293c27e9 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/2n63-4-ee85k2.js @@ -29,4 +29,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js.map \ No newline at end of file +//# sourceMappingURL=0gdse1jdwcgf2.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/a.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/a.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/main.js b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/main.js deleted file mode 100644 index 1c1840e85c..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project__typescript_dts_implicit_type_import_classic_jsx_03w21gyds2bif.js"],"runtimeModuleIds":[54]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/turbopack-3c-l8dkqnx6ou.js b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/turbopack-3c-l8dkqnx6ou.js new file mode 100644 index 0000000000..7dd3c0cf88 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/turbopack-3c-l8dkqnx6ou.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["2n63-4-ee85k2.js"],"runtimeModuleIds":[54]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/input_0-sfuk63j8wyd.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/0ayxh8ot-oara.js similarity index 93% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/input_0-sfuk63j8wyd.js rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/0ayxh8ot-oara.js index a542197689..45065a0615 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/input_0-sfuk63j8wyd.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/0ayxh8ot-oara.js @@ -27,4 +27,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_0-sfuk63j8wyd.js.map \ No newline at end of file +//# sourceMappingURL=3-9ns196k6i83.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/b.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/css_module_global_leak_loose/output/b.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/input_0-sfuk63j8wyd.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/3-9ns196k6i83.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/input_0-sfuk63j8wyd.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/3-9ns196k6i83.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/turbopack-2kvdk_cxxr66p.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/turbopack-2kvdk_cxxr66p.js new file mode 100644 index 0000000000..0cf86ce33f --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/turbopack-2kvdk_cxxr66p.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0ayxh8ot-oara.js"],"runtimeModuleIds":[38]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/input_07x66ty5-cud2.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/0xa861b5dy5c2.js similarity index 93% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/input_07x66ty5-cud2.js rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/0xa861b5dy5c2.js index 299aa848bb..45c6989e90 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/input_07x66ty5-cud2.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/0xa861b5dy5c2.js @@ -24,4 +24,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_07x66ty5-cud2.js.map \ No newline at end of file +//# sourceMappingURL=1qdtbg9e2171_.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/input_07x66ty5-cud2.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/1qdtbg9e2171_.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/input_07x66ty5-cud2.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/1qdtbg9e2171_.js.map diff --git a/crates/pack-tests/tests/snapshot/style/global_scoped/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/global_scoped/output/main.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/turbopack-17c2p69jgp1mz.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/turbopack-17c2p69jgp1mz.js new file mode 100644 index 0000000000..7c6c293acc --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/turbopack-17c2p69jgp1mz.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0xa861b5dy5c2.js"],"runtimeModuleIds":[75]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/0b6rym7k2ne_e.js similarity index 90% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/0b6rym7k2ne_e.js index ea9c7bf8e4..ed92a70cf7 100644 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js +++ b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/0b6rym7k2ne_e.js @@ -34,4 +34,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js.map \ No newline at end of file +//# sourceMappingURL=359__uvs4wkmc.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/invalid_pseudo_class/output/main.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/359__uvs4wkmc.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js.map rename to crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/359__uvs4wkmc.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/main.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/main.js deleted file mode 100644 index cc42cd11a2..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project__typescript_dts_inline_type_import_classic_jsx_0fsj7_rfyeokk.js"],"runtimeModuleIds":[56]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/main.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/main.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/turbopack-3v_9edu6qdzu8.js b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/turbopack-3v_9edu6qdzu8.js new file mode 100644 index 0000000000..92c49fd1a4 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import_classic_jsx/output/turbopack-3v_9edu6qdzu8.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0b6rym7k2ne_e.js"],"runtimeModuleIds":[56]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/_project___0z0tsbz58snp8.js.map b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/03q0kdjhiqc9y.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/_project___0z0tsbz58snp8.js.map rename to crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/03q0kdjhiqc9y.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/_project___0z0tsbz58snp8.js b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/28wy2vhlc16sc.js similarity index 93% rename from crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/_project___0z0tsbz58snp8.js rename to crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/28wy2vhlc16sc.js index 3ca5e6b8f3..443347bd5b 100644 --- a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/_project___0z0tsbz58snp8.js +++ b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/28wy2vhlc16sc.js @@ -32,4 +32,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=_project___0z0tsbz58snp8.js.map \ No newline at end of file +//# sourceMappingURL=03q0kdjhiqc9y.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/less/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/style/less/output/main.js.map rename to crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/main.js b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/main.js deleted file mode 100644 index d4948ed8b5..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___0z0tsbz58snp8.js"],"runtimeModuleIds":[27]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/main.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/main.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/turbopack-12xslloxmv9c6.js b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/turbopack-12xslloxmv9c6.js new file mode 100644 index 0000000000..7f3a07f575 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/foreign_tsconfig/output/turbopack-12xslloxmv9c6.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["28wy2vhlc16sc.js"],"runtimeModuleIds":[27]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/input_11f73xuxi1b8r.js b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/1uvv1ommjao4r.js similarity index 97% rename from crates/pack-tests/tests/snapshot/typescript/interface_export/output/input_11f73xuxi1b8r.js rename to crates/pack-tests/tests/snapshot/typescript/interface_export/output/1uvv1ommjao4r.js index d89cd93550..c730c79f3a 100644 --- a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/input_11f73xuxi1b8r.js +++ b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/1uvv1ommjao4r.js @@ -27,4 +27,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_11f73xuxi1b8r.js.map \ No newline at end of file +//# sourceMappingURL=2j0xrgn0uc1qq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/input_11f73xuxi1b8r.js.map b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/2j0xrgn0uc1qq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/interface_export/output/input_11f73xuxi1b8r.js.map rename to crates/pack-tests/tests/snapshot/typescript/interface_export/output/2j0xrgn0uc1qq.js.map diff --git a/crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/target_web/legacy_mobile/output/main.js.map rename to crates/pack-tests/tests/snapshot/typescript/interface_export/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/main.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/main.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/interface_export/output/turbopack-0pmp6go2v_cjj.js b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/turbopack-0pmp6go2v_cjj.js new file mode 100644 index 0000000000..b4a099762b --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/interface_export/output/turbopack-0pmp6go2v_cjj.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["1uvv1ommjao4r.js"],"runtimeModuleIds":["[project]/typescript/interface_export/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/input_index_ts_10yu2spclqf97.js.map b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/0cs5eqjigtojq.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/input_index_ts_10yu2spclqf97.js.map rename to crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/0cs5eqjigtojq.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/input_index_ts_10yu2spclqf97.js b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/24dsci6vthcft.js similarity index 89% rename from crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/input_index_ts_10yu2spclqf97.js rename to crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/24dsci6vthcft.js index 17d8d78c6f..1d454ad937 100644 --- a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/input_index_ts_10yu2spclqf97.js +++ b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/24dsci6vthcft.js @@ -15,4 +15,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_index_ts_10yu2spclqf97.js.map \ No newline at end of file +//# sourceMappingURL=0cs5eqjigtojq.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typeof/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typeof/output/main.js.map rename to crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/main.js b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/main.js deleted file mode 100644 index d43c825fa2..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_index_ts_10yu2spclqf97.js"],"runtimeModuleIds":["[project]/typescript/use_define_for_class_fileds/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/main.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/main.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/turbopack-1a0-9nrrbu52f.js b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/turbopack-1a0-9nrrbu52f.js new file mode 100644 index 0000000000..52892661a8 --- /dev/null +++ b/crates/pack-tests/tests/snapshot/typescript/use_define_for_class_fileds/output/turbopack-1a0-9nrrbu52f.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["24dsci6vthcft.js"],"runtimeModuleIds":["[project]/typescript/use_define_for_class_fileds/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/1-aqn36uyw-_e.js similarity index 95% rename from crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js rename to crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/1-aqn36uyw-_e.js index cf039ec890..950460f002 100644 --- a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js +++ b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/1-aqn36uyw-_e.js @@ -43,4 +43,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js.map \ No newline at end of file +//# sourceMappingURL=2xq_t8yrbtnrr.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js.map b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/2xq_t8yrbtnrr.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js.map rename to crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/2xq_t8yrbtnrr.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_custom_classic_jsx_factory/output/main.js.map rename to crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/main.js b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/main.js deleted file mode 100644 index a8a4b2d3e6..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/main.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project__typescript_verbatim_module_syntax_10t8drqyzqm_h.js"],"runtimeModuleIds":["[project]/typescript/verbatim_module_syntax/input/index.tsx [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/main.js.map b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/main.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/main.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-input_vercel_cjs_0m5opm96hpxpo.js b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/turbopack-24k3_utdfmg8p.js similarity index 57% rename from crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-input_vercel_cjs_0m5opm96hpxpo.js rename to crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/turbopack-24k3_utdfmg8p.js index a51d2d0f52..0b25bd37d0 100644 --- a/crates/pack-tests/tests/snapshot/ignore_comments/output/turbopack-input_vercel_cjs_0m5opm96hpxpo.js +++ b/crates/pack-tests/tests/snapshot/typescript/verbatim_module_syntax/output/turbopack-24k3_utdfmg8p.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_vercel_cjs_09-9pxbbrfb39.js"],"runtimeModuleIds":["[project]/ignore_comments/input/vercel.cjs [client] (ecmascript)"]} + {"otherChunks":["1-aqn36uyw-_e.js"],"runtimeModuleIds":["[project]/typescript/verbatim_module_syntax/input/index.tsx [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/_project___202og_f2np474.js b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/0z_-lc9u9tm1y.js similarity index 98% rename from crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/_project___202og_f2np474.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/0z_-lc9u9tm1y.js index 60394b2fd9..b627b98a1b 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/_project___202og_f2np474.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/0z_-lc9u9tm1y.js @@ -64,4 +64,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project___202og_f2np474.js.map \ No newline at end of file +//# sourceMappingURL=24algsrbfeare.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/_project___202og_f2np474.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/24algsrbfeare.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/_project___202og_f2np474.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/24algsrbfeare.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_export/output/main.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_export/output/main.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/index.js b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/index.js deleted file mode 100644 index 05883d2af4..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/index.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___202og_f2np474.js"],"runtimeModuleIds":["[project]/webpack-loaders/custom-loader/input/index.tsx [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/index.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/index.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/index.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/turbopack-06_4kthg0cqs_.js b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/turbopack-06_4kthg0cqs_.js new file mode 100644 index 0000000000..8275357c1e --- /dev/null +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/turbopack-06_4kthg0cqs_.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["0z_-lc9u9tm1y.js"],"runtimeModuleIds":["[project]/webpack-loaders/custom-loader/input/index.tsx [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/_project___02rkko_df20r-.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/0f4oux5gog6n7.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/_project___02rkko_df20r-.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/0f4oux5gog6n7.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/_project___02rkko_df20r-.js b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/0n6pahcgkpx_b.js similarity index 98% rename from crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/_project___02rkko_df20r-.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/0n6pahcgkpx_b.js index 083ff26059..c92574314e 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/_project___02rkko_df20r-.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/0n6pahcgkpx_b.js @@ -70,4 +70,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=_project___02rkko_df20r-.js.map \ No newline at end of file +//# sourceMappingURL=0f4oux5gog6n7.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/main.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import/output/main.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/index.js b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/index.js deleted file mode 100644 index edf9cbecfa..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/index.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___02rkko_df20r-.js"],"runtimeModuleIds":["[project]/webpack-loaders/frontmatter-path-guard/input/index.tsx [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/index.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/index.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/index.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/client.js b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/turbopack-3ng_efm8ni9ho.js similarity index 58% rename from crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/client.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/turbopack-3ng_efm8ni9ho.js index 56f971eb1b..8119b82b79 100644 --- a/crates/pack-tests/tests/snapshot/optimization/no_mangling_exports/output/client/client.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/frontmatter-path-guard/output/turbopack-3ng_efm8ni9ho.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_07sbx5obqxp3t.js"],"runtimeModuleIds":["[project]/optimization/no_mangling_exports/input/client.js [client] (ecmascript)"]} + {"otherChunks":["0n6pahcgkpx_b.js"],"runtimeModuleIds":["[project]/webpack-loaders/frontmatter-path-guard/input/index.tsx [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_style_less_1hx51n3u2sst4.css.map b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/02otxnl4ey1i8.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_style_less_1hx51n3u2sst4.css.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/02otxnl4ey1i8.css.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_index_ts_1d26-_iz5p0kr.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/0m6gg9j9_-s79.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_index_ts_1d26-_iz5p0kr.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/0m6gg9j9_-s79.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_style_less_1hx51n3u2sst4.css b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/0zf59hgv0j4yv.css similarity index 70% rename from crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_style_less_1hx51n3u2sst4.css rename to crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/0zf59hgv0j4yv.css index ba31d27ad6..87599da69b 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_style_less_1hx51n3u2sst4.css +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/0zf59hgv0j4yv.css @@ -3,4 +3,4 @@ border-color: #13c2c2; } -/*# sourceMappingURL=input_style_less_1hx51n3u2sst4.css.map*/ \ No newline at end of file +/*# sourceMappingURL=02otxnl4ey1i8.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_index_ts_1d26-_iz5p0kr.js b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/1xt2js2pmsp30.js similarity index 86% rename from crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_index_ts_1d26-_iz5p0kr.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/1xt2js2pmsp30.js index 98ffbe54a1..36ddbd08d1 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/input_index_ts_1d26-_iz5p0kr.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/1xt2js2pmsp30.js @@ -12,4 +12,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_index_ts_1d26-_iz5p0kr.js.map \ No newline at end of file +//# sourceMappingURL=0m6gg9j9_-s79.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/main.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_implicit_type_import_classic_jsx/output/main.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/index.js b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/index.js deleted file mode 100644 index 57396f6444..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/index.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_style_less_1hx51n3u2sst4.css","input_index_ts_1d26-_iz5p0kr.js"],"runtimeModuleIds":["[project]/webpack-loaders/less-custom-loader/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/index.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/index.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/index.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/main.js b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/turbopack-1ukc6gxlo-gbu.js similarity index 60% rename from crates/pack-tests/tests/snapshot/externals/async-script-externals/output/main.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/turbopack-1ukc6gxlo-gbu.js index 0b224cad1f..f00d3e0c11 100644 --- a/crates/pack-tests/tests/snapshot/externals/async-script-externals/output/main.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/less-custom-loader/output/turbopack-1ukc6gxlo-gbu.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_root-of-the-server___0w4apur6hl7wo.js"],"runtimeModuleIds":["[project]/externals/async-script-externals/input/index.ts [client] (ecmascript)"]} + {"otherChunks":["0zf59hgv0j4yv.css","1xt2js2pmsp30.js"],"runtimeModuleIds":["[project]/webpack-loaders/less-custom-loader/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/main.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_export/output/main.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/input_1jjf3rembtef6.js b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/32sy56pr4dehe.js similarity index 97% rename from crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/input_1jjf3rembtef6.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/32sy56pr4dehe.js index fe9c3e459c..a01486c332 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/input_1jjf3rembtef6.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/32sy56pr4dehe.js @@ -27,4 +27,4 @@ __turbopack_context__.s([ }), ]); -//# sourceMappingURL=input_1jjf3rembtef6.js.map \ No newline at end of file +//# sourceMappingURL=3umcwiyjgukgz.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/input_1jjf3rembtef6.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/3umcwiyjgukgz.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/input_1jjf3rembtef6.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/3umcwiyjgukgz.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/index.js b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/index.js deleted file mode 100644 index 1f44b2af42..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/index.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_1jjf3rembtef6.js"],"runtimeModuleIds":["[project]/webpack-loaders/module-type/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/index.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/index.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/index.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/turbopack-1hoyjm50zwhm7.js b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/turbopack-1hoyjm50zwhm7.js new file mode 100644 index 0000000000..a991f0b57d --- /dev/null +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/module-type/output/turbopack-1hoyjm50zwhm7.js @@ -0,0 +1,5 @@ +(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ + typeof document === "object" ? document.currentScript : undefined, + {"otherChunks":["32sy56pr4dehe.js"],"runtimeModuleIds":["[project]/webpack-loaders/module-type/input/index.ts [client] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_index_ts_0v8phg_pz4qf3.js b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/089cq9d9v9242.js similarity index 83% rename from crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_index_ts_0v8phg_pz4qf3.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/089cq9d9v9242.js index 14d776618b..81dd2590f6 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_index_ts_0v8phg_pz4qf3.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/089cq9d9v9242.js @@ -7,4 +7,4 @@ __turbopack_context__.s([]); }), ]); -//# sourceMappingURL=input_index_ts_0v8phg_pz4qf3.js.map \ No newline at end of file +//# sourceMappingURL=1lgdzhktkl4pc.js.map \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_index_ts_0v8phg_pz4qf3.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/1lgdzhktkl4pc.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_index_ts_0v8phg_pz4qf3.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/1lgdzhktkl4pc.js.map diff --git a/crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/main.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/2z3sh82dl8glu.js.map similarity index 100% rename from crates/pack-tests/tests/snapshot/typescript/dts_inline_type_import/output/main.js.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/2z3sh82dl8glu.js.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_style_sass_0bqgsc_nk50ld.css b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/36uyb_phy1_tu.css similarity index 80% rename from crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_style_sass_0bqgsc_nk50ld.css rename to crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/36uyb_phy1_tu.css index 1d6f98b175..3f5d9b25f3 100644 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_style_sass_0bqgsc_nk50ld.css +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/36uyb_phy1_tu.css @@ -15,4 +15,4 @@ nav a { display: block; } -/*# sourceMappingURL=input_style_sass_0bqgsc_nk50ld.css.map*/ \ No newline at end of file +/*# sourceMappingURL=388e1g2ib-o6c.css.map*/ \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_style_sass_0bqgsc_nk50ld.css.map b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/388e1g2ib-o6c.css.map similarity index 100% rename from crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/input_style_sass_0bqgsc_nk50ld.css.map rename to crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/388e1g2ib-o6c.css.map diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/index.js b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/index.js deleted file mode 100644 index 86e5002990..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/index.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ - typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["input_style_sass_0bqgsc_nk50ld.css","input_index_ts_0v8phg_pz4qf3.js"],"runtimeModuleIds":["[project]/webpack-loaders/sass/input/index.ts [client] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/index.js.map b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/index.js.map deleted file mode 100644 index c15d7ec003..0000000000 --- a/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/index.js.map +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 3, - "sources": [], - "sections": [] -} \ No newline at end of file diff --git a/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/main.js b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/turbopack-0d2nde-pik7e6.js similarity index 58% rename from crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/main.js rename to crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/turbopack-0d2nde-pik7e6.js index b081539046..f7b415d774 100644 --- a/crates/pack-tests/tests/snapshot/style/emotion_custom_options/output/main.js +++ b/crates/pack-tests/tests/snapshot/webpack-loaders/sass/output/turbopack-0d2nde-pik7e6.js @@ -1,5 +1,5 @@ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ typeof document === "object" ? document.currentScript : undefined, - {"otherChunks":["_project___0llue5qp25usc.js"],"runtimeModuleIds":["[project]/style/emotion_custom_options/input/index.tsx [client] (ecmascript)"]} + {"otherChunks":["36uyb_phy1_tu.css","089cq9d9v9242.js"],"runtimeModuleIds":["[project]/webpack-loaders/sass/input/index.ts [client] (ecmascript)"]} ]); // Dummy runtime \ No newline at end of file diff --git a/next.js b/next.js index 3409f1882a..fb5c6e39ce 160000 --- a/next.js +++ b/next.js @@ -1 +1 @@ -Subproject commit 3409f1882aa5ea8b3ddc70b32ae590277a9d2bb1 +Subproject commit fb5c6e39ce1a935a3d9cf7bd8cfe70f1e84f048b diff --git a/packages/pack/README.md b/packages/pack/README.md index 0c08e82717..c32c64730c 100644 --- a/packages/pack/README.md +++ b/packages/pack/README.md @@ -121,6 +121,16 @@ The bundler can be configured via a `utoopack.json` or through the programmatic For a full list of options, see the [Configuration Schema](./config_schema.json). +Production client builds default to short content-hashed JS and CSS chunk names, +using Turbopack's 13-character base38 hash (for example, `.js` or +`turbopack-.js` for entry runtimes). Development builds retain readable names. +Explicit `output.filename`, `output.chunkFilename`, and `output.cssFilename` +templates take precedence; use `filename: "[name].js"` when consumers require +stable entry filenames. Static assets, copied files, server builds, and library +builds keep their existing naming rules. A deployment's complete URL also includes +its public path and any query parameters, so short chunk names alone do not +guarantee a particular URL length limit. + ## 🛠️ Development ### Prerequisites