diff --git a/crates/next-api/src/project.rs b/crates/next-api/src/project.rs index 8460c3e3dcf3..205375f9b5da 100644 --- a/crates/next-api/src/project.rs +++ b/crates/next-api/src/project.rs @@ -1722,6 +1722,9 @@ impl Project { source_maps: self.next_config().client_source_maps(self.next_mode()), no_mangling: self.no_mangling(), scope_hoisting: self.next_config().turbo_scope_hoisting(self.next_mode()), + minify_before_chunking: self + .next_config() + .turbopack_minify_before_chunking(self.next_mode()), nested_async_chunking: self .next_config() .turbo_nested_async_chunking(self.next_mode(), true), @@ -1817,6 +1820,9 @@ impl Project { source_maps: self.next_config().server_source_maps(), no_mangling: self.no_mangling(), scope_hoisting: self.next_config().turbo_scope_hoisting(self.next_mode()), + minify_before_chunking: self + .next_config() + .turbopack_minify_before_chunking(self.next_mode()), nested_async_chunking: self .next_config() .turbo_nested_async_chunking(self.next_mode(), false), @@ -1864,6 +1870,9 @@ impl Project { turbo_source_maps: self.next_config().server_source_maps(), no_mangling: self.no_mangling(), scope_hoisting: self.next_config().turbo_scope_hoisting(self.next_mode()), + minify_before_chunking: self + .next_config() + .turbopack_minify_before_chunking(self.next_mode()), nested_async_chunking: self .next_config() .turbo_nested_async_chunking(self.next_mode(), false), diff --git a/crates/next-core/src/next_client/context.rs b/crates/next-core/src/next_client/context.rs index 31937d016e63..cadc072097ba 100644 --- a/crates/next-core/src/next_client/context.rs +++ b/crates/next-core/src/next_client/context.rs @@ -494,6 +494,7 @@ pub struct ClientChunkingContextOptions { pub source_maps: Vc, pub no_mangling: Vc, pub scope_hoisting: Vc, + pub minify_before_chunking: Vc, pub nested_async_chunking: Vc, pub shared_runtime: Vc, pub per_page_module_graph: Vc, @@ -544,6 +545,7 @@ pub async fn get_client_chunking_context( source_maps, no_mangling, scope_hoisting, + minify_before_chunking, nested_async_chunking, shared_runtime, per_page_module_graph, @@ -656,6 +658,7 @@ pub async fn get_client_chunking_context( ) .chunk_content_hashing(ContentHashing::Direct { length: 13 }) .module_merging(*scope_hoisting.await?) + .minify_before_chunking(*minify_before_chunking.await?) .shared_runtime(*shared_runtime.await?); } diff --git a/crates/next-core/src/next_config.rs b/crates/next-core/src/next_config.rs index f6758b98069b..60f0564d1831 100644 --- a/crates/next-core/src/next_config.rs +++ b/crates/next-core/src/next_config.rs @@ -1185,6 +1185,7 @@ pub struct ExperimentalConfig { turbopack_input_source_maps: Option, turbopack_module_fragments: Option, turbopack_scope_hoisting: Option, + turbopack_minify_before_chunking: Option, turbopack_shared_runtime: Option, /// Custom URL prefix for Web Worker URLs (the entrypoint and the module /// chunks loaded inside the worker) produced by @@ -2482,6 +2483,19 @@ impl NextConfig { })) } + /// Whether to minify each module factory as it is generated rather than minifying each + /// finished chunk in one pass. Disabled in development, where nothing is minified anyway. + #[turbo_tasks::function] + pub async fn turbopack_minify_before_chunking(&self, mode: Vc) -> Result> { + Ok(Vc::cell(match *mode.await? { + NextMode::Development => false, + NextMode::Build => self + .experimental + .turbopack_minify_before_chunking + .unwrap_or(false), + })) + } + #[turbo_tasks::function] pub fn turbopack_generate_component_chunks(&self) -> Vc { Vc::cell( diff --git a/crates/next-core/src/next_edge/context.rs b/crates/next-core/src/next_edge/context.rs index 4fd4092dd99d..d310a0ea7067 100644 --- a/crates/next-core/src/next_edge/context.rs +++ b/crates/next-core/src/next_edge/context.rs @@ -185,6 +185,7 @@ pub struct EdgeChunkingContextOptions { pub turbo_source_maps: Vc, pub no_mangling: Vc, pub scope_hoisting: Vc, + pub minify_before_chunking: Vc, pub nested_async_chunking: Vc, pub client_root: FileSystemPath, pub client_static_folder_name: RcStr, @@ -213,6 +214,7 @@ pub async fn get_edge_chunking_context_with_client_assets( turbo_source_maps, no_mangling, scope_hoisting, + minify_before_chunking, nested_async_chunking, client_root, client_static_folder_name, @@ -285,7 +287,8 @@ pub async fn get_edge_chunking_context_with_client_assets( ..Default::default() }, ) - .module_merging(*scope_hoisting.await?); + .module_merging(*scope_hoisting.await?) + .minify_before_chunking(*minify_before_chunking.await?); } Ok(Vc::upcast(builder.build())) @@ -309,6 +312,7 @@ pub async fn get_edge_chunking_context( turbo_source_maps, no_mangling, scope_hoisting, + minify_before_chunking, nested_async_chunking, client_root, client_static_folder_name, @@ -398,7 +402,8 @@ pub async fn get_edge_chunking_context( ..Default::default() }, ) - .module_merging(*scope_hoisting.await?); + .module_merging(*scope_hoisting.await?) + .minify_before_chunking(*minify_before_chunking.await?); } Ok(Vc::upcast(builder.build())) diff --git a/crates/next-core/src/next_server/context.rs b/crates/next-core/src/next_server/context.rs index 5311e7f9074a..6aff636d41b0 100644 --- a/crates/next-core/src/next_server/context.rs +++ b/crates/next-core/src/next_server/context.rs @@ -1025,6 +1025,7 @@ pub struct ServerChunkingContextOptions { pub source_maps: Vc, pub no_mangling: Vc, pub scope_hoisting: Vc, + pub minify_before_chunking: Vc, pub nested_async_chunking: Vc, pub debug_ids: Vc, pub client_root: FileSystemPath, @@ -1055,6 +1056,7 @@ pub async fn get_server_chunking_context_with_client_assets( source_maps, no_mangling, scope_hoisting, + minify_before_chunking, nested_async_chunking, debug_ids, client_root, @@ -1143,7 +1145,8 @@ pub async fn get_server_chunking_context_with_client_assets( ..Default::default() }, ) - .module_merging(*scope_hoisting.await?); + .module_merging(*scope_hoisting.await?) + .minify_before_chunking(*minify_before_chunking.await?); } Ok(builder.build()) @@ -1167,6 +1170,7 @@ pub async fn get_server_chunking_context( source_maps, no_mangling, scope_hoisting, + minify_before_chunking, nested_async_chunking, debug_ids, client_root, @@ -1256,7 +1260,8 @@ pub async fn get_server_chunking_context( ..Default::default() }, ) - .module_merging(*scope_hoisting.await?); + .module_merging(*scope_hoisting.await?) + .minify_before_chunking(*minify_before_chunking.await?); } Ok(builder.build()) diff --git a/packages/next/src/server/config-schema.ts b/packages/next/src/server/config-schema.ts index 3e61370f2e62..8964f4447ef7 100644 --- a/packages/next/src/server/config-schema.ts +++ b/packages/next/src/server/config-schema.ts @@ -430,6 +430,7 @@ export const experimentalSchema = { turbopackRemoveUnusedImports: z.boolean().optional(), turbopackRemoveUnusedExports: z.boolean().optional(), turbopackScopeHoisting: z.boolean().optional(), + turbopackMinifyBeforeChunking: z.boolean().optional(), turbopackSharedRuntime: z.boolean().optional(), turbopackChunking: z .object({ diff --git a/packages/next/src/server/config-shared.ts b/packages/next/src/server/config-shared.ts index 4078c10a959b..d0557c3152ea 100644 --- a/packages/next/src/server/config-shared.ts +++ b/packages/next/src/server/config-shared.ts @@ -885,6 +885,20 @@ export interface ExperimentalConfig { */ turbopackScopeHoisting?: boolean + /** + * Minify each module factory as it is generated, instead of minifying each finished chunk in + * one pass. Defaults to false. Always disabled in development mode, where nothing is minified. + * + * A chunk is a single top-level statement holding every module factory, so minifying the + * finished chunk cannot be split across cores and becomes a serial tail at the end of a build. + * Minifying per factory spreads that work across the task pool, and lets each factory's + * minified output be cached so an incremental build only re-minifies what changed. + * + * The trade-off is marginally larger output: optimizations that require seeing every factory + * at once are not performed, and each factory's mangled names are chosen independently. + */ + turbopackMinifyBeforeChunking?: boolean + /** * Share the browser runtime across routes in a single `runtime.js` asset and inline the * per-route chunk-group bootstrap into the HTML, dropping the per-route runtime. Defaults to diff --git a/turbopack/crates/turbopack-browser/src/chunking_context.rs b/turbopack/crates/turbopack-browser/src/chunking_context.rs index bb157fc5a92a..be3fc7b4240d 100644 --- a/turbopack/crates/turbopack-browser/src/chunking_context.rs +++ b/turbopack/crates/turbopack-browser/src/chunking_context.rs @@ -57,8 +57,9 @@ pub enum CurrentChunkMethod { DocumentCurrentScript, } +/// Written in minified form, like the rest of the chunk scaffolding. pub const CURRENT_CHUNK_METHOD_DOCUMENT_CURRENT_SCRIPT_EXPR: &str = - "typeof document === \"object\" ? document.currentScript : undefined"; + "\"object\"==typeof document?document.currentScript:void 0"; pub struct BrowserChunkingContextBuilder { chunking_context: BrowserChunkingContext, @@ -142,6 +143,12 @@ impl BrowserChunkingContextBuilder { self } + /// EXPERIMENTAL. See [`ChunkingContext::minify_before_chunking`]. + pub fn minify_before_chunking(mut self, minify_before_chunking: bool) -> Self { + self.chunking_context.minify_before_chunking = minify_before_chunking; + self + } + pub fn source_maps(mut self, source_maps: SourceMapsType) -> Self { self.chunking_context.source_maps_type = source_maps; self @@ -374,6 +381,9 @@ pub struct BrowserChunkingContext { runtime_type: RuntimeType, /// Whether to minify resulting chunks minify_type: MinifyType, + /// EXPERIMENTAL: minify each chunk item before the chunk is assembled, rather than minifying + /// the finished chunk. See [`ChunkingContext::minify_before_chunking`]. + minify_before_chunking: bool, /// Whether content hashing is enabled for chunk filenames. chunk_content_hashing: Option, /// Content hashing for asset filenames. @@ -451,6 +461,7 @@ impl BrowserChunkingContext { environment, runtime_type, minify_type: MinifyType::NoMinify, + minify_before_chunking: false, chunk_content_hashing: None, asset_content_hashing: ContentHashing::Direct { length: 13 }, source_maps_type: SourceMapsType::Full, @@ -869,6 +880,11 @@ impl ChunkingContext for BrowserChunkingContext { self.minify_type.cell() } + #[turbo_tasks::function] + fn minify_before_chunking(&self) -> Vc { + Vc::cell(self.minify_before_chunking) + } + #[turbo_tasks::function] fn should_use_absolute_url_references(&self) -> Vc { Vc::cell(self.should_use_absolute_url_references) diff --git a/turbopack/crates/turbopack-browser/src/ecmascript/content.rs b/turbopack/crates/turbopack-browser/src/ecmascript/content.rs index ebf3d97d1587..4260ae9087ce 100644 --- a/turbopack/crates/turbopack-browser/src/ecmascript/content.rs +++ b/turbopack/crates/turbopack-browser/src/ecmascript/content.rs @@ -7,7 +7,7 @@ use turbo_tasks::{ResolvedVc, Vc, turbobail}; use turbo_tasks_fs::{File, FileContent}; use turbopack_core::{ asset::AssetContent, - chunk::{ChunkingContext, MinifyType, ModuleId}, + chunk::{ChunkingContext, ModuleId}, code_builder::{Code, CodeBuilder}, output::OutputAsset, source_map::{GenerateSourceMap, SourceMapAsset}, @@ -15,15 +15,14 @@ use turbopack_core::{ }; use turbopack_ecmascript::{ chunk::{ - EcmascriptChunkContent, EcmascriptChunkContentEntries, strict_chunk_wrapper, - strict_factory_mode, write_module_factories, + ChunkMinification, EcmascriptChunkContent, EcmascriptChunkContentEntries, + strict_chunk_prefix, strict_factory_mode, write_module_factories, }, hmr::{ EcmascriptHmrChunkContent, merger::EcmascriptChunkContentMerger, version::EcmascriptChunkVersion, }, - minify::minify, - utils::StringifyJs, + utils::{PropertyAccessJs, StringifyJs}, }; use super::chunk::EcmascriptBrowserChunk; @@ -95,12 +94,16 @@ impl EcmascriptBrowserChunkContent { .supports_arrow_functions() .await?; let content = this.content.await?; - let chunk_items = content.chunk_item_code_module_ids_and_paths().await?; - let strict_factory_mode = strict_factory_mode(&chunk_items, supports_arrow_functions); - - let strict_chunk_wrapper = - strict_chunk_wrapper(strict_factory_mode, supports_arrow_functions); - if let Some((prefix, _)) = strict_chunk_wrapper { + let minification = + ChunkMinification::for_chunking_context(Vc::upcast(*this.chunking_context)).await?; + let chunk_items = content + .chunk_item_code_module_ids_and_paths(minification, source_maps) + .await?; + let strict_factory_mode = strict_factory_mode( + &chunk_items, + minification.factories_have_strict_directives(), + ); + if let Some(prefix) = strict_chunk_prefix(strict_factory_mode) { code += prefix; } @@ -111,33 +114,29 @@ impl EcmascriptBrowserChunkContent { // When the runtime executes (see the `evaluate` module), it will pick up and // register all pending chunks, and replace the list of pending chunks // with itself so later chunks can register directly with it. + // + // The scaffolding is written in minified form, so it needs no minification pass of its + // own when the factories are minified individually. let chunk_loading_global = this.chunking_context.chunk_loading_global().await?; + let global = PropertyAccessJs("globalThis", &chunk_loading_global); write!( code, // `||=` would be better but we need to be es2020 compatible //`x || (x = default)` is better than `x = x || default` simply because we avoid _writing_ the property in the common case. - r#"(globalThis[{chunk_loading_global}] || (globalThis[{chunk_loading_global}] = [])).push([{script_or_path},"#, - chunk_loading_global = StringifyJs(&chunk_loading_global), + "({global}||({global}=[])).push([{script_or_path}", )?; + if !chunk_items.is_empty() { + code += ","; + } write_module_factories( &mut code, &chunk_items, strict_factory_mode, supports_arrow_functions, )?; - write!(code, "\n]);")?; - - if let Some((_, suffix)) = strict_chunk_wrapper { - code += suffix; - } - - let mut code = code.build(); - - if let MinifyType::Minify { mangle } = *this.chunking_context.minify_type().await? { - code = minify(code, source_maps, mangle)?; - } + code += "]);"; - Ok(code.cell()) + Ok(minification.finish_chunk(code.build(), source_maps)?.cell()) } #[turbo_tasks::function] diff --git a/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs b/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs index de0b809f73f0..d5ba96345a6e 100644 --- a/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs +++ b/turbopack/crates/turbopack-core/src/chunk/chunking_context.rs @@ -451,6 +451,21 @@ pub trait ChunkingContext { MinifyType::NoMinify.cell() } + /// EXPERIMENTAL: minify each chunk item on its own, before the chunk is assembled, instead of + /// minifying the finished chunk in one pass. + /// + /// A chunk is a single top-level statement holding every module factory, so the whole-chunk + /// pass cannot be parallelised and becomes a serial tail at the end of the build. Minifying + /// per item spreads that work across the task pool and lets each item's minified output be + /// cached, so an incremental build only re-minifies what changed. + /// + /// The trade-off is slightly larger output: no optimisation that requires seeing every factory + /// at once is performed, and each factory's mangled names are chosen independently. + #[turbo_tasks::function] + fn minify_before_chunking(self: Vc) -> Vc { + Vc::cell(false) + } + #[turbo_tasks::function] fn should_use_absolute_url_references(self: Vc) -> Vc { Vc::cell(false) diff --git a/turbopack/crates/turbopack-ecmascript/src/chunk/code_module_ids_and_paths.rs b/turbopack/crates/turbopack-ecmascript/src/chunk/code_module_ids_and_paths.rs index 2d5d4335ca27..ff8b3815d5d3 100644 --- a/turbopack/crates/turbopack-ecmascript/src/chunk/code_module_ids_and_paths.rs +++ b/turbopack/crates/turbopack-ecmascript/src/chunk/code_module_ids_and_paths.rs @@ -6,25 +6,47 @@ use turbo_tasks::{ NonLocalValue, ReadRef, TryJoinIterExt, ValueToString, Vc, debug::ValueDebugFormat, }; use turbopack_core::{ - chunk::{ChunkItem, ChunkItemExt, ModuleId}, + chunk::{ChunkItem, ChunkItemExt, MangleType, MinifyType, ModuleId}, code_builder::Code, }; -use crate::chunk::{ - EcmascriptChunkItemBatchGroup, EcmascriptChunkItemExt, EcmascriptChunkItemOrBatchWithAsyncInfo, - EcmascriptChunkItemWithAsyncInfo, +use crate::{ + chunk::{ + EcmascriptChunkItemBatchGroup, EcmascriptChunkItemExt, + EcmascriptChunkItemOrBatchWithAsyncInfo, EcmascriptChunkItemWithAsyncInfo, + }, + minify::minify_chunk_item, }; async fn code_module_id_and_path( item: &EcmascriptChunkItemWithAsyncInfo, + minify: MinifyType, + source_maps: bool, ) -> Result { let factory = item .chunk_item .code(item.async_info.map(|info| *info)) .await?; + let code = factory.code.to_code().await?; + // `MinifyType::NoMinify` here means the chunk will be minified as a whole later (or not at + // all); only the per-item mode asks for the factory to be minified now. A minified strict + // factory drops its own `"use strict"` directive: the chunk places every strict factory in a + // strict context instead (see `strict_factory_mode`). + let code = match minify { + MinifyType::Minify { mangle } => ReadRef::new_owned(minify_chunk_item( + &code, + source_maps, + // `OptimalSize` orders mangled names by the character frequency of the code being + // minified. Per item, that order differs from factory to factory, which hurts gzip + // across the chunk. A fixed order keeps names consistent between factories. + mangle.map(|_| MangleType::Deterministic), + factory.strict, + )?), + MinifyType::NoMinify => code, + }; Ok(CodeModuleIdAndPath { id: item.chunk_item.id().await?, - code: factory.code.to_code().await?, + code, path: item.chunk_item.asset_ident().to_string().owned().await?, strict: factory.strict, }) @@ -49,6 +71,8 @@ pub struct BatchGroupCodeModuleIdsAndPaths( #[turbo_tasks::function] pub async fn batch_group_code_module_ids_and_paths( batch_group: Vc, + minify: MinifyType, + source_maps: bool, ) -> Result> { Ok(Vc::cell( batch_group @@ -58,7 +82,7 @@ pub async fn batch_group_code_module_ids_and_paths( .map(async |item| { Ok(( item.clone(), - item_code_module_ids_and_paths(item.clone()).await?, + item_code_module_ids_and_paths(item.clone(), minify, source_maps).await?, )) }) .try_join() @@ -71,16 +95,18 @@ pub async fn batch_group_code_module_ids_and_paths( #[turbo_tasks::function] pub async fn item_code_module_ids_and_paths( item: EcmascriptChunkItemOrBatchWithAsyncInfo, + minify: MinifyType, + source_maps: bool, ) -> Result> { Ok(Vc::cell(match item { EcmascriptChunkItemOrBatchWithAsyncInfo::ChunkItem(item) => { - smallvec![code_module_id_and_path(&item).await?] + smallvec![code_module_id_and_path(&item, minify, source_maps).await?] } EcmascriptChunkItemOrBatchWithAsyncInfo::Batch(batch) => batch .await? .chunk_items .iter() - .map(code_module_id_and_path) + .map(async |item| code_module_id_and_path(item, minify, source_maps).await) .try_join() .await? .into(), diff --git a/turbopack/crates/turbopack-ecmascript/src/chunk/content.rs b/turbopack/crates/turbopack-ecmascript/src/chunk/content.rs index ba816613f606..d64253149264 100644 --- a/turbopack/crates/turbopack-ecmascript/src/chunk/content.rs +++ b/turbopack/crates/turbopack-ecmascript/src/chunk/content.rs @@ -3,14 +3,76 @@ use std::future::IntoFuture; use anyhow::Result; use either::Either; use turbo_tasks::{ResolvedVc, TryJoinIterExt, Vc}; -use turbopack_core::chunk::{ChunkItem, ChunkItems, batch_info}; +use turbopack_core::{ + chunk::{ChunkItem, ChunkItems, ChunkingContext, MangleType, MinifyType, batch_info}, + code_builder::Code, +}; -use crate::chunk::{ - CodeModuleIdAndPath, - batch::{EcmascriptChunkItemBatchGroup, EcmascriptChunkItemOrBatchWithAsyncInfo}, - batch_group_code_module_ids_and_paths, item_code_module_ids_and_paths, +use crate::{ + chunk::{ + CodeModuleIdAndPath, + batch::{EcmascriptChunkItemBatchGroup, EcmascriptChunkItemOrBatchWithAsyncInfo}, + batch_group_code_module_ids_and_paths, item_code_module_ids_and_paths, + }, + minify::minify, }; +/// How the code of an ecmascript chunk is minified: never, once per chunk item before the chunk +/// is assembled, or once for the whole assembled chunk. Never both. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum ChunkMinification { + None, + /// Each chunk item is minified on its own (in parallel, cached per item). See + /// [`ChunkingContext::minify_before_chunking`]. + PerItem { + mangle: Option, + }, + /// The assembled chunk is minified in one pass. + WholeChunk { + mangle: Option, + }, +} + +impl ChunkMinification { + pub async fn for_chunking_context( + chunking_context: Vc>, + ) -> Result { + Ok(match *chunking_context.minify_type().await? { + MinifyType::NoMinify => ChunkMinification::None, + MinifyType::Minify { mangle } => { + if *chunking_context.minify_before_chunking().await? { + ChunkMinification::PerItem { mangle } + } else { + ChunkMinification::WholeChunk { mangle } + } + } + }) + } + + /// The minification to apply to each chunk item before it is written into the chunk. + fn per_item(self) -> MinifyType { + match self { + ChunkMinification::PerItem { mangle } => MinifyType::Minify { mangle }, + ChunkMinification::None | ChunkMinification::WholeChunk { .. } => MinifyType::NoMinify, + } + } + + /// Applies the whole-chunk minification, if any, to the assembled chunk. + pub fn finish_chunk(self, code: Code, source_maps: bool) -> Result { + match self { + ChunkMinification::WholeChunk { mangle } => minify(code, source_maps, mangle), + ChunkMinification::None | ChunkMinification::PerItem { .. } => Ok(code), + } + } + + /// Whether strict factories still carry their own `"use strict"` directive. Per-item + /// minification removes it, which makes placing every strict factory in a strict context the + /// chunk's responsibility. See [`crate::chunk::strict_factory_mode`]. + pub fn factories_have_strict_directives(self) -> bool { + !matches!(self, ChunkMinification::PerItem { .. }) + } +} + #[turbo_tasks::value(shared)] pub struct EcmascriptChunkContent { pub chunk_items: Vec, @@ -49,21 +111,32 @@ impl EcmascriptChunkContent { } impl EcmascriptChunkContent { - pub async fn chunk_item_code_module_ids_and_paths(&self) -> Result> { + /// Returns the code of every chunk item, minified if `minification` is + /// [`ChunkMinification::PerItem`]. + pub async fn chunk_item_code_module_ids_and_paths( + &self, + minification: ChunkMinification, + source_maps: bool, + ) -> Result> { + let minify = minification.per_item(); + // Source maps only affect the per-item minification. Normalize the flag otherwise so it + // doesn't fork the per-item tasks for chunks that are minified as a whole (or not at all). + let source_maps = source_maps && matches!(minify, MinifyType::Minify { .. }); let chunk_item_groups = batch_info( &self.batch_groups, &self.chunk_items, - |batch| batch_group_code_module_ids_and_paths(batch).into_future(), - |item| item_code_module_ids_and_paths(item.clone()).into_future(), + |batch| batch_group_code_module_ids_and_paths(batch, minify, source_maps).into_future(), + |item| item_code_module_ids_and_paths(item.clone(), minify, source_maps).into_future(), ) .await?; let mut chunk_items = chunk_item_groups .iter() .flat_map(|items| items.iter().cloned()) .collect::>(); - // Sort all items by their module path so that similar modules stay - // together and the chunks gzip better. - chunk_items.sort_by(|a, b| (&a.path, &a.id).cmp(&(&b.path, &b.id))); + // Strict items come first so they form one contiguous group (see `write_module_factories`). + // Within each group, sort by module path so that similar modules stay together and the + // chunks gzip better. + chunk_items.sort_by(|a, b| (!a.strict, &a.path, &a.id).cmp(&(!b.strict, &b.path, &b.id))); Ok(chunk_items) } } diff --git a/turbopack/crates/turbopack-ecmascript/src/chunk/factory_group.rs b/turbopack/crates/turbopack-ecmascript/src/chunk/factory_group.rs index 612b1680cae4..efea3d76b23e 100644 --- a/turbopack/crates/turbopack-ecmascript/src/chunk/factory_group.rs +++ b/turbopack/crates/turbopack-ecmascript/src/chunk/factory_group.rs @@ -5,42 +5,52 @@ use turbopack_core::code_builder::CodeBuilder; use crate::{chunk::CodeModuleIdAndPath, utils::StringifyJs}; -const MIXED_ARROW_PREFIX: &str = "\n(()=>{\"use strict\";return["; -const MIXED_FUNCTION_PREFIX: &str = "\n(function(){\"use strict\";return["; -const MIXED_SUFFIX: &str = "\n]})(),"; -const ALL_STRICT_ARROW_PREFIX: &str = "(()=>{\"use strict\";"; -const ALL_STRICT_FUNCTION_PREFIX: &str = "(function(){\"use strict\";"; -const ALL_STRICT_SUFFIX: &str = "})()"; - -/// Minimum number of strict factories that makes hoisting the directive worth its wrapper. -/// Derived from the minified wrapper sizes and pinned by `strict_thresholds_match_wrapper_sizes`. -/// The mixed wrappers differ in length but land on the same minimum; the all-strict ones do not, -/// which is why arrow support still selects between two constants here. +// The chunk scaffolding is written in minified form in every mode, so a chunk whose factories +// are minified individually needs no further minification pass. +const MIXED_ARROW_PREFIX: &str = "(()=>{\"use strict\";return["; +const MIXED_FUNCTION_PREFIX: &str = "(function(){\"use strict\";return["; +const MIXED_SUFFIX: &str = "]})()"; +/// File-level directive making a whole chunk strict. Browser chunks are standalone classic +/// scripts and Node.js chunks run inside the CommonJS function wrapper, so a directive at the +/// very start of the chunk applies to every factory in it. +/// +/// A consumer that concatenates chunks must do so into a strict context, since the directive +/// is only a directive at the very start of a script or function (e.g. concatenating browser +/// chunks into an ES module is fine, as modules are always strict). +const ALL_STRICT_PREFIX: &str = "\"use strict\";"; + +/// Minimum number of strict factories that makes hoisting the directive worth its wrapper, when +/// every strict factory carries its own `"use strict"` directive. Derived from the wrapper sizes +/// and pinned by `strict_thresholds_match_wrapper_sizes`. The mixed wrappers differ in length but +/// land on the same minimum. const MIXED_STRICT_THRESHOLD: usize = 3; -const ALL_STRICT_ARROW_THRESHOLD: usize = 2; -const ALL_STRICT_FUNCTION_THRESHOLD: usize = 3; +const ALL_STRICT_THRESHOLD: usize = 2; -#[derive(Clone, Copy, PartialEq, Eq)] +#[derive(Clone, Copy, PartialEq, Eq, Debug)] pub enum StrictFactoryMode { + /// Every factory is written as is, each strict one carrying its own directive. Flat, + /// The strict factories are grouped into a strict IIFE returning them, followed by the + /// non-strict factories. Mixed, + /// Every factory is strict, and the chunk starts with a file-level `"use strict"` directive. AllStrict, } -/// Selects the smallest expected minified representation for this chunk's mix of module factories. +/// Selects the smallest representation for this chunk's mix of module factories. +/// +/// `factories_have_directives` is false when strict factories had their own `"use strict"` +/// directive removed (per-item minification). They must then always be placed in a strict +/// context, so strict factories are grouped regardless of the thresholds. +/// +/// The chunk items must be sorted with all strict items first, see +/// [`EcmascriptChunkContent::chunk_item_code_module_ids_and_paths`](crate::chunk::EcmascriptChunkContent::chunk_item_code_module_ids_and_paths). pub fn strict_factory_mode( chunk_items: &[CodeModuleIdAndPath], - supports_arrow_functions: bool, + factories_have_directives: bool, ) -> StrictFactoryMode { - let mut strict = 0; - let mut non_strict = 0; - for item in chunk_items { - if item.strict { - strict += 1; - } else { - non_strict += 1; - } - } + let strict = chunk_items.iter().filter(|item| item.strict).count(); + let non_strict = chunk_items.len() - strict; if strict == 0 { return StrictFactoryMode::Flat; } @@ -50,11 +60,11 @@ pub fn strict_factory_mode( } else { StrictFactoryMode::Mixed }; - let threshold = match (mode, supports_arrow_functions) { - (StrictFactoryMode::Mixed, _) => MIXED_STRICT_THRESHOLD, - (StrictFactoryMode::AllStrict, true) => ALL_STRICT_ARROW_THRESHOLD, - (StrictFactoryMode::AllStrict, false) => ALL_STRICT_FUNCTION_THRESHOLD, - (StrictFactoryMode::Flat, _) => unreachable!(), + let threshold = match mode { + _ if !factories_have_directives => 1, + StrictFactoryMode::Mixed => MIXED_STRICT_THRESHOLD, + StrictFactoryMode::AllStrict => ALL_STRICT_THRESHOLD, + StrictFactoryMode::Flat => unreachable!(), }; if strict >= threshold { mode @@ -63,17 +73,9 @@ pub fn strict_factory_mode( } } -/// Code written around the whole chunk in the all-strict case. -pub fn strict_chunk_wrapper( - mode: StrictFactoryMode, - supports_arrow_functions: bool, -) -> Option<(&'static str, &'static str)> { - (mode == StrictFactoryMode::AllStrict).then(|| { - ( - all_strict_prefix(supports_arrow_functions), - ALL_STRICT_SUFFIX, - ) - }) +/// Code written at the very start of the chunk, before anything else. +pub fn strict_chunk_prefix(mode: StrictFactoryMode) -> Option<&'static str> { + (mode == StrictFactoryMode::AllStrict).then_some(ALL_STRICT_PREFIX) } const fn mixed_prefix(supports_arrow_functions: bool) -> &'static str { @@ -84,68 +86,58 @@ const fn mixed_prefix(supports_arrow_functions: bool) -> &'static str { } } -const fn all_strict_prefix(supports_arrow_functions: bool) -> &'static str { - if supports_arrow_functions { - ALL_STRICT_ARROW_PREFIX - } else { - ALL_STRICT_FUNCTION_PREFIX - } -} - -/// Writes flat factories, with a strict IIFE prepended to the non-strict factories in mixed chunks. +/// Writes the module factories as comma separated array elements (`id,factory,id,factory`), +/// without a leading or trailing comma. In mixed mode the strict factories come first, wrapped in +/// a strict IIFE returning them. +/// +/// The chunk items must be sorted with all strict items first. pub fn write_module_factories( code: &mut CodeBuilder, chunk_items: &[CodeModuleIdAndPath], mode: StrictFactoryMode, supports_arrow_functions: bool, ) -> Result<()> { - if mode == StrictFactoryMode::Mixed { - *code += mixed_prefix(supports_arrow_functions); - write_factories(code, chunk_items, |strict| strict)?; - *code += MIXED_SUFFIX; - write_factories(code, chunk_items, |strict| !strict)?; - } else { - write_factories(code, chunk_items, |_| true)?; - } - Ok(()) -} - -fn write_factories( - code: &mut CodeBuilder, - chunk_items: &[CodeModuleIdAndPath], - include: impl Fn(bool) -> bool, -) -> Result<()> { - for item in chunk_items { - if include(item.strict) { - write!(code, "\n{}, ", StringifyJs(&item.id))?; - code.push_code(&item.code); - write!(code, ",")?; + debug_assert!( + chunk_items.is_sorted_by_key(|item| !item.strict), + "strict chunk items must come first" + ); + let mut in_strict_group = false; + for (i, item) in chunk_items.iter().enumerate() { + if mode == StrictFactoryMode::Mixed && item.strict != in_strict_group { + if in_strict_group { + *code += MIXED_SUFFIX; + *code += ","; + } else { + *code += mixed_prefix(supports_arrow_functions); + } + in_strict_group = item.strict; + } else if i > 0 { + *code += ","; } + write!(code, "{},", StringifyJs(&item.id))?; + code.push_code(&item.code); + } + if in_strict_group { + *code += MIXED_SUFFIX; } Ok(()) } #[cfg(test)] mod tests { + use turbo_tasks::ReadRef; + use turbopack_core::chunk::ModuleId; + use super::*; - /// Minified length of the `"use strict";` directive that - /// `EcmascriptChunkItemContent::module_factory` writes into every strict factory, and that - /// the minimizer removes again inside a strict wrapper. The trailing newlines the factory - /// writes do not survive minification, so they are not counted. Kept here because only these - /// assertions need it. + /// Length of the `"use strict";` directive that `EcmascriptChunkItemContent::module_factory` + /// writes into every strict factory, and that the minimizer removes again inside a strict + /// wrapper. Kept here because only these assertions need it. const STRICT_MODE_DIRECTIVE_LEN: usize = "\"use strict\";".len(); - fn minified_len(wrapper: &str) -> usize { - // Formatting whitespace is only added at line boundaries. Trim each line rather than all - // whitespace so the space inside the `"use strict"` string literal is preserved. - wrapper.lines().map(str::trim).map(str::len).sum() - } - /// `threshold` must be the smallest factory count worth grouping: one below it the directives /// do not outweigh the wrapper, at the threshold they do. - fn assert_threshold(threshold: usize, wrapper: &str) { - let wrapper_len = minified_len(wrapper); + fn assert_threshold(threshold: usize, wrapper_len: usize) { assert!((threshold - 1) * STRICT_MODE_DIRECTIVE_LEN <= wrapper_len); assert!(threshold * STRICT_MODE_DIRECTIVE_LEN > wrapper_len); } @@ -154,19 +146,61 @@ mod tests { fn strict_thresholds_match_wrapper_sizes() { assert_threshold( MIXED_STRICT_THRESHOLD, - &format!("{MIXED_ARROW_PREFIX}{MIXED_SUFFIX}"), + MIXED_ARROW_PREFIX.len() + MIXED_SUFFIX.len(), ); assert_threshold( MIXED_STRICT_THRESHOLD, - &format!("{MIXED_FUNCTION_PREFIX}{MIXED_SUFFIX}"), + MIXED_FUNCTION_PREFIX.len() + MIXED_SUFFIX.len(), ); - assert_threshold( - ALL_STRICT_ARROW_THRESHOLD, - &format!("{ALL_STRICT_ARROW_PREFIX}{ALL_STRICT_SUFFIX}"), + assert_threshold(ALL_STRICT_THRESHOLD, ALL_STRICT_PREFIX.len()); + } + + fn item(id: u64, strict: bool) -> CodeModuleIdAndPath { + let mut code = CodeBuilder::new(false, false); + code += if strict { "s" } else { "n" }; + CodeModuleIdAndPath { + id: ModuleId::Number(id), + code: ReadRef::new_owned(code.build()), + path: Default::default(), + strict, + } + } + + fn write(items: &[CodeModuleIdAndPath], factories_have_directives: bool) -> String { + let mode = strict_factory_mode(items, factories_have_directives); + let mut code = CodeBuilder::new(false, false); + if let Some(prefix) = strict_chunk_prefix(mode) { + code += prefix; + } + code += "["; + write_module_factories(&mut code, items, mode, true).unwrap(); + code += "]"; + code.build().source_code().to_str().unwrap().into_owned() + } + + #[test] + fn layouts() { + assert_eq!(write(&[], true), "[]"); + assert_eq!(write(&[item(1, false), item(2, false)], true), "[1,n,2,n]"); + // Below the threshold, strict factories keep their own directives. + assert_eq!(write(&[item(1, true), item(2, false)], true), "[1,s,2,n]"); + assert_eq!(write(&[item(1, true)], true), "[1,s]"); + // Without directives, strict factories are always grouped. + assert_eq!( + write(&[item(1, true), item(2, false)], false), + "[(()=>{\"use strict\";return[1,s]})(),2,n]" ); - assert_threshold( - ALL_STRICT_FUNCTION_THRESHOLD, - &format!("{ALL_STRICT_FUNCTION_PREFIX}{ALL_STRICT_SUFFIX}"), + assert_eq!(write(&[item(1, true)], false), "\"use strict\";[1,s]"); + assert_eq!( + write( + &[item(1, true), item(2, true), item(3, true), item(4, false)], + true + ), + "[(()=>{\"use strict\";return[1,s,2,s,3,s]})(),4,n]" + ); + assert_eq!( + write(&[item(1, true), item(2, true)], true), + "\"use strict\";[1,s,2,s]" ); } } diff --git a/turbopack/crates/turbopack-ecmascript/src/chunk/mod.rs b/turbopack/crates/turbopack-ecmascript/src/chunk/mod.rs index 7be9a73a2c29..cbc1aa40ddfe 100644 --- a/turbopack/crates/turbopack-ecmascript/src/chunk/mod.rs +++ b/turbopack/crates/turbopack-ecmascript/src/chunk/mod.rs @@ -35,11 +35,11 @@ pub use self::{ BatchGroupCodeModuleIdsAndPaths, CodeModuleIdAndPath, CodeModuleIdsAndPaths, batch_group_code_module_ids_and_paths, item_code_module_ids_and_paths, }, - content::EcmascriptChunkContent, + content::{ChunkMinification, EcmascriptChunkContent}, content_entry::{EcmascriptChunkContentEntries, EcmascriptChunkContentEntry}, data::EcmascriptChunkData, factory_group::{ - StrictFactoryMode, strict_chunk_wrapper, strict_factory_mode, write_module_factories, + StrictFactoryMode, strict_chunk_prefix, strict_factory_mode, write_module_factories, }, item::{ EcmascriptChunkItem, EcmascriptChunkItemCode, EcmascriptChunkItemContent, diff --git a/turbopack/crates/turbopack-ecmascript/src/minify.rs b/turbopack/crates/turbopack-ecmascript/src/minify.rs index c4e71986c61e..6008f18263b1 100644 --- a/turbopack/crates/turbopack-ecmascript/src/minify.rs +++ b/turbopack/crates/turbopack-ecmascript/src/minify.rs @@ -6,14 +6,18 @@ use swc_core::{ atoms::atom, base::try_with_handler, common::{ - BytePos, FileName, FilePathMapping, GLOBALS, LineCol, Mark, SourceMap as SwcSourceMap, + BytePos, DUMMY_SP, FileName, FilePathMapping, GLOBALS, LineCol, Mark, + SourceMap as SwcSourceMap, comments::{Comments, SingleThreadedComments}, }, ecma::{ self, - ast::{EsVersion, Program}, + ast::{ + ArrowFunctionBody, AssignExpr, AssignOp, AssignTarget, EsVersion, Expr, ExprStmt, + Ident, Lit, Program, Script, SeqExpr, SimpleAssignTarget, Stmt, + }, codegen::{ - Emitter, + Emitter, Node, text_writer::{self, JsWriter, WriteJs}, }, minifier::option::{CompressOptions, ExtraOptions, MangleOptions, MinifyOptions}, @@ -26,6 +30,7 @@ use swc_core::{ }, }; use tracing::instrument; +use turbo_tasks_fs::rope::Rope; use turbopack_core::{ chunk::MangleType, code_builder::{Code, CodeBuilder}, @@ -33,120 +38,182 @@ use turbopack_core::{ use crate::parse::{IdentCollector, generate_js_source_map}; +/// Minify a whole program, typically a finished chunk. #[instrument(level = "info", name = "minify ecmascript code", skip_all)] pub fn minify(code: Code, source_maps: bool, mangle: Option) -> Result { // Pass None for the debug ID so we don't needlessly compute it for the pre-minified content, it // will be added by the Code object returned from this function - let source_maps = source_maps.then(|| code.generate_source_map_ref(None)); - + let original_map = source_maps.then(|| code.generate_source_map_ref(None)); let generate_debug_id = code.should_generate_debug_id(); let source_code = BytesStr::from_utf8(code.into_source_code().into_bytes())?; + minify_source( + source_code, + original_map, + generate_debug_id, + mangle, + MinifyTarget::Program, + ) +} + +/// Minify a single chunk item — one module factory expression — rather than the assembled chunk. +/// +/// A chunk is a single top-level statement (one call holding every module factory), so minifying +/// the finished chunk cannot be split across cores: SWC parallelises statement lists, and there is +/// only ever one statement. Minifying each factory separately makes the work embarrassingly +/// parallel, and lets turbo-tasks cache it per item so an incremental build only re-minifies the +/// factories that changed. +/// +/// This is sound because each factory is its own function scope, so the compressor has no +/// cross-factory optimisations available to it in the first place. Whole-chunk passes that +/// depend on seeing every factory at once are not performed. +/// +/// With `strip_strict_directive`, the factory's own `"use strict"` directive is kept while +/// minifying (so strict-mode semantics are applied) but removed from the output. The chunk is +/// then responsible for placing the factory in a strict context, see +/// [`crate::chunk::strict_factory_mode`]. +#[instrument(level = "info", name = "minify chunk item", skip_all)] +pub fn minify_chunk_item( + code: &Code, + source_maps: bool, + mangle: Option, + strip_strict_directive: bool, +) -> Result { + let original_map = source_maps.then(|| code.generate_source_map_ref(None)); + let generate_debug_id = code.should_generate_debug_id(); + let source_code = BytesStr::from_utf8(code.source_code().clone().into_bytes())?; + minify_source( + source_code, + original_map, + generate_debug_id, + mangle, + MinifyTarget::ChunkItem { + strip_strict_directive, + }, + ) +} + +/// What [`minify_source`] is minifying. Everything except parsing the input and extracting the +/// output is shared between the two. +#[derive(Clone, Copy)] +enum MinifyTarget { + /// A whole program whose top-level statements are side-effectful and are kept. + Program, + /// A single chunk item: a module factory expression, optionally preceded by the additional + /// module ids of a merged (scope hoisted) module, i.e. `id2, id3, `. + /// + /// On its own the factory is an unused expression the compressor would discard, so it is + /// wrapped in a synthetic `CHUNK_ITEM_SENTINEL = ` assignment, which is stripped + /// again before printing. The leading ids are split off before minification (as part of a + /// sequence expression the compressor would drop them as side-effect free) and re-emitted + /// unchanged in front of the minified factory. + /// + /// The wrapper is added at the AST level rather than by prepending text: prepending would + /// shift every column on the first line and invalidate the item's existing source map. The + /// synthetic nodes carry `DUMMY_SP` and contribute no mappings or source map names. + ChunkItem { strip_strict_directive: bool }, +} +/// Name the chunk item expression is assigned to while it is minified. It is never emitted. An +/// undeclared global is used because the mangler leaves unresolved names alone. +const CHUNK_ITEM_SENTINEL: &str = "__TURBOPACK_CHUNK_ITEM__"; + +fn minify_source( + source_code: BytesStr, + original_map: Option, + generate_debug_id: bool, + mangle: Option, + target: MinifyTarget, +) -> Result { let cm = Arc::new(SwcSourceMap::new(FilePathMapping::empty())); - let (src, mut src_map_buf, source_map_names) = { - let fm = cm.new_source_file(FileName::Anon.into(), source_code); + let fm = cm.new_source_file(FileName::Anon.into(), source_code); - // Collect all comments and pass to the minifier so that `PURE` comments are respected. - let comments = SingleThreadedComments::default(); + // Collect all comments and pass to the minifier so that `PURE` comments are respected. + let comments = SingleThreadedComments::default(); - let lexer = Lexer::new( - Syntax::default(), - EsVersion::latest(), - StringInput::from(&*fm), - Some(&comments), - ); - let mut parser = Parser::new_from(lexer); - - let (program, source_map_names) = - try_with_handler(cm.clone(), Default::default(), |handler| { - GLOBALS.set(&Default::default(), || { - let program = match parser.parse_program() { - Ok(program) => program, - Err(err) => { - err.into_diagnostic(handler).emit(); - bail!("failed to parse source code\n{}", fm.src) - } - }; - - // Collect identifier names for source maps before minification - let source_map_names = if source_maps.is_some() { - let mut collector = IdentCollector::default(); - program.visit_with(&mut collector); - collector.into_map() - } else { - Default::default() - }; - - let unresolved_mark = Mark::new(); - let top_level_mark = Mark::new(); - - let program = program.apply(paren_remover(Some(&comments))); - - let program = program.apply(swc_core::ecma::transforms::base::resolver( - unresolved_mark, - top_level_mark, - false, - )); - - let mut program = swc_core::ecma::minifier::optimize( - program, - cm.clone(), - Some(&comments), - None, - &MinifyOptions { - compress: Some(CompressOptions { - // Only run 2 passes, this is a tradeoff between performance and - // compression size. Default is 3 passes. - passes: 2, - keep_classnames: mangle.is_none(), - keep_fnames: mangle.is_none(), - ..Default::default() - }), - mangle: mangle.map(|mangle| { - let reserved = vec![atom!("AbortSignal")]; - match mangle { - MangleType::OptimalSize => MangleOptions { - reserved, - ..Default::default() - }, - MangleType::Deterministic => MangleOptions { - reserved, - disable_char_freq: true, - ..Default::default() - }, - } - }), - ..Default::default() - }, - &ExtraOptions { - top_level_mark, - unresolved_mark, - mangle_name_cache: None, - }, - ); - - if mangle.is_none() { - program.mutate(hygiene_with_config(hygiene::Config { - top_level_mark, - ..Default::default() - })); + let lexer = Lexer::new( + Syntax::default(), + EsVersion::latest(), + StringInput::from(&*fm), + Some(&comments), + ); + let mut parser = Parser::new_from(lexer); + + let (src, mut src_map_buf, source_map_names) = + try_with_handler(cm.clone(), Default::default(), |handler| { + GLOBALS.set(&Default::default(), || { + // Expressions emitted verbatim in front of a chunk item's factory (its additional + // module ids). Always empty for `MinifyTarget::Program`. + let mut item_prefix = Vec::new(); + let parsed = match target { + MinifyTarget::Program => parser.parse_program(), + MinifyTarget::ChunkItem { .. } => parser.parse_expr().map(|expr| { + let factory = match *expr { + Expr::Seq(mut seq) if seq.exprs.len() > 1 => { + let factory = seq.exprs.pop().unwrap(); + item_prefix = seq.exprs; + factory + } + expr => Box::new(expr), + }; + wrap_in_sentinel(factory) + }), + }; + let program = match parsed { + Ok(program) => program, + Err(err) => { + err.into_diagnostic(handler).emit(); + bail!("failed to parse source code\n{}", fm.src) } + }; - let program = program.apply(ecma::transforms::base::fixer::fixer(Some( - &comments as &dyn Comments, - ))); + // Collect identifier names for source maps before minification. Synthetic nodes + // (the sentinel) have dummy spans and are skipped by the collector. + let source_map_names = if original_map.is_some() { + let mut collector = IdentCollector::default(); + program.visit_with(&mut collector); + collector.into_map() + } else { + Default::default() + }; - Ok((program, source_map_names)) - }) - }) - .map_err(|e| e.to_pretty_error())?; + let mut program = optimize(program, &cm, &comments, mangle); - let (src, src_map_buf) = print_program(cm.clone(), program, source_maps.is_some())?; - (src, src_map_buf, source_map_names) - }; + let (src, src_map_buf) = match target { + MinifyTarget::Program => print(&cm, &program, original_map.is_some())?, + // Emit only the factory expression, so the result can be spliced back into + // the chunk. Emitting it as a statement would turn a `function (…) {}` + // factory into a declaration. + MinifyTarget::ChunkItem { + strip_strict_directive, + } => { + let factory = take_sentinel_rhs(&mut program).context( + "chunk item minification lost its sentinel assignment; the compressor \ + rewrote the wrapper unexpectedly", + )?; + if strip_strict_directive { + remove_use_strict_directive(factory); + } + let factory = &*factory; + if item_prefix.is_empty() { + print(&cm, factory, original_map.is_some())? + } else { + let mut exprs = item_prefix; + exprs.push(Box::new(factory.clone())); + let seq = Expr::Seq(SeqExpr { + span: DUMMY_SP, + exprs, + }); + print(&cm, &seq, original_map.is_some())? + } + } + }; + Ok((src, src_map_buf, source_map_names)) + }) + }) + .map_err(|e| e.to_pretty_error())?; - let mut builder = CodeBuilder::new(source_maps.is_some(), generate_debug_id); - if let Some(original_map) = source_maps.as_ref() { + let mut builder = CodeBuilder::new(original_map.is_some(), generate_debug_id); + if let Some(original_map) = original_map.as_ref() { src_map_buf.shrink_to_fit(); builder.push_source( &src.into(), @@ -163,15 +230,143 @@ pub fn minify(code: Code, source_maps: bool, mangle: Option) -> Resu )?), ); } else { - builder.push_source(&src.into(), None::); + builder.push_source(&src.into(), None::); } Ok(builder.build()) } -// From https://github.com/swc-project/swc/blob/11efd4e7c5e8081f8af141099d3459c3534c1e1d/crates/swc/src/lib.rs#L523-L560 -fn print_program( - cm: Arc, +/// Run the resolver, the SWC minifier and the post-minification fixups on a parsed program. +fn optimize( program: Program, + cm: &Arc, + comments: &SingleThreadedComments, + mangle: Option, +) -> Program { + let unresolved_mark = Mark::new(); + let top_level_mark = Mark::new(); + + let program = program.apply(paren_remover(Some(comments))); + + let program = program.apply(swc_core::ecma::transforms::base::resolver( + unresolved_mark, + top_level_mark, + false, + )); + + let mut program = swc_core::ecma::minifier::optimize( + program, + cm.clone(), + Some(comments), + None, + &MinifyOptions { + compress: Some(CompressOptions { + // Only run 2 passes, this is a tradeoff between performance and + // compression size. Default is 3 passes. + passes: 2, + keep_classnames: mangle.is_none(), + keep_fnames: mangle.is_none(), + ..Default::default() + }), + mangle: mangle.map(|mangle| { + let reserved = vec![atom!("AbortSignal")]; + match mangle { + MangleType::OptimalSize => MangleOptions { + reserved, + ..Default::default() + }, + MangleType::Deterministic => MangleOptions { + reserved, + disable_char_freq: true, + ..Default::default() + }, + } + }), + ..Default::default() + }, + &ExtraOptions { + top_level_mark, + unresolved_mark, + mangle_name_cache: None, + }, + ); + + if mangle.is_none() { + program.mutate(hygiene_with_config(hygiene::Config { + top_level_mark, + ..Default::default() + })); + } + + program.apply(ecma::transforms::base::fixer::fixer(Some( + comments as &dyn Comments, + ))) +} + +/// Wrap a chunk item expression as `CHUNK_ITEM_SENTINEL = ;`. See +/// [`MinifyTarget::ChunkItem`]. +fn wrap_in_sentinel(expr: Box) -> Program { + Program::Script(Script { + span: DUMMY_SP, + body: vec![Stmt::Expr(ExprStmt { + span: DUMMY_SP, + expr: Box::new(Expr::Assign(AssignExpr { + span: DUMMY_SP, + op: AssignOp::Assign, + left: AssignTarget::Simple(SimpleAssignTarget::Ident( + Ident::new_no_ctxt(CHUNK_ITEM_SENTINEL.into(), DUMMY_SP).into(), + )), + right: expr, + })), + })], + shebang: None, + }) +} + +/// Pull the right-hand side back out of the synthetic `SENTINEL = ` wrapper. +fn take_sentinel_rhs(program: &mut Program) -> Option<&mut Expr> { + let Program::Script(script) = program else { + return None; + }; + let [Stmt::Expr(stmt)] = script.body.as_mut_slice() else { + return None; + }; + let Expr::Assign(assign) = &mut *stmt.expr else { + return None; + }; + Some(&mut assign.right) +} + +/// Remove a leading `"use strict"` directive from a factory function's body. +fn remove_use_strict_directive(factory: &mut Expr) { + let body = match factory { + Expr::Paren(paren) => return remove_use_strict_directive(&mut paren.expr), + Expr::Arrow(arrow) => match &mut *arrow.body { + ArrowFunctionBody::FunctionBody(body) => &mut body.stmts, + ArrowFunctionBody::Expr(_) => return, + }, + Expr::Fn(f) => match &mut f.function.body { + Some(block) => &mut block.stmts, + None => return, + }, + _ => return, + }; + if body.first().is_some_and(is_use_strict_directive) { + body.remove(0); + } +} + +fn is_use_strict_directive(stmt: &Stmt) -> bool { + matches!( + stmt, + Stmt::Expr(ExprStmt { expr, .. }) + if matches!(&**expr, Expr::Lit(Lit::Str(s)) if &*s.value == "use strict") + ) +} + +// From https://github.com/swc-project/swc/blob/11efd4e7c5e8081f8af141099d3459c3534c1e1d/crates/swc/src/lib.rs#L523-L560 +fn print( + cm: &Arc, + node: &impl Node, source_maps: bool, ) -> Result<(String, Vec<(BytePos, LineCol)>)> { let mut src_map_buf = vec![]; @@ -193,8 +388,7 @@ fn print_program( wr, }; - emitter - .emit_program(&program) + node.emit_with(&mut emitter) .context("failed to emit module")?; } // Invalid utf8 is valid in javascript world. @@ -204,3 +398,117 @@ fn print_program( Ok((src, src_map_buf)) } + +#[cfg(test)] +mod tests { + use turbopack_core::{chunk::MangleType, code_builder::CodeBuilder}; + + use super::*; + + fn code(src: &str) -> Code { + let mut builder = CodeBuilder::new(false, false); + builder.push_source(&src.to_string().into(), None::); + builder.build() + } + + fn minify_item(src: &str, mangle: Option) -> String { + let out = minify_chunk_item(&code(src), false, mangle, false).unwrap(); + out.source_code().to_str().unwrap().into_owned() + } + + #[test] + fn function_factory_stays_an_expression() { + let out = minify_item( + r#"function (__turbopack_context__) { + const value = 1 + 2; + __turbopack_context__.v(value); + }"#, + Some(MangleType::OptimalSize), + ); + assert!(!out.contains(CHUNK_ITEM_SENTINEL), "{out}"); + assert!(out.starts_with("function("), "{out}"); + assert!(out.contains(".v(3)"), "{out}"); + } + + #[test] + fn arrow_factory_is_minified_and_mangled() { + let out = minify_item( + r#"(__turbopack_context__) => { + const someLongLocalName = __turbopack_context__.r(1); + return someLongLocalName.foo + someLongLocalName.bar; + }"#, + Some(MangleType::Deterministic), + ); + assert!(!out.contains(CHUNK_ITEM_SENTINEL), "{out}"); + assert!(!out.contains("someLongLocalName"), "{out}"); + assert!(!out.contains("__turbopack_context__"), "{out}"); + } + + #[test] + fn use_strict_directive_is_kept() { + let out = minify_item( + r#"function (e) { "use strict"; e.v(1); }"#, + Some(MangleType::OptimalSize), + ); + assert!(out.contains("\"use strict\""), "{out}"); + } + + #[test] + fn source_map_is_generated() { + let mut builder = CodeBuilder::new(true, false); + builder.push_source( + &"function (ctx) { const value = 1; ctx.v(value); }" + .to_string() + .into(), + None::, + ); + let out = minify_chunk_item(&builder.build(), true, Some(MangleType::OptimalSize), false) + .unwrap(); + assert!(out.has_source_map()); + assert!( + !out.source_code() + .to_str() + .unwrap() + .contains(CHUNK_ITEM_SENTINEL) + ); + } + + #[test] + fn use_strict_directive_can_be_stripped() { + for src in [ + r#"function (e) { "use strict"; e.v(1); }"#, + r#"((e) => { "use strict"; e.v(1); })"#, + r#"1, (e) => { "use strict"; e.v(1); }"#, + ] { + let out = + minify_chunk_item(&code(src), false, Some(MangleType::OptimalSize), true).unwrap(); + let out = out.source_code().to_str().unwrap().into_owned(); + assert!(!out.contains("use strict"), "{out}"); + assert!(out.contains(".v(1)"), "{out}"); + } + } + + #[test] + fn additional_module_ids_are_kept() { + // Merged (scope hoisted) modules prefix their factory with their additional ids. + let out = minify_item( + "85296, \"other id\", (__turbopack_context__) => {\n__turbopack_context__.v(1 + 2);\n}", + Some(MangleType::OptimalSize), + ); + assert!(out.starts_with("85296,\"other id\","), "{out}"); + assert!(out.contains(".v(3)"), "{out}"); + assert!(!out.contains(CHUNK_ITEM_SENTINEL), "{out}"); + } + + #[test] + fn whole_program_still_keeps_statements() { + let out = minify( + code("globalThis.TURBOPACK = [1, function () { return 2 }];"), + false, + Some(MangleType::OptimalSize), + ) + .unwrap(); + let out = out.source_code().to_str().unwrap().into_owned(); + assert!(out.contains("globalThis.TURBOPACK"), "{out}"); + } +} diff --git a/turbopack/crates/turbopack-ecmascript/src/utils.rs b/turbopack/crates/turbopack-ecmascript/src/utils.rs index e4725712272e..26007a4f18f7 100644 --- a/turbopack/crates/turbopack-ecmascript/src/utils.rs +++ b/turbopack/crates/turbopack-ecmascript/src/utils.rs @@ -188,6 +188,26 @@ where } } +/// Formats a property access on `object` in its shortest form: `object.name` when `name` is a +/// plain (ASCII) identifier, `object["name"]` otherwise. +pub struct PropertyAccessJs<'a>(pub &'a str, pub &'a str); + +impl std::fmt::Display for PropertyAccessJs<'_> { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let PropertyAccessJs(object, name) = *self; + let mut chars = name.chars(); + let is_ident = chars + .next() + .is_some_and(|c| c.is_ascii_alphabetic() || c == '_' || c == '$') + && chars.all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '$'); + if is_ident { + write!(f, "{object}.{name}") + } else { + write!(f, "{object}[{}]", StringifyJs(name)) + } + } +} + pub struct FormatIter T>(pub F); macro_rules! format_iter { diff --git a/turbopack/crates/turbopack-nodejs/src/chunking_context.rs b/turbopack/crates/turbopack-nodejs/src/chunking_context.rs index 51fbcb03aed1..5a55a519a15f 100644 --- a/turbopack/crates/turbopack-nodejs/src/chunking_context.rs +++ b/turbopack/crates/turbopack-nodejs/src/chunking_context.rs @@ -82,6 +82,12 @@ impl NodeJsChunkingContextBuilder { self } + /// EXPERIMENTAL. See [`ChunkingContext::minify_before_chunking`]. + pub fn minify_before_chunking(mut self, minify_before_chunking: bool) -> Self { + self.chunking_context.minify_before_chunking = minify_before_chunking; + self + } + pub fn source_maps(mut self, source_maps: SourceMapsType) -> Self { self.chunking_context.source_maps_type = source_maps; self @@ -230,6 +236,9 @@ pub struct NodeJsChunkingContext { enable_dynamic_chunk_content_loading: bool, /// Whether to minify resulting chunks minify_type: MinifyType, + /// EXPERIMENTAL: minify each chunk item before the chunk is assembled, rather than minifying + /// the finished chunk. See [`ChunkingContext::minify_before_chunking`]. + minify_before_chunking: bool, /// Whether to generate source maps source_maps_type: SourceMapsType, /// Whether to use manifest chunks for lazy compilation @@ -289,6 +298,7 @@ impl NodeJsChunkingContext { environment, runtime_type, minify_type: MinifyType::NoMinify, + minify_before_chunking: false, source_maps_type: SourceMapsType::Full, manifest_chunks: false, source_map_source_type: SourceMapSourceType::TurbopackUri, @@ -438,6 +448,11 @@ impl ChunkingContext for NodeJsChunkingContext { self.minify_type.cell() } + #[turbo_tasks::function] + fn minify_before_chunking(&self) -> Vc { + Vc::cell(self.minify_before_chunking) + } + #[turbo_tasks::function] async fn asset_url(&self, ident: FileSystemPath, tag: Option) -> Result> { let asset_path = ident.to_string(); diff --git a/turbopack/crates/turbopack-nodejs/src/ecmascript/node/content.rs b/turbopack/crates/turbopack-nodejs/src/ecmascript/node/content.rs index 4f068626a33d..960b8cd4fb10 100644 --- a/turbopack/crates/turbopack-nodejs/src/ecmascript/node/content.rs +++ b/turbopack/crates/turbopack-nodejs/src/ecmascript/node/content.rs @@ -3,7 +3,7 @@ use turbo_tasks::{ResolvedVc, Vc}; use turbo_tasks_fs::{File, FileContent}; use turbopack_core::{ asset::AssetContent, - chunk::{ChunkingContext, MinifyType}, + chunk::ChunkingContext, code_builder::{Code, CodeBuilder}, output::OutputAsset, source_map::{GenerateSourceMap, SourceMapAsset}, @@ -11,14 +11,13 @@ use turbopack_core::{ }; use turbopack_ecmascript::{ chunk::{ - EcmascriptChunkContent, EcmascriptChunkContentEntries, strict_chunk_wrapper, - strict_factory_mode, write_module_factories, + ChunkMinification, EcmascriptChunkContent, EcmascriptChunkContentEntries, + strict_chunk_prefix, strict_factory_mode, write_module_factories, }, hmr::{ EcmascriptHmrChunkContent, merger::EcmascriptChunkContentMerger, version::EcmascriptChunkVersion, }, - minify::minify, }; use super::chunk::EcmascriptBuildNodeChunk; @@ -55,7 +54,6 @@ impl EcmascriptNodeChunkContent { impl EcmascriptNodeChunkContent { #[turbo_tasks::function] async fn code(&self) -> Result> { - use std::io::Write; let source_maps = *self .chunking_context .reference_chunk_source_maps(*ResolvedVc::upcast(self.chunk)) @@ -69,31 +67,30 @@ impl EcmascriptNodeChunkContent { .supports_arrow_functions() .await?; let content = self.content.await?; - let chunk_items = content.chunk_item_code_module_ids_and_paths().await?; - let strict_factory_mode = strict_factory_mode(&chunk_items, supports_arrow_functions); - - let strict_chunk_wrapper = - strict_chunk_wrapper(strict_factory_mode, supports_arrow_functions); - if let Some((prefix, _)) = strict_chunk_wrapper { + let minification = + ChunkMinification::for_chunking_context(Vc::upcast(*self.chunking_context)).await?; + let chunk_items = content + .chunk_item_code_module_ids_and_paths(minification, source_maps) + .await?; + let strict_factory_mode = strict_factory_mode( + &chunk_items, + minification.factories_have_strict_directives(), + ); + if let Some(prefix) = strict_chunk_prefix(strict_factory_mode) { code += prefix; } - write!(code, "module.exports = [")?; + // The scaffolding is written in minified form, so it needs no minification pass of its + // own when the factories are minified individually. + code += "module.exports=["; write_module_factories( &mut code, &chunk_items, strict_factory_mode, supports_arrow_functions, )?; - write!(code, "\n];")?; - if let Some((_, suffix)) = strict_chunk_wrapper { - code += suffix; - } - - let mut code = code.build(); + code += "];"; - if let MinifyType::Minify { mangle } = *self.chunking_context.minify_type().await? { - code = minify(code, source_maps, mangle)?; - } + let code = minification.finish_chunk(code.build(), source_maps)?; Ok(code.cell()) } diff --git a/turbopack/crates/turbopack-tests/tests/snapshot.rs b/turbopack/crates/turbopack-tests/tests/snapshot.rs index cd8a107ecc9f..1ec94074155e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot.rs +++ b/turbopack/crates/turbopack-tests/tests/snapshot.rs @@ -80,6 +80,9 @@ struct SnapshotOptions { entry: String, #[serde(default = "default_minify_type")] minify_type: MinifyType, + /// EXPERIMENTAL: minify each chunk item before assembling the chunk. + #[serde(default)] + minify_before_chunking: bool, #[serde(default)] runtime: Runtime, #[serde(default = "default_runtime_type")] @@ -140,6 +143,7 @@ impl Default for SnapshotOptions { browserslist: default_browserslist(), entry: default_entry(), minify_type: default_minify_type(), + minify_before_chunking: false, runtime: Default::default(), runtime_type: default_runtime_type(), environment: Default::default(), @@ -541,6 +545,7 @@ async fn run_test_operation(resource: RcStr) -> Result> { options.runtime_type, ) .minify_type(options.minify_type) + .minify_before_chunking(options.minify_before_chunking) .module_merging(options.scope_hoisting) .shared_runtime(options.shared_runtime) .export_usage(if options.remove_unused_exports { @@ -594,6 +599,7 @@ async fn run_test_operation(resource: RcStr) -> Result> { options.runtime_type, ) .minify_type(options.minify_type) + .minify_before_chunking(options.minify_before_chunking) .module_merging(options.scope_hoisting) .export_usage(if options.remove_unused_exports { Some(binding_usage.unwrap().connect().to_resolved().await?) diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js index fe0bdf28712b..d0cb552c51fd 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { async function main() { const lib = await __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader)"); console.log(lib.cat); } main(); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js.map index 3b0aa875eea6..7324f116cbbc 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_index_17se2p5tp_9aa.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js"],"sourcesContent":["async function main() {\n const lib = await import('./lib')\n console.log(lib.cat)\n}\n\nmain()\n"],"names":["main","lib","console","log","cat"],"mappings":"AAAA,eAAeA;IACb,MAAMC,MAAM;IACZC,QAAQC,GAAG,CAACF,IAAIG,GAAG;AACrB;AAEAJ"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/index.js"],"sourcesContent":["async function main() {\n const lib = await import('./lib')\n console.log(lib.cat)\n}\n\nmain()\n"],"names":["main","lib","console","log","cat"],"mappings":"AAAA,eAAeA;IACb,MAAMC,MAAM;IACZC,QAAQC,GAAG,CAACF,IAAIG,GAAG;AACrB;AAEAJ"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_0nr8lpipo84h8.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_0nr8lpipo84h8.js index 17017e72d082..f97a8ebefeb8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_0nr8lpipo84h8.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_0nr8lpipo84h8.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_0nr8lpipo84h8.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_0nr8lpipo84h8.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js index e71e71fa0373..483fa8b9787c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -16,8 +15,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) "); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -38,8 +36,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -49,8 +46,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -58,8 +54,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -73,8 +68,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -109,8 +103,7 @@ const dogRef = { ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -119,8 +112,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -130,8 +122,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -146,8 +137,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -168,8 +158,7 @@ function getChimera() { } ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -179,7 +168,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) "); ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js.map index 1cbd925f7c3a..33424205f11e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/output/1jsg_tests_snapshot_basic-tree-shake_dynamic-import_input_lib_1b34ju5a6z6v3.js.map @@ -2,15 +2,15 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 55, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,uPAAG,IAAI;AAQP,uPAAG,IAAI"}}, - {"offset": {"line": 64, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,uPAAG;AAQfD,QAAQC,GAAG,CAAC,uPAAG;AAQfD,QAAQC,GAAG,CAAC,uPAAG"}}, - {"offset": {"line": 79, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,uPAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,uPAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,uPAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, - {"offset": {"line": 115, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,uPAAG,IAAI"}}, - {"offset": {"line": 125, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 136, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,uPAAG"}}, - {"offset": {"line": 152, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,uPAAG,GAAG,uPAAG;AAClB"}}, - {"offset": {"line": 174, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,uPAAG,IAAI;AAQP,uPAAG,IAAI"}}, + {"offset": {"line": 59, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,uPAAG;AAQfD,QAAQC,GAAG,CAAC,uPAAG;AAQfD,QAAQC,GAAG,CAAC,uPAAG"}}, + {"offset": {"line": 73, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,uPAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,uPAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,uPAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, + {"offset": {"line": 108, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,uPAAG,IAAI"}}, + {"offset": {"line": 117, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 127, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,uPAAG"}}, + {"offset": {"line": 142, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,uPAAG,GAAG,uPAAG;AAClB"}}, + {"offset": {"line": 163, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js index 5c32ec148bb3..97208ca715f1 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/module.js [test] (ecmascript) "); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["fakeCat"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,8 +15,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -26,8 +23,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -41,8 +37,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -51,8 +46,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -62,8 +56,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -73,8 +66,7 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) "); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/module.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/module.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -91,7 +83,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js.map index e10e0a0cc4b8..bd5ceed96aff 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/output/1jsg_tests_snapshot_basic-tree-shake_export-named_input_0xj7cshvyczs_._.js.map @@ -2,12 +2,12 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js"],"sourcesContent":["import { fakeCat } from './module'\n\nconsole.log(fakeCat)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAO"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}}, - {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}}, - {"offset": {"line": 47, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}}, - {"offset": {"line": 57, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 68, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 79, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js"],"sourcesContent":["import { fakeCat } from './module'\n\nconsole.log(fakeCat)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAO"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}}, + {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}}, + {"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}}, + {"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 61, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 71, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js index e79a6670f5e3..8ec8080c5afb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/module.js [test] (ecmascript) "); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["lib"].cat); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -28,8 +26,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -39,8 +36,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -48,8 +44,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -63,8 +58,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -99,8 +93,7 @@ const dogRef = { ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -109,8 +102,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -120,8 +112,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -136,8 +127,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -158,8 +148,7 @@ function getChimera() { } ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -169,8 +158,7 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) "); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/module.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/module.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -186,7 +174,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js.map index cb00bc9ec0ab..c3e33ceb57da 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/output/1jsg_tests_snapshot_basic-tree-shake_export-namespace_input_1mqgz2-3_b4v8._.js.map @@ -2,16 +2,16 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js"],"sourcesContent":["import { lib } from './module'\n\nconsole.log(lib.cat)\n"],"names":["console","log","cat"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAG,CAACC,GAAG"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 45, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,yPAAG,IAAI;AAQP,yPAAG,IAAI"}}, - {"offset": {"line": 54, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG"}}, - {"offset": {"line": 69, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,yPAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,yPAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,yPAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, - {"offset": {"line": 105, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,yPAAG,IAAI"}}, - {"offset": {"line": 115, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 126, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,yPAAG"}}, - {"offset": {"line": 142, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,yPAAG,GAAG,yPAAG;AAClB"}}, - {"offset": {"line": 164, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 175, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/index.js"],"sourcesContent":["import { lib } from './module'\n\nconsole.log(lib.cat)\n"],"names":["console","log","cat"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAG,CAACC,GAAG"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,yPAAG,IAAI;AAQP,yPAAG,IAAI"}}, + {"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG"}}, + {"offset": {"line": 63, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,yPAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,yPAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,yPAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, + {"offset": {"line": 98, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,yPAAG,IAAI"}}, + {"offset": {"line": 107, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 117, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,yPAAG"}}, + {"offset": {"line": 132, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,yPAAG,GAAG,yPAAG;AAClB"}}, + {"offset": {"line": 153, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 163, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js index 1ca05111b11c..102193224a65 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,8 +6,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) "); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"]); // TODO: Execution -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -18,8 +16,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -27,8 +24,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -42,8 +38,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -52,8 +47,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -63,8 +57,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -74,7 +67,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) "); ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js.map index abcb8e78ea1c..5f7bc2d4891c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/output/1jsg_tests_snapshot_basic-tree-shake_import-named-all_input_1orhvu2sihqe-._.js.map @@ -2,11 +2,11 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js"],"sourcesContent":["import { cat as c, dogRef, initialCat, getChimera } from './lib'\n\nconsole.log(c)\n\n// TODO: Execution\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAC,GAEb,kBAAkB"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,4PAAG,IAAI;AAQP,4PAAG,IAAI"}}, - {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG"}}, - {"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,4PAAG,IAAI"}}, - {"offset": {"line": 58, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 69, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js"],"sourcesContent":["import { cat as c, dogRef, initialCat, getChimera } from './lib'\n\nconsole.log(c)\n\n// TODO: Execution\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAC,GAEb,kBAAkB"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,4PAAG,IAAI;AAQP,4PAAG,IAAI"}}, + {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG"}}, + {"offset": {"line": 43, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,4PAAG,IAAI"}}, + {"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 62, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js index f1d7357f0a22..c8675b778d9d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,8 +6,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) "); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -18,8 +16,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -27,8 +24,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -42,8 +38,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -52,8 +47,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -63,8 +57,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -74,7 +67,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) "); ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js.map index 6df775eff06f..5ab60e96f6b8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/output/1jsg_tests_snapshot_basic-tree-shake_import-named_input_1j9uhcyhqdoze._.js.map @@ -2,11 +2,11 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js"],"sourcesContent":["import { cat as c } from './lib'\n\nconsole.log(c)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,uPAAC"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}}, - {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}}, - {"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}}, - {"offset": {"line": 58, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 69, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js"],"sourcesContent":["import { cat as c } from './lib'\n\nconsole.log(c)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,uPAAC"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}}, + {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}}, + {"offset": {"line": 43, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}}, + {"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 62, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js index 34ae25dce464..b1dd36532236 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,8 +6,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) "); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -29,8 +27,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -40,8 +37,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -49,8 +45,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -64,8 +59,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -100,8 +94,7 @@ const dogRef = { ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -110,8 +103,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -121,8 +113,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -137,8 +128,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -159,8 +149,7 @@ function getChimera() { } ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -170,7 +159,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) "); ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js.map index e89ddd6036d1..e333e3b56585 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/output/1jsg_tests_snapshot_basic-tree-shake_import-namespace_input_1ippwh3yc_l3v._.js.map @@ -2,15 +2,15 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js"],"sourcesContent":["import * as lib from './lib'\n\nconsole.log(lib.cat)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,iPAAO"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,yPAAG,IAAI;AAQP,yPAAG,IAAI"}}, - {"offset": {"line": 55, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG"}}, - {"offset": {"line": 70, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,yPAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,yPAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,yPAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, - {"offset": {"line": 106, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,yPAAG,IAAI"}}, - {"offset": {"line": 116, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 127, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,yPAAG"}}, - {"offset": {"line": 143, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,yPAAG,GAAG,yPAAG;AAClB"}}, - {"offset": {"line": 165, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/index.js"],"sourcesContent":["import * as lib from './lib'\n\nconsole.log(lib.cat)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,iPAAO"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,yPAAG,IAAI;AAQP,yPAAG,IAAI"}}, + {"offset": {"line": 50, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG;AAQfD,QAAQC,GAAG,CAAC,yPAAG"}}, + {"offset": {"line": 64, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,yPAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,yPAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,yPAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, + {"offset": {"line": 99, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,yPAAG,IAAI"}}, + {"offset": {"line": 108, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 118, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,yPAAG"}}, + {"offset": {"line": 133, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,yPAAG,GAAG,yPAAG;AAClB"}}, + {"offset": {"line": 154, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js index f979e4d5d29e..a824ff490547 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js @@ -1,12 +1,10 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) "); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -16,8 +14,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -25,8 +22,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -40,8 +36,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -50,7 +45,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js.map index 1245d463eb4b..542f0119c4bb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_import-side-effect_input_1_hdh9its1vdz._.js.map @@ -2,9 +2,9 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js"],"sourcesContent":["import './lib'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,8PAAG,IAAI;AAQP,8PAAG,IAAI"}}, - {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG"}}, - {"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,8PAAG,IAAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js"],"sourcesContent":["import './lib'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,8PAAG,IAAI;AAQP,8PAAG,IAAI"}}, + {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG"}}, + {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,8PAAG,IAAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js index ec09065d3887..16e91239674f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js @@ -1,6 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js", -(()=>{"use strict";return[ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js",(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,8 +15,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) "); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -39,8 +36,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -50,8 +46,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -59,8 +54,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -74,8 +68,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -110,8 +103,7 @@ const dogRef = { ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -120,8 +112,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -131,8 +122,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -147,8 +137,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -169,8 +158,7 @@ function getChimera() { } ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -180,12 +168,9 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) "); ; ; -}), -]})(), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +})]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { const { cat } = __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript)"); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js.map index 94e8bdd3d3cb..9b2cea838d87 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/output/1jsg_tests_snapshot_basic-tree-shake_require-side-effect_input_0fs4qhn32cnvu._.js.map @@ -2,16 +2,16 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 45, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 56, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,+PAAG,IAAI;AAQP,+PAAG,IAAI"}}, - {"offset": {"line": 65, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,+PAAG;AAQfD,QAAQC,GAAG,CAAC,+PAAG;AAQfD,QAAQC,GAAG,CAAC,+PAAG"}}, - {"offset": {"line": 80, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,+PAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,+PAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,+PAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, - {"offset": {"line": 116, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,+PAAG,IAAI"}}, - {"offset": {"line": 126, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 137, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,+PAAG"}}, - {"offset": {"line": 153, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,+PAAG,GAAG,+PAAG;AAClB"}}, - {"offset": {"line": 175, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 186, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js"],"sourcesContent":["const { cat } = require('./lib')\n"],"names":["cat"],"mappings":"AAAA,MAAM,EAAEA,GAAG,EAAE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,+PAAG,IAAI;AAQP,+PAAG,IAAI"}}, + {"offset": {"line": 59, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,+PAAG;AAQfD,QAAQC,GAAG,CAAC,+PAAG;AAQfD,QAAQC,GAAG,CAAC,+PAAG"}}, + {"offset": {"line": 73, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,+PAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,+PAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,+PAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, + {"offset": {"line": 108, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,+PAAG,IAAI"}}, + {"offset": {"line": 117, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 127, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,+PAAG"}}, + {"offset": {"line": 142, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,+PAAG,GAAG,+PAAG;AAClB"}}, + {"offset": {"line": 163, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 172, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/index.js"],"sourcesContent":["const { cat } = require('./lib')\n"],"names":["cat"],"mappings":"AAAA,MAAM,EAAEA,GAAG,EAAE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js index 28b46e0d583d..04ef2962a841 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -16,8 +15,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) "); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -38,8 +36,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -49,8 +46,7 @@ __turbopack_context__.s([ ]); let dog = 'dog'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -58,8 +54,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -73,8 +68,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -109,8 +103,7 @@ const dogRef = { ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -119,8 +112,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__["a"] += '!'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -130,8 +122,7 @@ __turbopack_context__.s([ ]); let cat = 'cat'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -146,8 +137,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -168,8 +158,7 @@ function getChimera() { } ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -179,7 +168,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) "); ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js.map index c35468d24d62..14789b22c62c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_basic-tree-shake_tree-shake-test-1_input_index_07jttq51-r0-b.js.map @@ -2,15 +2,15 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, - {"offset": {"line": 55, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,kQAAG,IAAI;AAQP,kQAAG,IAAI"}}, - {"offset": {"line": 64, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,kQAAG;AAQfD,QAAQC,GAAG,CAAC,kQAAG;AAQfD,QAAQC,GAAG,CAAC,kQAAG"}}, - {"offset": {"line": 79, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,kQAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,kQAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,kQAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, - {"offset": {"line": 115, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,kQAAG,IAAI"}}, - {"offset": {"line": 125, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, - {"offset": {"line": 136, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,kQAAG"}}, - {"offset": {"line": 152, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,kQAAG,GAAG,kQAAG;AAClB"}}, - {"offset": {"line": 174, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, + {"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,kQAAG,IAAI;AAQP,kQAAG,IAAI"}}, + {"offset": {"line": 59, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,kQAAG;AAQfD,QAAQC,GAAG,CAAC,kQAAG;AAQfD,QAAQC,GAAG,CAAC,kQAAG"}}, + {"offset": {"line": 73, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getDog","setDog","newDog","dogRef","initial","get","set"],"mappings":";;;;;;;;;;;;;;;;;AAMA,SAASA;IACP,OAAO,kQAAG;AACZ;AAMA,SAASC,OAAOC,MAAM;IACpB,kQAAG,GAAGA;AACR;AAMO,MAAMC,SAAS;IACpBC,SAAS,kQAAG;IACZC,KAAKL;IACLM,KAAKL;AACP"}}, + {"offset": {"line": 108, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,kQAAG,IAAI"}}, + {"offset": {"line": 117, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, + {"offset": {"line": 127, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["initialCat"],"mappings":";;;;;;;;;AA8BO,MAAMA,aAAa,kQAAG"}}, + {"offset": {"line": 142, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["getChimera"],"mappings":";;;;;;;;;;;;;AAgCO,SAASA;IACd,OAAO,kQAAG,GAAG,kQAAG;AAClB"}}, + {"offset": {"line": 163, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_input_import_1cmdia814mpg5.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_input_import_1cmdia814mpg5.js index 02a67fd1242c..7a48f2f49657 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_input_import_1cmdia814mpg5.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_input_import_1cmdia814mpg5.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_input_import_1cmdia814mpg5.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_input_import_1cmdia814mpg5.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js index 0bbbf1b51f55..a91089d58d52 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -11,8 +10,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$async_chunk$2f$input$2f$node_modules$2f$foo$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["foo"])(true); (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$async_chunk$2f$input$2f$node_modules$2f$bar$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["bar"])(true); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/foo/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/foo/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,7 +20,6 @@ __turbopack_context__.s([ function foo(value) { console.assert(value); } -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js.map index fd230c208299..7f5ea705c489 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1lkohl-aes1w9._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js"],"sourcesContent":["import { foo } from 'foo'\nimport { bar } from 'bar'\nimport './shared'\n\nfoo(true)\nbar(true)\n"],"names":[],"mappings":";AAAA;AACA;AACA;;;;AAEA,IAAA,gOAAG,EAAC;AACJ,IAAA,gOAAG,EAAC"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js"],"sourcesContent":["import { foo } from 'foo'\nimport { bar } from 'bar'\nimport './shared'\n\nfoo(true)\nbar(true)\n"],"names":[],"mappings":";AAAA;AACA;AACA;;;;AAEA,IAAA,gOAAG,EAAC;AACJ,IAAA,gOAAG,EAAC"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js index e62cdbcec5e9..d372401616cf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -11,8 +10,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js [test] (ecmascript, async loader)").then(({ foo })=>{ foo(true); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/bar/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/bar/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,11 +20,9 @@ __turbopack_context__.s([ function bar(value) { console.assert(value); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/shared.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/shared.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // shared package -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js.map index b4a7f2e73f89..f228be6feeca 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/output/1do3_crates_turbopack-tests_tests_snapshot_basic_async_chunk_input_1tjv7ofn7-zgw._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/index.js"],"sourcesContent":["import { bar } from 'bar'\nimport './shared'\n\nbar(true)\n\nimport('./import').then(({ foo }) => {\n foo(true)\n})\n"],"names":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,gOAAG,EAAC;AAEJ,yJAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":["bar","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}, - {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/index.js"],"sourcesContent":["import { bar } from 'bar'\nimport './shared'\n\nbar(true)\n\nimport('./import').then(({ foo }) => {\n foo(true)\n})\n"],"names":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,gOAAG,EAAC;AAEJ,yJAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":["bar","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}, + {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js index 82ca52e51235..c46ee9b8fc27 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -11,8 +10,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$async_chunk_build$2f$input$2f$node_modules$2f$foo$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["foo"])(true); (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$async_chunk_build$2f$input$2f$node_modules$2f$bar$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["bar"])(true); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/foo/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/foo/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,7 +20,6 @@ __turbopack_context__.s([ function foo(value) { console.assert(value); } -}), -];})() +})]; //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js.map index 783682c353ec..d889e71ad253 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js"],"sourcesContent":["import { foo } from 'foo'\nimport { bar } from 'bar'\nimport './shared'\n\nfoo(true)\nbar(true)\n"],"names":[],"mappings":";AAAA;AACA;AACA;;;;AAEA,IAAA,sOAAG,EAAC;AACJ,IAAA,sOAAG,EAAC"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js"],"sourcesContent":["import { foo } from 'foo'\nimport { bar } from 'bar'\nimport './shared'\n\nfoo(true)\nbar(true)\n"],"names":[],"mappings":";AAAA;AACA;AACA;;;;AAEA,IAAA,sOAAG,EAAC;AACJ,IAAA,sOAAG,EAAC"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js index 10fef65c58cf..7cbbf94dd266 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js @@ -1,15 +1,4 @@ -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { - -__turbopack_context__.v((parentImport) => { - return Promise.all([ - "output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js" -].map((chunk) => __turbopack_context__.l(chunk))).then(() => { - return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript)"); - }); -}); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -21,8 +10,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript, async loader)").then(({ foo })=>{ foo(true); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/bar/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/bar/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -32,11 +20,18 @@ __turbopack_context__.s([ function bar(value) { console.assert(value); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/shared.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript, async loader)",((__turbopack_context__) => { + +__turbopack_context__.v((parentImport) => { + return Promise.all([ + "output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0aldykipaj64f._.js" +].map((chunk) => __turbopack_context__.l(chunk))).then(() => { + return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js [test] (ecmascript)"); + }); +}); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/shared.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // shared package -}), -]; +})]; //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js.map index df0dff53d616..fc3531245d7f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/output/0_9x_turbopack-tests_tests_snapshot_basic_async_chunk_build_input_0vyuqwd634lp3._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/index.js"],"sourcesContent":["import { bar } from 'bar'\nimport './shared'\n\nbar(true)\n\nimport('./import').then(({ foo }) => {\n foo(true)\n})\n"],"names":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,sOAAG,EAAC;AAEJ,+JAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}}, - {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":["bar","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}, - {"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/index.js"],"sourcesContent":["import { bar } from 'bar'\nimport './shared'\n\nbar(true)\n\nimport('./import').then(({ foo }) => {\n foo(true)\n})\n"],"names":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,sOAAG,EAAC;AAEJ,+JAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":["bar","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}, + {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js index b9cb3bc4b342..90002be1d888 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js @@ -1,8 +1,6 @@ -(globalThis["myApp"] || (globalThis["myApp"] = [])).push(["output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.myApp||(globalThis.myApp=[])).push(["output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('ChunkingLoadingGlobal test'); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js.map index b875d0db218c..58b2487a3512 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/output/1jsg_tests_snapshot_basic_chunk_loading_global_input_index_0hi3tgpoq4c3t.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/input/index.js"],"sourcesContent":["console.log('ChunkingLoadingGlobal test')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunk_loading_global/input/index.js"],"sourcesContent":["console.log('ChunkingLoadingGlobal test')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js index 487bde69bc49..ef689612b0f2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$chunked$2f$input$2f$node_modules$2f$foo$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js [test] (ecmascript)"); ; (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$chunked$2f$input$2f$node_modules$2f$foo$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["foo"])(true); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,7 +15,6 @@ __turbopack_context__.s([ function foo(value) { console.assert(value); } -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js.map index 626cc3af550f..8a8ba9f221c6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/output/1do3_crates_turbopack-tests_tests_snapshot_basic_chunked_input_1_yzgm1kllkx5._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/index.js"],"sourcesContent":["import { foo } from 'foo'\n\nfoo(true)\n"],"names":[],"mappings":";AAAA;;AAEA,IAAA,4NAAG,EAAC"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/index.js"],"sourcesContent":["import { foo } from 'foo'\n\nfoo(true)\n"],"names":[],"mappings":";AAAA;;AAEA,IAAA,4NAAG,EAAC"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/helper.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/helper.js new file mode 100644 index 000000000000..18fff94c8a8b --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/helper.js @@ -0,0 +1,8 @@ +export function double(value) { + const doubled = value * 2 + return doubled +} + +export function unusedExport() { + return 'this should compress away' +} diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js new file mode 100644 index 000000000000..cce980d4fb1e --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js @@ -0,0 +1,8 @@ +import { double } from './helper' + +function unusedInEntry(a, b) { + const neverRead = a + b + return a * b +} + +console.log(double(21)) diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/options.json b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/options.json new file mode 100644 index 000000000000..b9961767aaf4 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/options.json @@ -0,0 +1,9 @@ +{ + "runtime": "NodeJs", + "minifyType": { + "Minify": { + "mangle": "optimal-size" + } + }, + "minifyBeforeChunking": true +} diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js new file mode 100644 index 000000000000..c2ed6a4bd321 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js @@ -0,0 +1,3 @@ +"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/helper.js [test] (ecmascript)",a=>{function b(a){return 2*a}function c(){return"this should compress away"}a.s(["double",()=>b,"unusedExport",()=>c])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js [test] (ecmascript)",a=>{a.s([]),console.log((0,a.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/helper.js [test] (ecmascript)").double)(21))}]; + +//# sourceMappingURL=1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js.map new file mode 100644 index 000000000000..73bf933f3585 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js.map @@ -0,0 +1,9 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 0, "column": 165}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/helper.js"],"sourcesContent":["export function double(value) {\n const doubled = value * 2\n return doubled\n}\n\nexport function unusedExport() {\n return 'this should compress away'\n}\n"],"names":["double","value","doubled","unusedExport"],"mappings":"IAAO,SAASA,EAAOC,CAAK,EAE1B,OADwB,AACjBC,EADSD,CAElB,CAEO,SAASE,IACd,MAAO,2BACT"}}, + {"offset": {"line": 0, "column": 284}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, + {"offset": {"line": 0, "column": 420}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js"],"sourcesContent":["import { double } from './helper'\n\nfunction unusedInEntry(a, b) {\n const neverRead = a + b\n return a * b\n}\n\nconsole.log(double(21))\n"],"names":["unusedInEntry","a","b","neverRead","console","log"],"mappings":"YAOAI,QAAQC,GAAG,CAAC,CAAA,EAPZ,AAOY,EAPZ,CAAA,CAAA,yIAOY,MAAA,AAAM,EAAC"}}, + {"offset": {"line": 0, "column": 601}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] +} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/[turbopack]_runtime.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/[turbopack]_runtime.js new file mode 100644 index 000000000000..af1ff6b42072 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/[turbopack]_runtime.js @@ -0,0 +1,4 @@ +var RUNTIME_PUBLIC_PATH = "output/[turbopack]_runtime.js"; +var RELATIVE_ROOT_PATH = "../../../../../../.."; +var ASSET_PREFIX = "/"; +// Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/[turbopack]_runtime.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/[turbopack]_runtime.js.map new file mode 100644 index 000000000000..c15d7ec00382 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/[turbopack]_runtime.js.map @@ -0,0 +1,5 @@ +{ + "version": 3, + "sources": [], + "sections": [] +} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/index.entry.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/index.entry.js new file mode 100644 index 000000000000..2b205789b0cb --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/index.entry.js @@ -0,0 +1,4 @@ +var R=require("./[turbopack]_runtime.js")("output/index.entry.js") +R.c("output/1jsg_tests_snapshot_basic_ecmascript_minify_before_chunking_input_0ha5_3_s63fqt._.js") +R.m("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js [test] (ecmascript)") +module.exports=R.m("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/input/index.js [test] (ecmascript)").exports \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/index.entry.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/index.entry.js.map new file mode 100644 index 000000000000..c15d7ec00382 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking/output/index.entry.js.map @@ -0,0 +1,5 @@ +{ + "version": 3, + "sources": [], + "sections": [] +} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/cjs-mod.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/cjs-mod.js new file mode 100644 index 000000000000..4bf1669a99ee --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/cjs-mod.js @@ -0,0 +1,3 @@ +// Sloppy-mode CJS: octal literals are a syntax error under "use strict". +var legacy = 0777 +module.exports.cjsValue = legacy diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/esm-mod.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/esm-mod.js new file mode 100644 index 000000000000..beb99d05b612 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/esm-mod.js @@ -0,0 +1,4 @@ +export const esmValue = (function () { + const computed = 1 + 1 + return computed +})() diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js new file mode 100644 index 000000000000..68a600a6b12b --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js @@ -0,0 +1,3 @@ +import { esmValue } from './esm-mod' +const cjs = require('./cjs-mod') +console.log(esmValue, cjs.cjsValue) diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/options.json b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/options.json new file mode 100644 index 000000000000..b9961767aaf4 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/options.json @@ -0,0 +1,9 @@ +{ + "runtime": "NodeJs", + "minifyType": { + "Minify": { + "mangle": "optimal-size" + } + }, + "minifyBeforeChunking": true +} diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js new file mode 100644 index 000000000000..7c84e9f2a99c --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js @@ -0,0 +1,3 @@ +module.exports=[(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/esm-mod.js [test] (ecmascript)",a=>{a.s(["esmValue",()=>b]);let b=2},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js [test] (ecmascript)",a=>{a.s([]);var b=a.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/esm-mod.js [test] (ecmascript)");let c=a.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/cjs-mod.js [test] (ecmascript)");console.log(b.esmValue,c.cjsValue)}]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/cjs-mod.js [test] (ecmascript)",(a,b,c)=>{b.exports.cjsValue=511}]; + +//# sourceMappingURL=0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js.map new file mode 100644 index 000000000000..340ac651980c --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js.map @@ -0,0 +1,11 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 0, "column": 185}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/esm-mod.js"],"sourcesContent":["export const esmValue = (function () {\n const computed = 1 + 1\n return computed\n})()\n"],"names":["esmValue","computed"],"mappings":"4BAAO,IAAMA,EACM,IAAI,KADC,AAAC"}}, + {"offset": {"line": 0, "column": 221}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, + {"offset": {"line": 0, "column": 363}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js"],"sourcesContent":["import { esmValue } from './esm-mod'\nconst cjs = require('./cjs-mod')\nconsole.log(esmValue, cjs.cjsValue)\n"],"names":["cjs","console","log","cjsValue"],"mappings":"YAAA,IAAA,EAAA,EAAA,CAAA,CAAA,gJACA,IAAMA,EAAAA,EAAAA,CAAAA,CAAAA,gJACNC,QAAQC,GAAG,CAAC,EAAA,QAAQ,CAAEF,EAAIG,QAAQ"}}, + {"offset": {"line": 0, "column": 718}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, + {"offset": {"line": 0, "column": 867}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/cjs-mod.js"],"sourcesContent":["// Sloppy-mode CJS: octal literals are a syntax error under \"use strict\".\nvar legacy = 0777\nmodule.exports.cjsValue = legacy\n"],"names":["legacy","module","exports","cjsValue"],"mappings":"UAEAC,EAAOC,OAAO,CAACC,QAAQ,CADV,EACaH"}}, + {"offset": {"line": 0, "column": 900}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] +} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/[turbopack]_runtime.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/[turbopack]_runtime.js new file mode 100644 index 000000000000..af1ff6b42072 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/[turbopack]_runtime.js @@ -0,0 +1,4 @@ +var RUNTIME_PUBLIC_PATH = "output/[turbopack]_runtime.js"; +var RELATIVE_ROOT_PATH = "../../../../../../.."; +var ASSET_PREFIX = "/"; +// Dummy runtime \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/[turbopack]_runtime.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/[turbopack]_runtime.js.map new file mode 100644 index 000000000000..c15d7ec00382 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/[turbopack]_runtime.js.map @@ -0,0 +1,5 @@ +{ + "version": 3, + "sources": [], + "sections": [] +} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/index.entry.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/index.entry.js new file mode 100644 index 000000000000..90e83a739a4f --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/index.entry.js @@ -0,0 +1,4 @@ +var R=require("./[turbopack]_runtime.js")("output/index.entry.js") +R.c("output/0p5q_snapshot_basic_ecmascript_minify_before_chunking_mixed_input_1uae3zs7l497e._.js") +R.m("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js [test] (ecmascript)") +module.exports=R.m("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/input/index.js [test] (ecmascript)").exports \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/index.entry.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/index.entry.js.map new file mode 100644 index 000000000000..c15d7ec00382 --- /dev/null +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ecmascript_minify_before_chunking_mixed/output/index.entry.js.map @@ -0,0 +1,5 @@ +{ + "version": 3, + "sources": [], + "sections": [] +} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js index 5f84eb8a11eb..e2cbc85139f3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$export$2d$default$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/node_modules/lib/index.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$export$2d$default$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/node_modules/lib/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/node_modules/lib/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; const a = 1; @@ -18,7 +16,6 @@ __turbopack_context__.s([ 0, __TURBOPACK__default__export__ ]); -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js.map index a885bd88f79a..087482708077 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja77l7ynd._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/index.js"],"sourcesContent":["import value from 'lib'\n\nconsole.log(value)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,0OAAK"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/node_modules/lib/index.js"],"sourcesContent":["const a = 1\nconst b = 2\n\nexport default a + b\n"],"names":["a","b"],"mappings":"AAAA,MAAMA,IAAI;AACV,MAAMC,IAAI;uCAEKD,IAAIC","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/index.js"],"sourcesContent":["import value from 'lib'\n\nconsole.log(value)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,0OAAK"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/node_modules/lib/index.js"],"sourcesContent":["const a = 1\nconst b = 2\n\nexport default a + b\n"],"names":["a","b"],"mappings":"AAAA,MAAMA,IAAI;AACV,MAAMC,IAAI;uCAEKD,IAAIC","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js index 3639ceeab54e..c60132829bba 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js @@ -1,5 +1,4 @@ -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js [test] (ecmascript)", ((__turbopack_context__) => { +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -14,8 +13,15 @@ function first() { __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript, async loader)") ]).then(([{ second }, { third }])=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$nested_async_availability$2f$input$2f$shared$2e$js__$5b$test$5d$__$28$ecmascript$29$__["shared"] + second + third); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/shared.js [test] (ecmascript)",((__turbopack_context__) => { +"use strict"; + +__turbopack_context__.s([ + "shared", + ()=>shared +]); +const shared = 'shared'; +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -24,17 +30,7 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js [test] (ecmascript)"); }); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/shared.js [test] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([ - "shared", - ()=>shared -]); -const shared = 'shared'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -43,7 +39,6 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript)"); }); }); -}), -]; +})]; //# sourceMappingURL=1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js.map index 88b8f765ad2a..3b27d6ff1616 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_0xj39htr4y5yc._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js"],"sourcesContent":["import { shared } from './shared'\n\nexport function first() {\n return Promise.all([import('./second'), import('./third')]).then(\n ([{ second }, { third }]) => shared + second + third\n )\n}\n"],"names":["first","Promise","all","then","second","third"],"mappings":";;;;AAAA;;AAEO,SAASA;IACd,OAAOC,QAAQC,GAAG,CAAC;;;KAAuC,EAAEC,IAAI,CAC9D,CAAC,CAAC,EAAEC,MAAM,EAAE,EAAE,EAAEC,KAAK,EAAE,CAAC,GAAK,2NAAM,GAAGD,SAASC;AAEnD"}}, - {"offset": {"line": 30, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/shared.js"],"sourcesContent":["export const shared = 'shared'\n"],"names":["shared"],"mappings":";;;;AAAO,MAAMA,SAAS"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js"],"sourcesContent":["import { shared } from './shared'\n\nexport function first() {\n return Promise.all([import('./second'), import('./third')]).then(\n ([{ second }, { third }]) => shared + second + third\n )\n}\n"],"names":["first","Promise","all","then","second","third"],"mappings":";;;;AAAA;;AAEO,SAASA;IACd,OAAOC,QAAQC,GAAG,CAAC;;;KAAuC,EAAEC,IAAI,CAC9D,CAAC,CAAC,EAAEC,MAAM,EAAE,EAAE,EAAEC,KAAK,EAAE,CAAC,GAAK,2NAAM,GAAGD,SAASC;AAEnD"}}, + {"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/shared.js"],"sourcesContent":["export const shared = 'shared'\n"],"names":["shared"],"mappings":";;;;AAAO,MAAMA,SAAS"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js index 56f00c8cfdc1..1fbf32ab7b7d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js @@ -1,5 +1,4 @@ -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,11 +7,9 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js [test] (ecmascript)"); }); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/first.js [test] (ecmascript, async loader)").then(({ first })=>first()); -}), -]; +})]; //# sourceMappingURL=1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js.map index 71a530e80af5..198e8427b8eb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_1bof-0uzqpz7i._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/index.js"],"sourcesContent":["import('./first').then(({ first }) => first())\n"],"names":["then","first"],"mappings":"AAAA,sKAAkBA,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE,GAAKA"}}] + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/index.js"],"sourcesContent":["import('./first').then(({ first }) => first())\n"],"names":["then","first"],"mappings":"AAAA,sKAAkBA,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE,GAAKA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js index 57808ee287e2..f7aadec5c5cf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js @@ -1,5 +1,4 @@ -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js [test] (ecmascript)", ((__turbopack_context__) => { +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -12,7 +11,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; const second = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$nested_async_availability$2f$input$2f$shared$2e$js__$5b$test$5d$__$28$ecmascript$29$__["shared"]; const loadThird = ()=>__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript, async loader)"); -}), -]; +})]; //# sourceMappingURL=1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js.map index d0fa3dd4b5d4..345f5c77fddb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_second_0y5twtlc0uf9g.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js"],"sourcesContent":["import { shared } from './shared'\n\nexport const second = shared\nexport const loadThird = () => import('./third')\n"],"names":["second","loadThird"],"mappings":";;;;;;AAAA;;AAEO,MAAMA,SAAS,2NAAM;AACrB,MAAMC,YAAY"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/second.js"],"sourcesContent":["import { shared } from './shared'\n\nexport const second = shared\nexport const loadThird = () => import('./third')\n"],"names":["second","loadThird"],"mappings":";;;;;;AAAA;;AAEO,MAAMA,SAAS,2NAAM;AACrB,MAAMC,YAAY"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js index 9b86dbb6d199..b15a05fc5cbe 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js @@ -1,5 +1,4 @@ -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript)", ((__turbopack_context__) => { +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -9,7 +8,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$nested_async_availability$2f$input$2f$shared$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/shared.js [test] (ecmascript)"); ; const third = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$nested_async_availability$2f$input$2f$shared$2e$js__$5b$test$5d$__$28$ecmascript$29$__["shared"]; -}), -]; +})]; //# sourceMappingURL=1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js.map index b935b34e4885..06944bb3c030 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/output/1jsg_tests_snapshot_basic_nested_async_availability_input_third_18lvy7dfhpmum.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js"],"sourcesContent":["import { shared } from './shared'\n\nexport const third = shared\n"],"names":["third"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,2NAAM"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/nested_async_availability/input/third.js"],"sourcesContent":["import { shared } from './shared'\n\nexport const third = shared\n"],"names":["third"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,2NAAM"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js index 2284f0a4af30..eb595768b283 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$shebang$2f$input$2f$node_modules$2f$foo$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js [test] (ecmascript)"); ; (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$shebang$2f$input$2f$node_modules$2f$foo$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["foo"])(true); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,7 +15,6 @@ __turbopack_context__.s([ function foo(value) { console.assert(value); } -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js.map index c647f7cc11f4..4e32b8de66c0 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/output/1do3_crates_turbopack-tests_tests_snapshot_basic_shebang_input_02e38zhtmusm6._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nimport { foo } from 'foo'\n\nfoo(true)\n"],"names":[],"mappings":";AAEA;;AAEA,IAAA,4NAAG,EAAC"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nexport function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAEO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nimport { foo } from 'foo'\n\nfoo(true)\n"],"names":[],"mappings":";AAEA;;AAEA,IAAA,4NAAG,EAAC"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nexport function foo(value) {\n console.assert(value);\n}\n"],"names":["foo","value","console","assert"],"mappings":";;;;AAEO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js index a95d9a5f8fea..96ca739111af 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_basic_single-chunk-entry_input_0085tusi5ga5v._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_basic_single-chunk-entry_input_0085tusi5ga5v._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // `dep1` is reached via `import('./dep1')` and itself dynamically imports @@ -14,8 +13,7 @@ function dep1() { dep2(); }); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep2.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep2.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // Leaf module reached via the nested `import('./dep2')`. @@ -26,8 +24,7 @@ __turbopack_context__.s([ function dep2() { console.log('dep2'); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // Service-worker-style entry: the whole transitive closure (including the // dynamic `import()` targets) must be inlined into a single output file. @@ -35,8 +32,7 @@ console.log('service worker entry'); Promise.resolve().then(()=>__turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js [test] (ecmascript)")).then(({ dep1 })=>{ dep1(); }); -}), -]);(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ +})]);(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ "output/0rv8_turbopack-tests_tests_snapshot_basic_single-chunk-entry_input_1gjyv-zw3163t._.js", {"otherChunks":[],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js [test] (ecmascript)"]} ]); diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js.map index 06f062bff4d5..8f7c0fdad66a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/output/index.entry.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js"],"sourcesContent":["// `dep1` is reached via `import('./dep1')` and itself dynamically imports\n// `dep2` — exercising a nested dynamic-import boundary that must also inline.\nexport function dep1() {\n console.log('dep1')\n import('./dep2').then(({ dep2 }) => {\n dep2()\n })\n}\n"],"names":["dep1","console","log","then","dep2"],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;;;;;AACvE,SAASA;IACdC,QAAQC,GAAG,CAAC;IACZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;QAC7BA;IACF;AACF"}}, - {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep2.js"],"sourcesContent":["// Leaf module reached via the nested `import('./dep2')`.\nexport function dep2() {\n console.log('dep2')\n}\n"],"names":["dep2","console","log"],"mappings":"AAAA,yDAAyD;;;;;AAClD,SAASA;IACdC,QAAQC,GAAG,CAAC;AACd"}}, - {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js"],"sourcesContent":["// Service-worker-style entry: the whole transitive closure (including the\n// dynamic `import()` targets) must be inlined into a single output file.\nconsole.log('service worker entry')\n\nimport('./dep1').then(({ dep1 }) => {\n dep1()\n})\n"],"names":["console","log","then","dep1"],"mappings":"AAAA,0EAA0E;AAC1E,yEAAyE;AACzEA,QAAQC,GAAG,CAAC;AAEZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;IAC7BA;AACF"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js"],"sourcesContent":["// `dep1` is reached via `import('./dep1')` and itself dynamically imports\n// `dep2` — exercising a nested dynamic-import boundary that must also inline.\nexport function dep1() {\n console.log('dep1')\n import('./dep2').then(({ dep2 }) => {\n dep2()\n })\n}\n"],"names":["dep1","console","log","then","dep2"],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;;;;;AACvE,SAASA;IACdC,QAAQC,GAAG,CAAC;IACZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;QAC7BA;IACF;AACF"}}, + {"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep2.js"],"sourcesContent":["// Leaf module reached via the nested `import('./dep2')`.\nexport function dep2() {\n console.log('dep2')\n}\n"],"names":["dep2","console","log"],"mappings":"AAAA,yDAAyD;;;;;AAClD,SAASA;IACdC,QAAQC,GAAG,CAAC;AACd"}}, + {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js"],"sourcesContent":["// Service-worker-style entry: the whole transitive closure (including the\n// dynamic `import()` targets) must be inlined into a single output file.\nconsole.log('service worker entry')\n\nimport('./dep1').then(({ dep1 }) => {\n dep1()\n})\n"],"names":["console","log","then","dep1"],"mappings":"AAAA,0EAA0E;AAC1E,yEAAyE;AACzEA,QAAQC,GAAG,CAAC;AAEZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;IAC7BA;AACF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js index 207d8b4e2ff8..f56964a0d419 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; return __turbopack_context__.a(async (__turbopack_handle_async_dependencies__, __turbopack_async_result__) => { try { @@ -21,8 +20,7 @@ const createUser = async (name)=>{ }); }; __turbopack_async_result__(); -} catch(e) { __turbopack_async_result__(e); } }, false);}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js [test] (ecmascript)", ((__turbopack_context__) => { +} catch(e) { __turbopack_async_result__(e); } }, false);}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; return __turbopack_context__.a(async (__turbopack_handle_async_dependencies__, __turbopack_async_result__) => { try { @@ -48,7 +46,6 @@ const close = ()=>{ console.log('closes the DB connection'); }; __turbopack_async_result__(); -} catch(e) { __turbopack_async_result__(e); } }, true);}), -]);})() +} catch(e) { __turbopack_async_result__(e); } }, true);})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js.map index d49976d4e494..d03e6cf4d4f4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_0zs_dr_r82cwm._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js"],"sourcesContent":["import { dbCall } from './db-connection.js'\n\nexport const createUser = async (name) => {\n const command = `CREATE USER ${name}`\n // This is a normal await, because it's in an async function\n await dbCall({ command })\n}\n"],"names":["createUser","name","command"],"mappings":";;;;AAAA;;;;;;AAEO,MAAMA,aAAa,OAAOC;IAC/B,MAAMC,UAAU,CAAC,YAAY,EAAED,MAAM;IACrC,4DAA4D;IAC5D,MAAM,IAAA,iOAAM,EAAC;QAAEC;IAAQ;AACzB"}}, - {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js"],"sourcesContent":["const connectToDB = async (url) => {\n console.log('connecting to db', url)\n await new Promise((r) => setTimeout(r, 1000))\n}\n\n// This is a top-level-await\nawait connectToDB('my-sql://example.com')\n\nexport const dbCall = async (data) => {\n console.log('dbCall', data)\n // This is a normal await, because it's in an async function\n await new Promise((r) => setTimeout(r, 100))\n return 'fake data'\n}\n\nexport const close = () => {\n console.log('closes the DB connection')\n}\n"],"names":["connectToDB","url","console","log","Promise","r","setTimeout","dbCall","data","close"],"mappings":";;;;;;AAAA,MAAMA,cAAc,OAAOC;IACzBC,QAAQC,GAAG,CAAC,oBAAoBF;IAChC,MAAM,IAAIG,QAAQ,CAACC,IAAMC,WAAWD,GAAG;AACzC;AAEA,4BAA4B;AAC5B,MAAML,YAAY;AAEX,MAAMO,SAAS,OAAOC;IAC3BN,QAAQC,GAAG,CAAC,UAAUK;IACtB,4DAA4D;IAC5D,MAAM,IAAIJ,QAAQ,CAACC,IAAMC,WAAWD,GAAG;IACvC,OAAO;AACT;AAEO,MAAMI,QAAQ;IACnBP,QAAQC,GAAG,CAAC;AACd"}}] + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js"],"sourcesContent":["import { dbCall } from './db-connection.js'\n\nexport const createUser = async (name) => {\n const command = `CREATE USER ${name}`\n // This is a normal await, because it's in an async function\n await dbCall({ command })\n}\n"],"names":["createUser","name","command"],"mappings":";;;;AAAA;;;;;;AAEO,MAAMA,aAAa,OAAOC;IAC/B,MAAMC,UAAU,CAAC,YAAY,EAAED,MAAM;IACrC,4DAA4D;IAC5D,MAAM,IAAA,iOAAM,EAAC;QAAEC;IAAQ;AACzB"}}, + {"offset": {"line": 26, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js"],"sourcesContent":["const connectToDB = async (url) => {\n console.log('connecting to db', url)\n await new Promise((r) => setTimeout(r, 1000))\n}\n\n// This is a top-level-await\nawait connectToDB('my-sql://example.com')\n\nexport const dbCall = async (data) => {\n console.log('dbCall', data)\n // This is a normal await, because it's in an async function\n await new Promise((r) => setTimeout(r, 100))\n return 'fake data'\n}\n\nexport const close = () => {\n console.log('closes the DB connection')\n}\n"],"names":["connectToDB","url","console","log","Promise","r","setTimeout","dbCall","data","close"],"mappings":";;;;;;AAAA,MAAMA,cAAc,OAAOC;IACzBC,QAAQC,GAAG,CAAC,oBAAoBF;IAChC,MAAM,IAAIG,QAAQ,CAACC,IAAMC,WAAWD,GAAG;AACzC;AAEA,4BAA4B;AAC5B,MAAML,YAAY;AAEX,MAAMO,SAAS,OAAOC;IAC3BN,QAAQC,GAAG,CAAC,UAAUK;IACtB,4DAA4D;IAC5D,MAAM,IAAIJ,QAAQ,CAACC,IAAMC,WAAWD,GAAG;IACvC,OAAO;AACT;AAEO,MAAMI,QAAQ;IACnBP,QAAQC,GAAG,CAAC;AACd"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js index 853aa529a2b7..fb301e488888 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/Actions.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/Actions.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,8 +21,7 @@ const AlternativeCreateUserAction = async (name)=>{ } // Note: Using await import() at top-level doesn't make much sense // except in rare cases. It will import modules sequentially. ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -33,7 +31,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo await (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$top$2d$level$2d$await$2f$input$2f$Actions$2e$js__$5b$test$5d$__$28$ecmascript$29$__["CreateUserAction"])('John'); console.log('created user John'); })(); -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js.map index 4e119b8adeee..96b79ab6363e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1do3_crates_turbopack-tests_tests_snapshot_basic_top-level-await_input_1ih204k-kik67._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/Actions.js"],"sourcesContent":["// import() doesn't care about whether a module is an async module or not\nconst UserApi = import('./UserAPI.js')\n\nexport const CreateUserAction = async (name) => {\n console.log('Creating user', name)\n // These are normal awaits, because they are in an async function\n const { createUser } = await UserApi\n await createUser(name)\n}\n\n// You can place import() where you like\n// Placing it at top-level will start loading and evaluating on\n// module evaluation.\n// see CreateUserAction above\n// Here: Connecting to the DB starts when the application starts\n// Placing it inside of an (async) function will start loading\n// and evaluating when the function is called for the first time\n// which basically makes it lazy-loaded.\n// see AlternativeCreateUserAction below\n// Here: Connecting to the DB starts when AlternativeCreateUserAction\n// is called\nexport const AlternativeCreateUserAction = async (name) => {\n const { createUser } = await import('./UserAPI.js')\n await createUser(name)\n}\n\n// Note: Using await import() at top-level doesn't make much sense\n// except in rare cases. It will import modules sequentially.\n"],"names":["UserApi","CreateUserAction","name","console","log","createUser","AlternativeCreateUserAction"],"mappings":";;;;;;AAAA,yEAAyE;AACzE,MAAMA;AAEC,MAAMC,mBAAmB,OAAOC;IACrCC,QAAQC,GAAG,CAAC,iBAAiBF;IAC7B,iEAAiE;IACjE,MAAM,EAAEG,UAAU,EAAE,GAAG,MAAML;IAC7B,MAAMK,WAAWH;AACnB;AAaO,MAAMI,8BAA8B,OAAOJ;IAChD,MAAM,EAAEG,UAAU,EAAE,GAAG;IACvB,MAAMA,WAAWH;AACnB,EAEA,kEAAkE;CAClE,mEAAmE"}}, - {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/index.js"],"sourcesContent":["import { CreateUserAction } from './Actions.js'\n;(async () => {\n await CreateUserAction('John')\n console.log('created user John')\n})()\n"],"names":["console","log"],"mappings":";AAAA;;AACC,CAAC;IACA,MAAM,IAAA,kOAAgB,EAAC;IACvBA,QAAQC,GAAG,CAAC;AACd,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/Actions.js"],"sourcesContent":["// import() doesn't care about whether a module is an async module or not\nconst UserApi = import('./UserAPI.js')\n\nexport const CreateUserAction = async (name) => {\n console.log('Creating user', name)\n // These are normal awaits, because they are in an async function\n const { createUser } = await UserApi\n await createUser(name)\n}\n\n// You can place import() where you like\n// Placing it at top-level will start loading and evaluating on\n// module evaluation.\n// see CreateUserAction above\n// Here: Connecting to the DB starts when the application starts\n// Placing it inside of an (async) function will start loading\n// and evaluating when the function is called for the first time\n// which basically makes it lazy-loaded.\n// see AlternativeCreateUserAction below\n// Here: Connecting to the DB starts when AlternativeCreateUserAction\n// is called\nexport const AlternativeCreateUserAction = async (name) => {\n const { createUser } = await import('./UserAPI.js')\n await createUser(name)\n}\n\n// Note: Using await import() at top-level doesn't make much sense\n// except in rare cases. It will import modules sequentially.\n"],"names":["UserApi","CreateUserAction","name","console","log","createUser","AlternativeCreateUserAction"],"mappings":";;;;;;AAAA,yEAAyE;AACzE,MAAMA;AAEC,MAAMC,mBAAmB,OAAOC;IACrCC,QAAQC,GAAG,CAAC,iBAAiBF;IAC7B,iEAAiE;IACjE,MAAM,EAAEG,UAAU,EAAE,GAAG,MAAML;IAC7B,MAAMK,WAAWH;AACnB;AAaO,MAAMI,8BAA8B,OAAOJ;IAChD,MAAM,EAAEG,UAAU,EAAE,GAAG;IACvB,MAAMA,WAAWH;AACnB,EAEA,kEAAkE;CAClE,mEAAmE"}}, + {"offset": {"line": 26, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/index.js"],"sourcesContent":["import { CreateUserAction } from './Actions.js'\n;(async () => {\n await CreateUserAction('John')\n console.log('created user John')\n})()\n"],"names":["console","log"],"mappings":";AAAA;;AACC,CAAC;IACA,MAAM,IAAA,kOAAgB,EAAC;IACvBA,QAAQC,GAAG,CAAC;AACd,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1jsg_tests_snapshot_basic_top-level-await_input_UserAPI_1-a2sx9qemlcl.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1jsg_tests_snapshot_basic_top-level-await_input_UserAPI_1-a2sx9qemlcl.js index 8870e0459776..d6c7c8063cc4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1jsg_tests_snapshot_basic_top-level-await_input_UserAPI_1-a2sx9qemlcl.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/output/1jsg_tests_snapshot_basic_top-level-await_input_UserAPI_1-a2sx9qemlcl.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_top-level-await_input_UserAPI_1-a2sx9qemlcl.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic_top-level-await_input_UserAPI_1-a2sx9qemlcl.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js index b36fca138fc0..3f384a509ac2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js @@ -1,17 +1,14 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$ts$2d$parse$2d$error$2f$input$2f$other$2e$ts__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/other.ts [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/other.ts [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/other.ts [test] (ecmascript)",((__turbopack_context__, module, exports) => { var e = new Error("Could not parse module '[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/other.ts'\n\nCannot assign to this"); e.code = 'MODULE_UNPARSABLE'; throw e; -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js.map index 7d8e2f0300d5..5fa2def0b31d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/output/1do3_crates_turbopack-tests_tests_snapshot_basic_ts-parse-error_input_04t2r94yph8ww._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/index.js"],"sourcesContent":["import './other.ts'\n"],"names":[],"mappings":";AAAA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/ts-parse-error/input/index.js"],"sourcesContent":["import './other.ts'\n"],"names":[],"mappings":";AAAA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_0azj9j3wgo0mj._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_0azj9j3wgo0mj._.js index a26b15f321af..3b175121c36b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_0azj9j3wgo0mj._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_0azj9j3wgo0mj._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_0azj9j3wgo0mj._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_0azj9j3wgo0mj._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,8 +7,7 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js [test] (ecmascript)"); }); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -18,5 +16,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js index 016f920965c0..92afb3862006 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -7,8 +6,7 @@ __turbopack_context__.s([ ()=>a ]); const a = 1; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-b.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-b.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -16,8 +14,7 @@ __turbopack_context__.s([ ()=>b ]); const b = 2; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -29,7 +26,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; const value = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$use$2d$strict$2f$input$2f$all$2d$strict$2d$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a"] + __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$use$2d$strict$2f$input$2f$all$2d$strict$2d$b$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b"]; -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js.map index 406799b6fa9c..4eac0c6e9a8a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1fuq2pc5luz9r._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js"],"sourcesContent":["export const a = 1\n"],"names":["a"],"mappings":";;;;AAAO,MAAMA,IAAI"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-b.js"],"sourcesContent":["export const b = 2\n"],"names":["b"],"mappings":";;;;AAAO,MAAMA,IAAI"}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js"],"sourcesContent":["import { a } from './all-strict-a'\nimport { b } from './all-strict-b'\n\nexport const value = a + b\n"],"names":["value"],"mappings":";;;;AAAA;AACA;;;AAEO,MAAMA,QAAQ,sNAAC,GAAG,sNAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js"],"sourcesContent":["export const a = 1\n"],"names":["a"],"mappings":";;;;AAAO,MAAMA,IAAI"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-b.js"],"sourcesContent":["export const b = 2\n"],"names":["b"],"mappings":";;;;AAAO,MAAMA,IAAI"}}, + {"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js"],"sourcesContent":["import { a } from './all-strict-a'\nimport { b } from './all-strict-b'\n\nexport const value = a + b\n"],"names":["value"],"mappings":";;;;AAAA;AACA;;;AAEO,MAAMA,QAAQ,sNAAC,GAAG,sNAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js index b2f09e1085b7..b4abda9cc41c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js @@ -1,6 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js", -(()=>{"use strict";return[ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js",(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { "use strict"; const strictA = __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js [test] (ecmascript)"); @@ -14,13 +12,11 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh }); console.log('this is CJS', strictA, strictB, sloppy); module.exports = strictA + strictB + sloppy; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { "use strict"; module.exports = 1000; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-b.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-b.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -28,14 +24,11 @@ __turbopack_context__.s([ ()=>__TURBOPACK__default__export__ ]); const __TURBOPACK__default__export__ = 200; -}), -]})(), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/non-strict.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +})]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/non-strict.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { module.exports = function() { return this === globalThis ? 34 : 0; }(); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js.map index 4502eb46c08b..be1b1927c956 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1do3_crates_turbopack-tests_tests_snapshot_basic_use-strict_input_1wmp5yoyw-hht._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/index.js"],"sourcesContent":["'use strict'\n\nconst strictA = require('./strict-a')\nconst strictB = require('./strict-b').default\nconst sloppy = require('./non-strict')\n\nimport('./below-threshold').then(({ value }) => {\n console.log('below threshold', value)\n})\nimport('./all-strict').then(({ value }) => {\n console.log('all strict', value)\n})\n\nconsole.log('this is CJS', strictA, strictB, sloppy)\nmodule.exports = strictA + strictB + sloppy\n"],"names":["strictA","strictB","default","sloppy","then","value","console","log","module","exports"],"mappings":"AAEA,MAAMA;AACN,MAAMC,UAAU,4IAAsBC,OAAO;AAC7C,MAAMC;AAEN,iKAA4BC,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACzCC,QAAQC,GAAG,CAAC,mBAAmBF;AACjC;AACA,4JAAuBD,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACpCC,QAAQC,GAAG,CAAC,cAAcF;AAC5B;AAEAC,QAAQC,GAAG,CAAC,eAAeP,SAASC,SAASE;AAC7CK,OAAOC,OAAO,GAAGT,UAAUC,UAAUE"}}, - {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js"],"sourcesContent":["'use strict'\n\nmodule.exports = 1000\n"],"names":["module","exports"],"mappings":"AAEAA,OAAOC,OAAO,GAAG"}}, - {"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-b.js"],"sourcesContent":["export default 200\n"],"names":[],"mappings":";;;;uCAAe"}}, - {"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/non-strict.js"],"sourcesContent":["module.exports = (function () {\n return this === globalThis ? 34 : 0\n})()\n"],"names":["module","exports","globalThis"],"mappings":"AAAAA,OAAOC,OAAO,GAAG,AAAC;IAChB,OAAO,IAAI,KAAKC,aAAa,KAAK;AACpC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/index.js"],"sourcesContent":["'use strict'\n\nconst strictA = require('./strict-a')\nconst strictB = require('./strict-b').default\nconst sloppy = require('./non-strict')\n\nimport('./below-threshold').then(({ value }) => {\n console.log('below threshold', value)\n})\nimport('./all-strict').then(({ value }) => {\n console.log('all strict', value)\n})\n\nconsole.log('this is CJS', strictA, strictB, sloppy)\nmodule.exports = strictA + strictB + sloppy\n"],"names":["strictA","strictB","default","sloppy","then","value","console","log","module","exports"],"mappings":"AAEA,MAAMA;AACN,MAAMC,UAAU,4IAAsBC,OAAO;AAC7C,MAAMC;AAEN,iKAA4BC,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACzCC,QAAQC,GAAG,CAAC,mBAAmBF;AACjC;AACA,4JAAuBD,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACpCC,QAAQC,GAAG,CAAC,cAAcF;AAC5B;AAEAC,QAAQC,GAAG,CAAC,eAAeP,SAASC,SAASE;AAC7CK,OAAOC,OAAO,GAAGT,UAAUC,UAAUE"}}, + {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js"],"sourcesContent":["'use strict'\n\nmodule.exports = 1000\n"],"names":["module","exports"],"mappings":"AAEAA,OAAOC,OAAO,GAAG"}}, + {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-b.js"],"sourcesContent":["export default 200\n"],"names":[],"mappings":";;;;uCAAe"}}, + {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/non-strict.js"],"sourcesContent":["module.exports = (function () {\n return this === globalThis ? 34 : 0\n})()\n"],"names":["module","exports","globalThis"],"mappings":"AAAAA,OAAOC,OAAO,GAAG,AAAC;IAChB,OAAO,IAAI,KAAKC,aAAa,KAAK;AACpC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js index 8f1aeb5a9e7a..b45ba97f2e8b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -7,7 +6,6 @@ __turbopack_context__.s([ ()=>value ]); const value = 2; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js.map index 787f51fd7237..f8e5d8a176a8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/output/1jsg_tests_snapshot_basic_use-strict_input_below-threshold_1my1mnvsmmqb0.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js"],"sourcesContent":["export const value = 2\n"],"names":["value"],"mappings":";;;;AAAO,MAAMA,QAAQ"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js"],"sourcesContent":["export const value = 2\n"],"names":["value"],"mappings":";;;;AAAO,MAAMA,QAAQ"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js index ad2d297fcea1..b7aa68f79559 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js @@ -1,13 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$define$2d$property$2d$getter$2d$reads$2d$export$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$define$2d$property$2d$getter$2d$reads$2d$export$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // `b`'s getter reads `exports.a`, so `a` is reachable through `b`. That read must // taint the module (nothing dropped), even though only `b` is imported. @@ -26,7 +24,6 @@ Object.defineProperty(exports, 'b', { return exports.a; } }); -}), -]); +})]); //# sourceMappingURL=1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js.map index a4b16277a17d..a08fbdb99d17 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/output/1ngs_js-remove-unused-exports_define-property-getter-reads-export_input_0v-648lm7l0vi._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/index.js"],"sourcesContent":["import { b } from './lib.js'\n\nconsole.log(b)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,sQAAC"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/lib.js"],"sourcesContent":["// `b`'s getter reads `exports.a`, so `a` is reachable through `b`. That read must\n// taint the module (nothing dropped), even though only `b` is imported.\nObject.defineProperty(exports, '__esModule', { value: true })\nObject.defineProperty(exports, 'a', {\n enumerable: true,\n get: function () {\n return 'a-value'\n },\n})\nObject.defineProperty(exports, 'b', {\n enumerable: true,\n get: function () {\n return exports.a\n },\n})\n"],"names":["Object","defineProperty","exports","value","enumerable","get","a"],"mappings":"AAAA,kFAAkF;AAClF,wEAAwE;AACxEA,OAAOC,cAAc,CAACC,SAAS,cAAc;IAAEC,OAAO;AAAK;AAC3DH,OAAOC,cAAc,CAACC,SAAS,KAAK;IAClCE,YAAY;IACZC,KAAK;QACH,OAAO;IACT;AACF;AACAL,OAAOC,cAAc,CAACC,SAAS,KAAK;IAClCE,YAAY;IACZC,KAAK;QACH,OAAOH,QAAQI,CAAC;IAClB;AACF"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/index.js"],"sourcesContent":["import { b } from './lib.js'\n\nconsole.log(b)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,sQAAC"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property-getter-reads-export/input/lib.js"],"sourcesContent":["// `b`'s getter reads `exports.a`, so `a` is reachable through `b`. That read must\n// taint the module (nothing dropped), even though only `b` is imported.\nObject.defineProperty(exports, '__esModule', { value: true })\nObject.defineProperty(exports, 'a', {\n enumerable: true,\n get: function () {\n return 'a-value'\n },\n})\nObject.defineProperty(exports, 'b', {\n enumerable: true,\n get: function () {\n return exports.a\n },\n})\n"],"names":["Object","defineProperty","exports","value","enumerable","get","a"],"mappings":"AAAA,kFAAkF;AAClF,wEAAwE;AACxEA,OAAOC,cAAc,CAACC,SAAS,cAAc;IAAEC,OAAO;AAAK;AAC3DH,OAAOC,cAAc,CAACC,SAAS,KAAK;IAClCE,YAAY;IACZC,KAAK;QACH,OAAO;IACT;AACF;AACAL,OAAOC,cAAc,CAACC,SAAS,KAAK;IAClCE,YAAY;IACZC,KAAK;QACH,OAAOH,QAAQI,CAAC;IAClB;AACF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js index f602f167fd9b..d393e85ee0fa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js @@ -1,13 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$define$2d$property$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$define$2d$property$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // Transpiled-ESM output shape (Babel/TSC/esbuild): the `__esModule` marker and // named exports are declared via `Object.defineProperty(exports, …)`. @@ -21,7 +19,6 @@ Object.defineProperty(exports, 'used', { } }); 0; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js.map index 2f6c354480c9..40f5ecd169ec 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/output/1jsg_tests_snapshot_cjs-remove-unused-exports_define-property_input_1o3aj7mt36bez._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,4OAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/lib.js"],"sourcesContent":["// Transpiled-ESM output shape (Babel/TSC/esbuild): the `__esModule` marker and\n// named exports are declared via `Object.defineProperty(exports, …)`.\nObject.defineProperty(exports, '__esModule', { value: true })\nObject.defineProperty(exports, 'used', {\n enumerable: true,\n get: function () {\n return 'used-value'\n },\n})\nObject.defineProperty(exports, 'unused', {\n enumerable: true,\n get: function () {\n return 'unused-value'\n },\n})\n"],"names":["Object","defineProperty","exports","value","enumerable","get"],"mappings":"AAAA,+EAA+E;AAC/E,sEAAsE;AACtEA,OAAOC,cAAc,CAACC,SAAS,cAAc;IAAEC,OAAO;AAAK;AAC3DH,OAAOC,cAAc,CAACC,SAAS,QAAQ;IACrCE,YAAY;IACZC,KAAK;QACH,OAAO;IACT;AACF"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,4OAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/define-property/input/lib.js"],"sourcesContent":["// Transpiled-ESM output shape (Babel/TSC/esbuild): the `__esModule` marker and\n// named exports are declared via `Object.defineProperty(exports, …)`.\nObject.defineProperty(exports, '__esModule', { value: true })\nObject.defineProperty(exports, 'used', {\n enumerable: true,\n get: function () {\n return 'used-value'\n },\n})\nObject.defineProperty(exports, 'unused', {\n enumerable: true,\n get: function () {\n return 'unused-value'\n },\n})\n"],"names":["Object","defineProperty","exports","value","enumerable","get"],"mappings":"AAAA,+EAA+E;AAC/E,sEAAsE;AACtEA,OAAOC,cAAc,CAACC,SAAS,cAAc;IAAEC,OAAO;AAAK;AAC3DH,OAAOC,cAAc,CAACC,SAAS,QAAQ;IACrCE,YAAY;IACZC,KAAK;QACH,OAAO;IACT;AACF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js index afcd158fe8ee..2635a69a716c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js @@ -1,19 +1,16 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$duplicate$2d$export$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$duplicate$2d$export$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'first'; exports.used = 'second'; 'x'; 'y'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js.map index 595608e06329..6c136e66e4af 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_duplicate-export_input_1js1n6_7d2n0m._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,6OAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/lib.js"],"sourcesContent":["exports.used = 'first'\nexports.used = 'second'\nexports.unused = 'x'\nexports.unused = 'y'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQC,IAAI,GAAG;AACE;AACA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,6OAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/duplicate-export/input/lib.js"],"sourcesContent":["exports.used = 'first'\nexports.used = 'second'\nexports.unused = 'x'\nexports.unused = 'y'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQC,IAAI,GAAG;AACE;AACA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js index 555a6fa373a6..143a0629d7d3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js @@ -1,17 +1,14 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$named$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$named$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; 'unused-value'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js.map index 5325313a7879..ffa18f64f948 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/output/1jsg_tests_snapshot_cjs-remove-unused-exports_named-import_input_0sdv_zxchly9l._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,yOAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,yOAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/named-import/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js index ac13f33a373a..aa2c7a1db772 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js @@ -1,13 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$accessors$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$accessors$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"], __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$accessors$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["usedGetter"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // `module.exports = { … }` with accessor/method exports. Unused getters, setters, // and methods are removed outright — defining one has no side effect. @@ -17,7 +15,6 @@ module.exports = { return 'used-getter'; } }; -}), -]); +})]); //# sourceMappingURL=0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js.map index ab49c8a66fe3..6a8e66335357 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-accessors_input_02qvs873g-8r0._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/index.js"],"sourcesContent":["import { used, usedGetter } from './lib.js'\n\nconsole.log(used, usedGetter)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,wPAAI,EAAE,8PAAU"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/lib.js"],"sourcesContent":["// `module.exports = { … }` with accessor/method exports. Unused getters, setters,\n// and methods are removed outright — defining one has no side effect.\nmodule.exports = {\n used: 'used-value',\n get usedGetter() {\n return 'used-getter'\n },\n get unusedGetter() {\n return 'unused-getter'\n },\n unusedMethod() {\n return 'unused-method'\n },\n}\n"],"names":["module","exports","used","usedGetter"],"mappings":"AAAA,kFAAkF;AAClF,sEAAsE;AACtEA,OAAOC,OAAO,GAAG;IACfC,MAAM;IACN,IAAIC;QACF,OAAO;IACT;AAOF"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/index.js"],"sourcesContent":["import { used, usedGetter } from './lib.js'\n\nconsole.log(used, usedGetter)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,wPAAI,EAAE,8PAAU"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-accessors/input/lib.js"],"sourcesContent":["// `module.exports = { … }` with accessor/method exports. Unused getters, setters,\n// and methods are removed outright — defining one has no side effect.\nmodule.exports = {\n used: 'used-value',\n get usedGetter() {\n return 'used-getter'\n },\n get unusedGetter() {\n return 'unused-getter'\n },\n unusedMethod() {\n return 'unused-method'\n },\n}\n"],"names":["module","exports","used","usedGetter"],"mappings":"AAAA,kFAAkF;AAClF,sEAAsE;AACtEA,OAAOC,OAAO,GAAG;IACfC,MAAM;IACN,IAAIC;QACF,OAAO;IACT;AAOF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js index df7ac0d77653..ecb33d1e55ae 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js @@ -1,13 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$esmodule$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$esmodule$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // `module.exports = { … }` with the `__esModule` interop marker. The marker must // be kept (never dropped) and must set the ESM-interop flag; `unused` still drops. @@ -16,7 +14,6 @@ module.exports = { used: 'used-value', ...void 'unused-value' }; -}), -]); +})]); //# sourceMappingURL=0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js.map index 18af1cca241a..e8ccc8a8aeba 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/output/0p5q_snapshot_cjs-remove-unused-exports_object-literal-esmodule_input_0oqp2-_mvm93v._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,uPAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/lib.js"],"sourcesContent":["// `module.exports = { … }` with the `__esModule` interop marker. The marker must\n// be kept (never dropped) and must set the ESM-interop flag; `unused` still drops.\nmodule.exports = {\n __esModule: true,\n used: 'used-value',\n unused: 'unused-value',\n}\n"],"names":["module","exports","__esModule","used"],"mappings":"AAAA,iFAAiF;AACjF,mFAAmF;AACnFA,OAAOC,OAAO,GAAG;IACfC,YAAY;IACZC,MAAM;YACE;AACV"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,uPAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-esmodule/input/lib.js"],"sourcesContent":["// `module.exports = { … }` with the `__esModule` interop marker. The marker must\n// be kept (never dropped) and must set the ESM-interop flag; `unused` still drops.\nmodule.exports = {\n __esModule: true,\n used: 'used-value',\n unused: 'unused-value',\n}\n"],"names":["module","exports","__esModule","used"],"mappings":"AAAA,iFAAiF;AACjF,mFAAmF;AACnFA,OAAOC,OAAO,GAAG;IACfC,YAAY;IACZC,MAAM;YACE;AACV"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js index 2ae4d8272ac1..204f472636ce 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js @@ -1,13 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$replaces$2d$exports$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$replaces$2d$exports$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"], __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2d$replaces$2d$exports$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["usedLate"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // Discarded by the literal below, so not an export. 'early-value'; @@ -22,7 +20,6 @@ module.exports = { // Exports: `module.exports` is the live object. module.exports.usedLate = 'used-late'; 'unused-late'; -}), -]); +})]); //# sourceMappingURL=154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js.map index 87dee2d6ba87..762b848c7e55 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/output/154e_cjs-remove-unused-exports_object-literal-replaces-exports_input_1f6j47znnw_jy._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/index.js"],"sourcesContent":["import { used, usedLate } from './lib.js'\n\nconsole.log(used, usedLate)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,kQAAI,EAAE,sQAAQ"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/lib.js"],"sourcesContent":["// Discarded by the literal below, so not an export.\nexports.early = 'early-value'\n\nmodule.exports = {\n used: 'used-value',\n unused: 'unused-value',\n}\n\n// Not exports: `exports` and top-level `this` hold the object the literal discarded.\nexports.deadExports = 'dead-exports'\nthis.deadThis = 'dead-this'\nObject.defineProperty(exports, 'deadDefined', { value: 'dead-defined' })\n\n// Exports: `module.exports` is the live object.\nmodule.exports.usedLate = 'used-late'\nmodule.exports.unusedLate = 'unused-late'\n"],"names":["module","exports","used","usedLate"],"mappings":"AAAA,oDAAoD;AACpC;AAEhBA,OAAOC,OAAO,GAAG;IACfC,MAAM;YACE;AACV;AAEA,qFAAqF;AAC/D;AACN;AACuC;AAEvD,gDAAgD;AAChDF,OAAOC,OAAO,CAACE,QAAQ,GAAG;AACE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/index.js"],"sourcesContent":["import { used, usedLate } from './lib.js'\n\nconsole.log(used, usedLate)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,kQAAI,EAAE,sQAAQ"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal-replaces-exports/input/lib.js"],"sourcesContent":["// Discarded by the literal below, so not an export.\nexports.early = 'early-value'\n\nmodule.exports = {\n used: 'used-value',\n unused: 'unused-value',\n}\n\n// Not exports: `exports` and top-level `this` hold the object the literal discarded.\nexports.deadExports = 'dead-exports'\nthis.deadThis = 'dead-this'\nObject.defineProperty(exports, 'deadDefined', { value: 'dead-defined' })\n\n// Exports: `module.exports` is the live object.\nmodule.exports.usedLate = 'used-late'\nmodule.exports.unusedLate = 'unused-late'\n"],"names":["module","exports","used","usedLate"],"mappings":"AAAA,oDAAoD;AACpC;AAEhBA,OAAOC,OAAO,GAAG;IACfC,MAAM;YACE;AACV;AAEA,qFAAqF;AAC/D;AACN;AACuC;AAEvD,gDAAgD;AAChDF,OAAOC,OAAO,CAACE,QAAQ,GAAG;AACE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js index 06acec5e6ec0..5e34f1ab1464 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js @@ -1,13 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"], (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["usedFn"])(), __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$object$2d$literal$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["usedShort"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // Hand-written / transpiled CJS: named exports declared as a whole-object // `module.exports = { … }` literal. An unused data property keeps its value's @@ -26,7 +24,6 @@ module.exports = { return 'unused-fn'; } }; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js.map index 9b654cf8808f..a4014687eda7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/output/1jsg_tests_snapshot_cjs-remove-unused-exports_object-literal_input_0pihkv0kdfy3b._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/index.js"],"sourcesContent":["import { used, usedFn, usedShort } from './lib.js'\n\nconsole.log(used, usedFn(), usedShort)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,2OAAI,EAAE,IAAA,6OAAM,KAAI,gPAAS"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/lib.js"],"sourcesContent":["// Hand-written / transpiled CJS: named exports declared as a whole-object\n// `module.exports = { … }` literal. An unused data property keeps its value's\n// side effects in place via `...(void …)`; an unused shorthand (a plain ident\n// read) is removed outright.\nconst usedShort = 'used-short'\nconst unusedShort = 'unused-short'\nmodule.exports = {\n used: 'used-value',\n unused: 'unused-value',\n usedShort,\n unusedShort,\n usedFn: function () {\n return 'used-fn'\n },\n unusedFn: function () {\n return 'unused-fn'\n },\n}\n"],"names":["usedShort","unusedShort","module","exports","used","usedFn"],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;AAC9E,8EAA8E;AAC9E,6BAA6B;AAC7B,MAAMA,YAAY;AAClB,MAAMC,cAAc;AACpBC,OAAOC,OAAO,GAAG;IACfC,MAAM;YACE;IACRJ;IAEAK,QAAQ;QACN,OAAO;IACT;YACU;QACR,OAAO;IACT;AACF"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/index.js"],"sourcesContent":["import { used, usedFn, usedShort } from './lib.js'\n\nconsole.log(used, usedFn(), usedShort)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,2OAAI,EAAE,IAAA,6OAAM,KAAI,gPAAS"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/object-literal/input/lib.js"],"sourcesContent":["// Hand-written / transpiled CJS: named exports declared as a whole-object\n// `module.exports = { … }` literal. An unused data property keeps its value's\n// side effects in place via `...(void …)`; an unused shorthand (a plain ident\n// read) is removed outright.\nconst usedShort = 'used-short'\nconst unusedShort = 'unused-short'\nmodule.exports = {\n used: 'used-value',\n unused: 'unused-value',\n usedShort,\n unusedShort,\n usedFn: function () {\n return 'used-fn'\n },\n unusedFn: function () {\n return 'unused-fn'\n },\n}\n"],"names":["usedShort","unusedShort","module","exports","used","usedFn"],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;AAC9E,8EAA8E;AAC9E,6BAA6B;AAC7B,MAAMA,YAAY;AAClB,MAAMC,cAAc;AACpBC,OAAOC,OAAO,GAAG;IACfC,MAAM;YACE;IACRJ;IAEAK,QAAQ;QACN,OAAO;IACT;YACU;QACR,OAAO;IACT;AACF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js index 78e9a7e1182e..36920ff479d7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js @@ -1,17 +1,14 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // `require` is aliased, so the require-usage analysis can't recognize the call. // No usage is recorded for it, which must fail open: lib.js keeps *all* its // exports (including `unused`) rather than being narrowed to just `.used`. const myRequire = /*TURBOPACK member replacement*/ __turbopack_context__.t; console.log(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/lib.js [test] (ecmascript)").used); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; exports.unused = 'unused-value'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js.map index 20fd16af3a77..d9fded3c3ea3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-alias_input_1le4zip44rmy6._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/index.js"],"sourcesContent":["// `require` is aliased, so the require-usage analysis can't recognize the call.\n// No usage is recorded for it, which must fail open: lib.js keeps *all* its\n// exports (including `unused`) rather than being narrowed to just `.used`.\nconst myRequire = require\nconsole.log(myRequire('./lib.js').used)\n"],"names":["myRequire","console","log","used"],"mappings":"AAAA,gFAAgF;AAChF,4EAA4E;AAC5E,2EAA2E;AAC3E,MAAMA;AACNC,QAAQC,GAAG,CAAC,8JAAsBC,IAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used","unused"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQE,MAAM,GAAG"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/index.js"],"sourcesContent":["// `require` is aliased, so the require-usage analysis can't recognize the call.\n// No usage is recorded for it, which must fail open: lib.js keeps *all* its\n// exports (including `unused`) rather than being narrowed to just `.used`.\nconst myRequire = require\nconsole.log(myRequire('./lib.js').used)\n"],"names":["myRequire","console","log","used"],"mappings":"AAAA,gFAAgF;AAChF,4EAA4E;AAC5E,2EAA2E;AAC3E,MAAMA;AACNC,QAAQC,GAAG,CAAC,8JAAsBC,IAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-alias/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used","unused"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQE,MAAM,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js index e42490d34560..26e9e908507c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js @@ -1,17 +1,14 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { const lib = __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/lib.js [test] (ecmascript)"); console.log(lib.used); // `lib` also escapes wholesale, so the whole namespace is observable and // nothing may be dropped. globalThis.leaked = lib; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; exports.unused = 'unused-value'; -}), -]); +})]); //# sourceMappingURL=0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js.map index 22c8b9dfa5de..6c1d44b489ab 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/output/0p5q_snapshot_cjs-remove-unused-exports_require-binding-escape_input_0cyfb_1d-bgxt._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/index.js"],"sourcesContent":["const lib = require('./lib.js')\n\nconsole.log(lib.used)\n\n// `lib` also escapes wholesale, so the whole namespace is observable and\n// nothing may be dropped.\nglobalThis.leaked = lib\n"],"names":["lib","console","log","used","globalThis","leaked"],"mappings":"AAAA,MAAMA;AAENC,QAAQC,GAAG,CAACF,IAAIG,IAAI;AAEpB,yEAAyE;AACzE,0BAA0B;AAC1BC,WAAWC,MAAM,GAAGL"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used","unused"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQE,MAAM,GAAG"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/index.js"],"sourcesContent":["const lib = require('./lib.js')\n\nconsole.log(lib.used)\n\n// `lib` also escapes wholesale, so the whole namespace is observable and\n// nothing may be dropped.\nglobalThis.leaked = lib\n"],"names":["lib","console","log","used","globalThis","leaked"],"mappings":"AAAA,MAAMA;AAENC,QAAQC,GAAG,CAACF,IAAIG,IAAI;AAEpB,yEAAyE;AACzE,0BAA0B;AAC1BC,WAAWC,MAAM,GAAGL"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding-escape/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used","unused"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQE,MAAM,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js index 0a3959a3627a..66ba9262aa5d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js @@ -1,15 +1,12 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // `lib` is only ever read via `.used`, so `exports.unused` in lib.js should drop. const lib = __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/lib.js [test] (ecmascript)"); console.log(lib.used); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; 'unused-value'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js.map index 39b778e3d01c..438e98016d5f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-binding_input_17m3k8c6ah59q._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/index.js"],"sourcesContent":["// `lib` is only ever read via `.used`, so `exports.unused` in lib.js should drop.\nconst lib = require('./lib.js')\n\nconsole.log(lib.used)\n"],"names":["lib","console","log","used"],"mappings":"AAAA,kFAAkF;AAClF,MAAMA;AAENC,QAAQC,GAAG,CAACF,IAAIG,IAAI"}}, - {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/index.js"],"sourcesContent":["// `lib` is only ever read via `.used`, so `exports.unused` in lib.js should drop.\nconst lib = require('./lib.js')\n\nconsole.log(lib.used)\n"],"names":["lib","console","log","used"],"mappings":"AAAA,kFAAkF;AAClF,MAAMA;AAENC,QAAQC,GAAG,CAACF,IAAIG,IAAI"}}, + {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-binding/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js index 4ba2d5888af5..9c0836c8f3d6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$require$2d$consumer$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/lib.js [test] (ecmascript)"); @@ -9,12 +8,10 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo const lib = __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/lib.js [test] (ecmascript)"); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$require$2d$consumer$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"], lib.unused); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; exports.unused = 'unused-value'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js.map index 606b06ee7e0d..e01e257f4c58 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-consumer_input_0n4wt13nluf59._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\n// A wholesale `require()` consumer reports `ExportUsage::All`, so the graph must\n// mark every export used and nothing may be dropped.\nconst lib = require('./lib.js')\n\nconsole.log(used, lib.unused)\n"],"names":["lib","console","log","unused"],"mappings":"AAAA;;AAEA,iFAAiF;AACjF,qDAAqD;AACrD,MAAMA;AAENC,QAAQC,GAAG,CAAC,6OAAI,EAAEF,IAAIG,MAAM"}}, - {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used","unused"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQE,MAAM,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\n// A wholesale `require()` consumer reports `ExportUsage::All`, so the graph must\n// mark every export used and nothing may be dropped.\nconst lib = require('./lib.js')\n\nconsole.log(used, lib.unused)\n"],"names":["lib","console","log","unused"],"mappings":"AAAA;;AAEA,iFAAiF;AACjF,qDAAqD;AACrD,MAAMA;AAENC,QAAQC,GAAG,CAAC,6OAAI,EAAEF,IAAIG,MAAM"}}, + {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-consumer/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used","unused"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACfD,QAAQE,MAAM,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js index 0e47dc789c83..c88539d61e17 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js @@ -1,16 +1,13 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // Only `used` is destructured from the require result, so `exports.unused` in // lib.js should be dropped. const { used } = __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/lib.js [test] (ecmascript)"); console.log(used); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; 'unused-value'; -}), -]); +})]); //# sourceMappingURL=0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js.map index d5a0b24c7fe8..ddf55b96fe56 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/output/0p5q_snapshot_cjs-remove-unused-exports_require-destructure_input_12ec97sl6i8yk._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/index.js"],"sourcesContent":["// Only `used` is destructured from the require result, so `exports.unused` in\n// lib.js should be dropped.\nconst { used } = require('./lib.js')\n\nconsole.log(used)\n"],"names":["used","console","log"],"mappings":"AAAA,8EAA8E;AAC9E,4BAA4B;AAC5B,MAAM,EAAEA,IAAI,EAAE;AAEdC,QAAQC,GAAG,CAACF"}}, - {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/index.js"],"sourcesContent":["// Only `used` is destructured from the require result, so `exports.unused` in\n// lib.js should be dropped.\nconst { used } = require('./lib.js')\n\nconsole.log(used)\n"],"names":["used","console","log"],"mappings":"AAAA,8EAA8E;AAC9E,4BAA4B;AAC5B,MAAM,EAAEA,IAAI,EAAE;AAEdC,QAAQC,GAAG,CAACF"}}, + {"offset": {"line": 8, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-destructure/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js index 8da3b59b1119..620bcb31be9b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js @@ -1,15 +1,12 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // Only `.used` is read off the require result, so `exports.unused` in lib.js // should be dropped. console.log(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/lib.js [test] (ecmascript)").used); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { exports.used = 'used-value'; 'unused-value'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js.map index 389a6b73bfc3..140365187507 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/output/1jsg_tests_snapshot_cjs-remove-unused-exports_require-member_input_0l-3bszfyjz-5._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/index.js"],"sourcesContent":["// Only `.used` is read off the require result, so `exports.unused` in lib.js\n// should be dropped.\nconsole.log(require('./lib.js').used)\n"],"names":["console","log","used"],"mappings":"AAAA,6EAA6E;AAC7E,qBAAqB;AACrBA,QAAQC,GAAG,CAAC,+JAAoBC,IAAI"}}, - {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/index.js"],"sourcesContent":["// Only `.used` is read off the require result, so `exports.unused` in lib.js\n// should be dropped.\nconsole.log(require('./lib.js').used)\n"],"names":["console","log","used"],"mappings":"AAAA,6EAA6E;AAC7E,qBAAqB;AACrBA,QAAQC,GAAG,CAAC,+JAAoBC,IAAI"}}, + {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/require-member/input/lib.js"],"sourcesContent":["exports.used = 'used-value'\nexports.unused = 'unused-value'\n"],"names":["exports","used"],"mappings":"AAAAA,QAAQC,IAAI,GAAG;AACE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js index a83a725d3008..af57fb3a6a60 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js @@ -1,17 +1,14 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$this$2d$export$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/lib.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$this$2d$export$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { /*TURBOPACK member replacement*/ __turbopack_context__.e.used = 'used-value'; 'unused-value'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js.map index 88de4a85c1b4..dd6fda52a611 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-export_input_1n3fiwlehrnmp._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,wOAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/lib.js"],"sourcesContent":["this.used = 'used-value'\nthis.unused = 'unused-value'\n"],"names":["used"],"mappings":"AAAA,yDAAKA,IAAI,GAAG;AACE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/index.js"],"sourcesContent":["import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,wOAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-export/input/lib.js"],"sourcesContent":["this.used = 'used-value'\nthis.unused = 'unused-value'\n"],"names":["used"],"mappings":"AAAA,yDAAKA,IAAI,GAAG;AACE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js index ca67eb18aad4..6dac9b29e94e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js @@ -1,20 +1,17 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$this$2d$in$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/lib.js [test] (ecmascript)"); ; console.log((0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cjs$2d$remove$2d$unused$2d$exports$2f$this$2d$in$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["leak"])()); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/lib.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/lib.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // `viaThis` is pure and never imported by name, so it looks droppable. But it is // read through `this` in a top-level arrow — where `this` aliases `exports` — so // the module must be treated as opaque CommonJS and nothing may be dropped. exports.viaThis = 'V'; exports.leak = ()=>/*TURBOPACK member replacement*/ __turbopack_context__.e.viaThis; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js.map index 8104a5c82f56..6f1dd393f573 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/output/1jsg_tests_snapshot_cjs-remove-unused-exports_this-in-arrow_input_0tvvz6jy2b4qm._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/index.js"],"sourcesContent":["import { leak } from './lib.js'\n\nconsole.log(leak())\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,IAAA,6OAAI"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/lib.js"],"sourcesContent":["// `viaThis` is pure and never imported by name, so it looks droppable. But it is\n// read through `this` in a top-level arrow — where `this` aliases `exports` — so\n// the module must be treated as opaque CommonJS and nothing may be dropped.\nexports.viaThis = 'V'\nexports.leak = () => this.viaThis\n"],"names":["exports","viaThis","leak"],"mappings":"AAAA,iFAAiF;AACjF,iFAAiF;AACjF,4EAA4E;AAC5EA,QAAQC,OAAO,GAAG;AAClBD,QAAQE,IAAI,GAAG,IAAM,yDAAKD,OAAO"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/index.js"],"sourcesContent":["import { leak } from './lib.js'\n\nconsole.log(leak())\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,IAAA,6OAAI"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-exports/this-in-arrow/input/lib.js"],"sourcesContent":["// `viaThis` is pure and never imported by name, so it looks droppable. But it is\n// read through `this` in a top-level arrow — where `this` aliases `exports` — so\n// the module must be treated as opaque CommonJS and nothing may be dropped.\nexports.viaThis = 'V'\nexports.leak = () => this.viaThis\n"],"names":["exports","viaThis","leak"],"mappings":"AAAA,iFAAiF;AACjF,iFAAiF;AACjF,4EAA4E;AAC5EA,QAAQC,OAAO,GAAG;AAClBD,QAAQE,IAAI,GAAG,IAAM,yDAAKD,OAAO"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js index 942ec605b824..ab051f3c88ae 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/defineprop-foreign.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/defineprop-foreign.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // A foreign target is observable, so this require is kept. Object.defineProperty(globalThis, 'x', { value: 1 }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // A discarded require becomes `0` when its target is side-effect free. 0; @@ -14,7 +12,6 @@ Object.defineProperty(globalThis, 'x', { 0; __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/defineprop-foreign.js [test] (ecmascript)"); console.log('kept'); -}), -]); +})]); //# sourceMappingURL=154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js.map index ba69b117ce60..0b2338475424 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/output/154e_cjs-remove-unused-imports_bare-require-define-property_input_1qxhvhgit_akf._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/defineprop-foreign.js"],"sourcesContent":["// A foreign target is observable, so this require is kept.\nObject.defineProperty(globalThis, 'x', { value: 1 })\n"],"names":["Object","defineProperty","globalThis","value"],"mappings":"AAAA,2DAA2D;AAC3DA,OAAOC,cAAc,CAACC,YAAY,KAAK;IAAEC,OAAO;AAAE"}}, - {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/index.js"],"sourcesContent":["// A discarded require becomes `0` when its target is side-effect free.\nrequire('./defineprop.js')\nrequire('./assign.js')\nrequire('./barrel.js')\nrequire('./defineprop-foreign.js')\n\nconsole.log('kept')\n"],"names":["console","log"],"mappings":"AAAA,uEAAuE;;;;;AAMvEA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/defineprop-foreign.js"],"sourcesContent":["// A foreign target is observable, so this require is kept.\nObject.defineProperty(globalThis, 'x', { value: 1 })\n"],"names":["Object","defineProperty","globalThis","value"],"mappings":"AAAA,2DAA2D;AAC3DA,OAAOC,cAAc,CAACC,YAAY,KAAK;IAAEC,OAAO;AAAE"}}, + {"offset": {"line": 8, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require-define-property/input/index.js"],"sourcesContent":["// A discarded require becomes `0` when its target is side-effect free.\nrequire('./defineprop.js')\nrequire('./assign.js')\nrequire('./barrel.js')\nrequire('./defineprop-foreign.js')\n\nconsole.log('kept')\n"],"names":["console","log"],"mappings":"AAAA,uEAAuE;;;;;AAMvEA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js index 3b7d2a456c0b..f3a1d3513938 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // The result of this bare require is discarded, and the target is side-effect // free, so the `require(...)` call is replaced with a `0` placeholder (later // removed by minification) instead of loading the module. 0; console.log('kept'); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js.map index 77cca641adc6..b87734f438a1 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/output/1jsg_tests_snapshot_cjs-remove-unused-imports_bare-require_input_index_134e7q6g_05f0.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/input/index.js"],"sourcesContent":["// The result of this bare require is discarded, and the target is side-effect\n// free, so the `require(...)` call is replaced with a `0` placeholder (later\n// removed by minification) instead of loading the module.\nrequire('./pure.js')\n\nconsole.log('kept')\n"],"names":["console","log"],"mappings":"AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,0DAA0D;;AAG1DA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cjs-remove-unused-imports/bare-require/input/index.js"],"sourcesContent":["// The result of this bare require is discarded, and the target is side-effect\n// free, so the `require(...)` call is replaced with a `0` placeholder (later\n// removed by minification) instead of loading the module.\nrequire('./pure.js')\n\nconsole.log('kept')\n"],"names":["console","log"],"mappings":"AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,0DAA0D;;AAG1DA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js index 312adf4a89d5..9b3ca95d1a60 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -33,8 +32,7 @@ if (__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo })(); } console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$attribute$2f$input$2f$non$2d$constant$2e$js__$5b$test$5d$__$28$ecmascript$29$__["nonConstant"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/non-constant.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/non-constant.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -44,8 +42,7 @@ __turbopack_context__.s([ const nonConstant = { v: 1234 }; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/other.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/other.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -56,7 +53,6 @@ __turbopack_context__.s([ ]); const lower = 'lowercase'; const UPPER = 'UPPER'; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js.map index 040c73e5378e..8d9b7db946f8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/output/1jsg_tests_snapshot_comptime_cross-module-attribute_input_0scutbfo13k0p._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/index.js"],"sourcesContent":["import { lower } from './other' with { turbopackConstants: 'true' }\n\nif (lower === 'lowercase') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(lower)\n\nimport { UPPER } from './other' with { turbopackConstants: 'false' }\nif (UPPER === 'UPPER') {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(UPPER)\n\nimport { nonConstant } from './non-constant' with { turbopackConstants: 'true' }\nif (nonConstant.v === 1234) {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(nonConstant)\n"],"names":["console","log","v"],"mappings":";AASA;AAQA;;AAfA,wCAA2B;IACzBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;;AAGX,IAAI,+NAAK,KAAK,SAAS;IACrBD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+NAAK;;AAGjB,IAAI,+OAAW,CAACC,CAAC,KAAK,MAAM;IAC1BF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+OAAW"}}, - {"offset": {"line": 39, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/non-constant.js"],"sourcesContent":["export const nonConstant = { v: 1234 }\n"],"names":["nonConstant","v"],"mappings":";;;;AAAO,MAAMA,cAAc;IAAEC,GAAG;AAAK"}}, - {"offset": {"line": 50, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/other.js"],"sourcesContent":["export const lower = 'lowercase'\n\nexport const UPPER = 'UPPER'\n"],"names":["lower","UPPER"],"mappings":";;;;;;AAAO,MAAMA,QAAQ;AAEd,MAAMC,QAAQ"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/index.js"],"sourcesContent":["import { lower } from './other' with { turbopackConstants: 'true' }\n\nif (lower === 'lowercase') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(lower)\n\nimport { UPPER } from './other' with { turbopackConstants: 'false' }\nif (UPPER === 'UPPER') {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(UPPER)\n\nimport { nonConstant } from './non-constant' with { turbopackConstants: 'true' }\nif (nonConstant.v === 1234) {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(nonConstant)\n"],"names":["console","log","v"],"mappings":";AASA;AAQA;;AAfA,wCAA2B;IACzBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;;AAGX,IAAI,+NAAK,KAAK,SAAS;IACrBD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+NAAK;;AAGjB,IAAI,+OAAW,CAACC,CAAC,KAAK,MAAM;IAC1BF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+OAAW"}}, + {"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/non-constant.js"],"sourcesContent":["export const nonConstant = { v: 1234 }\n"],"names":["nonConstant","v"],"mappings":";;;;AAAO,MAAMA,cAAc;IAAEC,GAAG;AAAK"}}, + {"offset": {"line": 47, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/other.js"],"sourcesContent":["export const lower = 'lowercase'\n\nexport const UPPER = 'UPPER'\n"],"names":["lower","UPPER"],"mappings":";;;;;;AAAO,MAAMA,QAAQ;AAEd,MAAMC,QAAQ"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js index d285fa720f31..3b87307d405e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -16,8 +15,7 @@ if ("TURBOPACK compile-time truthy", 1) { } else //TURBOPACK unreachable ; console.log(("TURBOPACK compile-time value", "barrel")); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/library/runtime.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/library/runtime.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -27,7 +25,6 @@ __turbopack_context__.s([ function foo() { return 123; } -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js.map index d6c6bf766d84..707e09c0ea4e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-barrel_input_0pg1--73_0gbu._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/index.js"],"sourcesContent":["import { SOME_VALUE, BARREL_VALUE, foo } from './library'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\nconsole.log(foo())\n\nif (BARREL_VALUE === 'barrel') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(BARREL_VALUE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEXD,QAAQC,GAAG,CAAC,IAAA,uOAAG;AAEf,wCAA+B;IAC7BD,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG"}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/library/runtime.js"],"sourcesContent":["export function foo() {\n return 123\n}\n"],"names":["foo"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/index.js"],"sourcesContent":["import { SOME_VALUE, BARREL_VALUE, foo } from './library'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\nconsole.log(foo())\n\nif (BARREL_VALUE === 'barrel') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(BARREL_VALUE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEXD,QAAQC,GAAG,CAAC,IAAA,uOAAG;AAEf,wCAA+B;IAC7BD,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG"}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/library/runtime.js"],"sourcesContent":["export function foo() {\n return 123\n}\n"],"names":["foo"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js index 6b5aa9a3d4e1..69a9c81c9994 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["ONE"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,8 +15,7 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js [test] (ecmascript)"); ; const ONE = '1' + __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["TWO"]; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -28,7 +25,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js [test] (ecmascript)"); ; const TWO = '2' + __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["ONE"]; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js.map index 8fe233e2906d..d11872126c9e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/output/1jsg_tests_snapshot_comptime_cross-module-cycle-constant_input_13shj11lx78r9._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/index.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nconsole.log(ONE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,6OAAG"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js"],"sourcesContent":["import { TWO } from './multiple-2.js'\n\nexport const ONE = '1' + TWO\n"],"names":["ONE"],"mappings":";;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}, - {"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nexport const TWO = '2' + ONE\n"],"names":["TWO"],"mappings":";;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/index.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nconsole.log(ONE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,6OAAG"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js"],"sourcesContent":["import { TWO } from './multiple-2.js'\n\nexport const ONE = '1' + TWO\n"],"names":["ONE"],"mappings":";;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nexport const TWO = '2' + ONE\n"],"names":["TWO"],"mappings":";;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js index dfd74b0ef09f..d2d5063ec372 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -8,8 +7,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$single$2e$js__$5b$test$5d$__$28$ecmascript$29$__["FOO"], __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["FOO"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -23,8 +21,7 @@ function foo1(left, right) { return (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["FOO"])(left, right); } ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -38,8 +35,7 @@ function foo2(left, right) { return (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["FOO"])(left, right); } ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -53,7 +49,6 @@ function foo1(left, right) { return (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$single$2e$js__$5b$test$5d$__$28$ecmascript$29$__["FOO"])(left, right); } ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js.map index b1f583b4597c..71daece09259 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/output/1jsg_tests_snapshot_comptime_cross-module-cycle-dynamic_input_0y6rllfq_jecq._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/index.js"],"sourcesContent":["import { FOO as FOO_SINGLE } from './single.js'\nimport { FOO as FOO_MULTIPLE } from './multiple-1.js'\n\nconsole.log(FOO_SINGLE, FOO_MULTIPLE)\n"],"names":["console","log"],"mappings":";AAAA;AACA;;;AAEAA,QAAQC,GAAG,CAAC,qOAAU,EAAE,4OAAY"}}, - {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js"],"sourcesContent":["import { FOO as foo } from './multiple-2.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}}, - {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js"],"sourcesContent":["import { FOO as foo } from './multiple-1.js'\nfunction foo2(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo2 as FOO }\n"],"names":["foo2","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}}, - {"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js"],"sourcesContent":["import { FOO as foo } from './single.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,qOAAG,EAACD,MAAMC;AACnB"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/index.js"],"sourcesContent":["import { FOO as FOO_SINGLE } from './single.js'\nimport { FOO as FOO_MULTIPLE } from './multiple-1.js'\n\nconsole.log(FOO_SINGLE, FOO_MULTIPLE)\n"],"names":["console","log"],"mappings":";AAAA;AACA;;;AAEAA,QAAQC,GAAG,CAAC,qOAAU,EAAE,4OAAY"}}, + {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js"],"sourcesContent":["import { FOO as foo } from './multiple-2.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}}, + {"offset": {"line": 26, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js"],"sourcesContent":["import { FOO as foo } from './multiple-1.js'\nfunction foo2(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo2 as FOO }\n"],"names":["foo2","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}}, + {"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js"],"sourcesContent":["import { FOO as foo } from './single.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,qOAAG,EAACD,MAAMC;AACnB"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js index 78f9bdf02719..20587390d854 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -16,8 +15,7 @@ console.log(("TURBOPACK compile-time value", "x")); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$imported$2f$input$2f$third$2e$js__$5b$test$5d$__$28$ecmascript$29$__["IMPORTED_EXPORTED"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$imported$2f$input$2f$third$2e$js__$5b$test$5d$__$28$ecmascript$29$__["REEXPORTED"]); console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$imported$2f$input$2f$other$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$locals$3e$__["USING_IMPORTED_EXPORTED"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/other.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/other.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -32,8 +30,7 @@ const SOME_VALUE = 'x'; ; ; const USING_IMPORTED_EXPORTED = 'x' + __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$imported$2f$input$2f$third$2e$js__$5b$test$5d$__$28$ecmascript$29$__["IMPORTED_EXPORTED"]; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -44,7 +41,6 @@ __turbopack_context__.s([ ]); const REEXPORTED = 'reexported'; const IMPORTED_EXPORTED = 'imported exported'; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js.map index 36be09252741..063fa22fa116 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/output/1jsg_tests_snapshot_comptime_cross-module-imported_input_1h-za4-_ttkv-._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/index.js"],"sourcesContent":["import {\n SOME_VALUE,\n IMPORTED_EXPORTED,\n REEXPORTED,\n USING_IMPORTED_EXPORTED,\n} from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\n// --------------------------------------------------------------------------\n\n// These aren't considered to be constants\nconsole.log(IMPORTED_EXPORTED)\nconsole.log(REEXPORTED)\nconsole.log(USING_IMPORTED_EXPORTED)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAOA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEX,6EAA6E;AAE7E,0CAA0C;AAC1CD,QAAQC,GAAG,CAAC,0OAAiB;AAC7BD,QAAQC,GAAG,CAAC,mOAAU;AACtBD,QAAQC,GAAG,CAAC,gQAAuB"}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/other.js"],"sourcesContent":["export const SOME_VALUE = 'x'\n\nimport { IMPORTED_EXPORTED } from './third'\nexport { IMPORTED_EXPORTED }\nexport { REEXPORTED } from './third'\n\nexport const USING_IMPORTED_EXPORTED = 'x' + IMPORTED_EXPORTED\n"],"names":["SOME_VALUE","USING_IMPORTED_EXPORTED"],"mappings":";;;;;;AAEA;AAFO,MAAMA,aAAa;;;;AAMnB,MAAMC,0BAA0B,MAAM,0OAAiB"}}, - {"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js"],"sourcesContent":["export const REEXPORTED = 'reexported'\nexport const IMPORTED_EXPORTED = 'imported exported'\n"],"names":["REEXPORTED","IMPORTED_EXPORTED"],"mappings":";;;;;;AAAO,MAAMA,aAAa;AACnB,MAAMC,oBAAoB"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/index.js"],"sourcesContent":["import {\n SOME_VALUE,\n IMPORTED_EXPORTED,\n REEXPORTED,\n USING_IMPORTED_EXPORTED,\n} from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\n// --------------------------------------------------------------------------\n\n// These aren't considered to be constants\nconsole.log(IMPORTED_EXPORTED)\nconsole.log(REEXPORTED)\nconsole.log(USING_IMPORTED_EXPORTED)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAOA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEX,6EAA6E;AAE7E,0CAA0C;AAC1CD,QAAQC,GAAG,CAAC,0OAAiB;AAC7BD,QAAQC,GAAG,CAAC,mOAAU;AACtBD,QAAQC,GAAG,CAAC,gQAAuB"}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/other.js"],"sourcesContent":["export const SOME_VALUE = 'x'\n\nimport { IMPORTED_EXPORTED } from './third'\nexport { IMPORTED_EXPORTED }\nexport { REEXPORTED } from './third'\n\nexport const USING_IMPORTED_EXPORTED = 'x' + IMPORTED_EXPORTED\n"],"names":["SOME_VALUE","USING_IMPORTED_EXPORTED"],"mappings":";;;;;;AAEA;AAFO,MAAMA,aAAa;;;;AAMnB,MAAMC,0BAA0B,MAAM,0OAAiB"}}, + {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js"],"sourcesContent":["export const REEXPORTED = 'reexported'\nexport const IMPORTED_EXPORTED = 'imported exported'\n"],"names":["REEXPORTED","IMPORTED_EXPORTED"],"mappings":";;;;;;AAAO,MAAMA,aAAa;AACnB,MAAMC,oBAAoB"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js index 424367ebeabe..209ac45523c0 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -27,8 +26,7 @@ if (__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo throw e; })(); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/other.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/other.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -51,7 +49,6 @@ const LONG_BIG_NUMBER = 21345672345678345678901234567890n; const REGEX = /ab/i; const NAN = NaN; const INFINITY = Infinity; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js.map index 26d14bbced0c..8c853dbd8764 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/output/1jsg_tests_snapshot_comptime_cross-module-long-literals_input_1dlt5gz60hx2n._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/index.js"],"sourcesContent":["import {\n LONG_STRING,\n LONG_NUMBER,\n LONG_BIG_NUMBER,\n REGEX,\n NAN,\n INFINITY,\n} from './other'\n\n// shouldn't inline\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, REGEX)\n\n// TODO ideally would still use for evaluation even though not inlined\nif (LONG_STRING && LONG_NUMBER && LONG_BIG_NUMBER && REGEX) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n\n// TODO ideally would inline NaN and Infinity, but currently doesn't\nif (NAN != undefined && INFINITY) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n"],"names":["console","log","undefined"],"mappings":";AAAA;;AASA,mBAAmB;AACnBA,QAAQC,GAAG,CAAC,4OAAW,EAAE,4OAAW,EAAE,gPAAe,EAAE,sOAAK;AAE5D,sEAAsE;AACtE,IAAI,4OAAW,IAAI,4OAAW,IAAI,gPAAe,IAAI,sOAAK,EAAE;IAC1DD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AAEA,oEAAoE;AACpE,IAAI,oOAAG,IAAIC,aAAa,yOAAQ,EAAE;IAChCF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP"}}, - {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/other.js"],"sourcesContent":["export const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const REGEX = /ab/i\n\nexport const NAN = NaN\n\nexport const INFINITY = Infinity\n"],"names":["LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","REGEX","NAN","NaN","INFINITY","Infinity"],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,QAAQ;AAEd,MAAMC,MAAMC;AAEZ,MAAMC,WAAWC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/index.js"],"sourcesContent":["import {\n LONG_STRING,\n LONG_NUMBER,\n LONG_BIG_NUMBER,\n REGEX,\n NAN,\n INFINITY,\n} from './other'\n\n// shouldn't inline\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, REGEX)\n\n// TODO ideally would still use for evaluation even though not inlined\nif (LONG_STRING && LONG_NUMBER && LONG_BIG_NUMBER && REGEX) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n\n// TODO ideally would inline NaN and Infinity, but currently doesn't\nif (NAN != undefined && INFINITY) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n"],"names":["console","log","undefined"],"mappings":";AAAA;;AASA,mBAAmB;AACnBA,QAAQC,GAAG,CAAC,4OAAW,EAAE,4OAAW,EAAE,gPAAe,EAAE,sOAAK;AAE5D,sEAAsE;AACtE,IAAI,4OAAW,IAAI,4OAAW,IAAI,gPAAe,IAAI,sOAAK,EAAE;IAC1DD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AAEA,oEAAoE;AACpE,IAAI,oOAAG,IAAIC,aAAa,yOAAQ,EAAE;IAChCF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP"}}, + {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/other.js"],"sourcesContent":["export const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const REGEX = /ab/i\n\nexport const NAN = NaN\n\nexport const INFINITY = Infinity\n"],"names":["LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","REGEX","NAN","NaN","INFINITY","Infinity"],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,QAAQ;AAEd,MAAMC,MAAMC;AAEZ,MAAMC,WAAWC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js index 1a3ce7bbc2c4..34a9697b94f9 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -25,8 +24,7 @@ if (__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$strict$2f$input$2f$other$2e$js__$5b$test$5d$__$28$ecmascript$29$__["MISSING"]); ; console.log(("TURBOPACK compile-time value", "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789"), ("TURBOPACK compile-time value", 2.1345672345678348e+31), ("TURBOPACK compile-time value", 21345672345678345678901234567890n), ("TURBOPACK compile-time value", /abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789/i)); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/other.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/other.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -50,7 +48,6 @@ const LONG_STRING = 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvw const LONG_NUMBER = 21345672345678345678901234567890; const LONG_BIG_NUMBER = 21345672345678345678901234567890n; const LONG_REGEX = /abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789/i; -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js.map index 455d925da8db..f01b7f091811 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module-strict_input_0lz7wh6sby-77._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/index.js"],"sourcesContent":["import { SOME_VALUE, NO_CONSTANT, MISSING } from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\n\n// --------------------------------------------------------------------------\n\nif (NO_CONSTANT) {\n console.log('NO_CONSTANT 1')\n} else {\n console.log('NO_CONSTANT 2')\n}\nconsole.log(NO_CONSTANT)\n\n// --------------------------------------------------------------------------\n\nif (MISSING) {\n console.log('MISSING 1')\n} else {\n console.log('MISSING 2')\n}\nconsole.log(MISSING)\n\n// --------------------------------------------------------------------------\n\nimport { LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX } from './other'\n\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAIA,6EAA6E;AAE7E,IAAI,kOAAW,EAAE;IACfD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,kOAAW;AAEvB,6EAA6E;AAE7E,IAAI,8NAAO,EAAE;IACXD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,8NAAO;;AAMnBD,QAAQC,GAAG"}}, - {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/other.js"],"sourcesContent":["'use turbopack: constants'\n\nexport const SOME_VALUE = 'x'\n\nexport const NO_CONSTANT = globalThis.foo\n\nexport const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const LONG_REGEX =\n /abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789/i\n"],"names":["SOME_VALUE","NO_CONSTANT","globalThis","foo","LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","LONG_REGEX"],"mappings":";;;;;;;;;;;;;;AAAA;AAEO,MAAMA,aAAa;AAEnB,MAAMC,cAAcC,WAAWC,GAAG;AAElC,MAAMC,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,aACX"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/index.js"],"sourcesContent":["import { SOME_VALUE, NO_CONSTANT, MISSING } from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\n\n// --------------------------------------------------------------------------\n\nif (NO_CONSTANT) {\n console.log('NO_CONSTANT 1')\n} else {\n console.log('NO_CONSTANT 2')\n}\nconsole.log(NO_CONSTANT)\n\n// --------------------------------------------------------------------------\n\nif (MISSING) {\n console.log('MISSING 1')\n} else {\n console.log('MISSING 2')\n}\nconsole.log(MISSING)\n\n// --------------------------------------------------------------------------\n\nimport { LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX } from './other'\n\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAIA,6EAA6E;AAE7E,IAAI,kOAAW,EAAE;IACfD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,kOAAW;AAEvB,6EAA6E;AAE7E,IAAI,8NAAO,EAAE;IACXD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,8NAAO;;AAMnBD,QAAQC,GAAG"}}, + {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/other.js"],"sourcesContent":["'use turbopack: constants'\n\nexport const SOME_VALUE = 'x'\n\nexport const NO_CONSTANT = globalThis.foo\n\nexport const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const LONG_REGEX =\n /abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789/i\n"],"names":["SOME_VALUE","NO_CONSTANT","globalThis","foo","LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","LONG_REGEX"],"mappings":";;;;;;;;;;;;;;AAAA;AAEO,MAAMA,aAAa;AAEnB,MAAMC,cAAcC,WAAWC,GAAG;AAElC,MAAMC,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,aACX"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js index 9fe087a25d18..c88df6804baa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -15,7 +14,6 @@ if ("TURBOPACK compile-time truthy", 1) { } else //TURBOPACK unreachable ; console.log(("TURBOPACK compile-time value", true)); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js.map index fbabc448647f..1a085cd399ac 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/output/0_9x_turbopack-tests_tests_snapshot_comptime_cross-module_input_index_0c0iaid0_edmx.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/input/index.js"],"sourcesContent":["import { IS_DEV, SOME_VALUE } from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\n// --------------------------------------------------------------------------\n\nif (IS_DEV) {\n console.log('is_dev')\n} else {\n require('./dead-code')\n}\nconsole.log(IS_DEV)\n"],"names":["console","log"],"mappings":";;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEX,6EAA6E;AAE7E,wCAAY;IACVD,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module/input/index.js"],"sourcesContent":["import { IS_DEV, SOME_VALUE } from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\n// --------------------------------------------------------------------------\n\nif (IS_DEV) {\n console.log('is_dev')\n} else {\n require('./dead-code')\n}\nconsole.log(IS_DEV)\n"],"names":["console","log"],"mappings":";;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEX,6EAA6E;AAE7E,wCAAY;IACVD,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js index d223c4ffd602..d9c76cb8f4e2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { if ("TURBOPACK compile-time truthy", 1) { console.log('DEFINED_VALUE'); @@ -71,7 +70,6 @@ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable ; // TODO ideally this would also be inlined console.log(foo); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js.map index 177a4fd54962..e7d433ee076d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_define_input_index_1etshinaudt61.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/input/index.js"],"sourcesContent":["if (DEFINED_VALUE) {\n console.log('DEFINED_VALUE')\n}\n\nif (DEFINED_TRUE) {\n console.log('DEFINED_VALUE')\n}\n\nif (!DEFINED_NULL) {\n console.log('DEFINED_NULL', DEFINED_NULL)\n}\n\nif (DEFINED_INT) {\n console.log('DEFINED_INT', DEFINED_INT)\n}\n\nif (DEFINED_FLOAT) {\n console.log('DEFINED_FLOAT', DEFINED_FLOAT)\n}\n\nif (DEFINED_ARRAY) {\n console.log('DEFINED_ARRAY', DEFINED_ARRAY)\n}\n\nif (DEFINED_EVALUATE) {\n console.log('DEFINED_EVALUATE', DEFINED_EVALUATE)\n}\n\nif (DEFINED_EVALUATE_NESTED) {\n console.log('DEFINED_EVALUATE_NESTED', DEFINED_EVALUATE_NESTED)\n}\n\nif (A.VERY.LONG.DEFINED.VALUE) {\n console.log('A.VERY.LONG.DEFINED.VALUE')\n}\n\nif (process.env.NODE_ENV) {\n console.log('something')\n}\n\nif (process.env.NODE_ENV === 'production') {\n console.log('production')\n}\n\nvar p = process\n\nconsole.log(A.VERY.LONG.DEFINED.VALUE)\nconsole.log(DEFINED_VALUE)\nconsole.log(p.env.NODE_ENV)\n\nif (p.env.NODE_ENV === 'production') {\n console.log('production')\n}\n\np.env.NODE_ENV == 'production'\n ? console.log('production')\n : console.log('development')\n\n// TODO short-circuit is not implemented yet\np.env.NODE_ENV != 'production' && console.log('development')\np.env.NODE_ENV == 'production' && console.log('production')\n\nconsole.log(__dirname)\n\n// Test that WARNED_VALUE triggers a warning but still gets replaced\nconsole.log(WARNED_VALUE)\nif (WARNED_VALUE === 'replacement') {\n console.log('warning replacement works')\n}\n\nif (!('NODE_ENV' in process.env)) {\n console.log('existing')\n}\nconsole.log('NODE_ENV' in process.env)\n\nconst { NODE_ENV: foo } = p.env\nif (foo === 'production') {\n console.log('existing')\n}\n// TODO ideally this would also be inlined\nconsole.log(foo)\n"],"names":["console","log","p","process","NODE_ENV","foo","env"],"mappings":"AAAA,wCAAmB;IACjBA,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAkB;IAChBD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAmB;IACjBD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAiB;IACfD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAmB;IACjBD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAmB;IACjBD,QAAQC,GAAG,CAAC;;;;;;;;;AACd;AAEA,wCAAsB;IACpBD,QAAQC,GAAG,CAAC,qDAzBd,IAAI;AA0BJ;AAEA,wCAA6B;IAC3BD,QAAQC,GAAG,CAAC;;;yCA7Bd,IAAM;;AA8BN;AAEA,wCAA+B;IAC7BD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAA0B;IACxBD,QAAQC,GAAG,CAAC;AACd;AAEA;;AAIA,IAAIC,IAAIC;AAERH,QAAQC,GAAG;;;AACXD,QAAQC,GAAG;AACXD,QAAQC,GAAG;AAEX;;AAIA,sCACI,0BACAD,QAAQC,GAAG,CAAC;AAEhB,4CAA4C;AAC5C,mDAAkB,gBAAgBD,QAAQC,GAAG,CAAC;AAC9C,mDAAkB,gBAAgBD,QAAQC,GAAG,CAAC;AAE9CD,QAAQC,GAAG;AAEX,oEAAoE;AACpED,QAAQC,GAAG;AACX,IAAI,oDAAiB,eAAe;IAClCD,QAAQC,GAAG,CAAC;AACd;AAEA;;AAGAD,QAAQC,GAAG;AAEX,MAAM,EAAEG,UAAUC,GAAG,EAAE,GAAGH,EAAEI,GAAG;AAC/B;;AAGA,0CAA0C;AAC1CN,QAAQC,GAAG,CAACI"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/define/input/index.js"],"sourcesContent":["if (DEFINED_VALUE) {\n console.log('DEFINED_VALUE')\n}\n\nif (DEFINED_TRUE) {\n console.log('DEFINED_VALUE')\n}\n\nif (!DEFINED_NULL) {\n console.log('DEFINED_NULL', DEFINED_NULL)\n}\n\nif (DEFINED_INT) {\n console.log('DEFINED_INT', DEFINED_INT)\n}\n\nif (DEFINED_FLOAT) {\n console.log('DEFINED_FLOAT', DEFINED_FLOAT)\n}\n\nif (DEFINED_ARRAY) {\n console.log('DEFINED_ARRAY', DEFINED_ARRAY)\n}\n\nif (DEFINED_EVALUATE) {\n console.log('DEFINED_EVALUATE', DEFINED_EVALUATE)\n}\n\nif (DEFINED_EVALUATE_NESTED) {\n console.log('DEFINED_EVALUATE_NESTED', DEFINED_EVALUATE_NESTED)\n}\n\nif (A.VERY.LONG.DEFINED.VALUE) {\n console.log('A.VERY.LONG.DEFINED.VALUE')\n}\n\nif (process.env.NODE_ENV) {\n console.log('something')\n}\n\nif (process.env.NODE_ENV === 'production') {\n console.log('production')\n}\n\nvar p = process\n\nconsole.log(A.VERY.LONG.DEFINED.VALUE)\nconsole.log(DEFINED_VALUE)\nconsole.log(p.env.NODE_ENV)\n\nif (p.env.NODE_ENV === 'production') {\n console.log('production')\n}\n\np.env.NODE_ENV == 'production'\n ? console.log('production')\n : console.log('development')\n\n// TODO short-circuit is not implemented yet\np.env.NODE_ENV != 'production' && console.log('development')\np.env.NODE_ENV == 'production' && console.log('production')\n\nconsole.log(__dirname)\n\n// Test that WARNED_VALUE triggers a warning but still gets replaced\nconsole.log(WARNED_VALUE)\nif (WARNED_VALUE === 'replacement') {\n console.log('warning replacement works')\n}\n\nif (!('NODE_ENV' in process.env)) {\n console.log('existing')\n}\nconsole.log('NODE_ENV' in process.env)\n\nconst { NODE_ENV: foo } = p.env\nif (foo === 'production') {\n console.log('existing')\n}\n// TODO ideally this would also be inlined\nconsole.log(foo)\n"],"names":["console","log","p","process","NODE_ENV","foo","env"],"mappings":"AAAA,wCAAmB;IACjBA,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAkB;IAChBD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAmB;IACjBD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAiB;IACfD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAmB;IACjBD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAAmB;IACjBD,QAAQC,GAAG,CAAC;;;;;;;;;AACd;AAEA,wCAAsB;IACpBD,QAAQC,GAAG,CAAC,qDAzBd,IAAI;AA0BJ;AAEA,wCAA6B;IAC3BD,QAAQC,GAAG,CAAC;;;yCA7Bd,IAAM;;AA8BN;AAEA,wCAA+B;IAC7BD,QAAQC,GAAG,CAAC;AACd;AAEA,wCAA0B;IACxBD,QAAQC,GAAG,CAAC;AACd;AAEA;;AAIA,IAAIC,IAAIC;AAERH,QAAQC,GAAG;;;AACXD,QAAQC,GAAG;AACXD,QAAQC,GAAG;AAEX;;AAIA,sCACI,0BACAD,QAAQC,GAAG,CAAC;AAEhB,4CAA4C;AAC5C,mDAAkB,gBAAgBD,QAAQC,GAAG,CAAC;AAC9C,mDAAkB,gBAAgBD,QAAQC,GAAG,CAAC;AAE9CD,QAAQC,GAAG;AAEX,oEAAoE;AACpED,QAAQC,GAAG;AACX,IAAI,oDAAiB,eAAe;IAClCD,QAAQC,GAAG,CAAC;AACd;AAEA;;AAGAD,QAAQC,GAAG;AAEX,MAAM,EAAEG,UAAUC,GAAG,EAAE,GAAGH,EAAEI,GAAG;AAC/B;;AAGA,0CAA0C;AAC1CN,QAAQC,GAAG,CAACI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js index 3024ea10f23c..bb5f7177d7fb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$early$2d$return$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$early$2d$return$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -225,7 +223,6 @@ function r() { z1(); return; z2(); -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js.map index 1af99d975e48..9732bc4785cd 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_early-return_input_00p0fdz0d5nhi._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/index.js"],"sourcesContent":["import * as module from './module'\nconsole.log(module)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAACC"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js"],"sourcesContent":["export function a() {\n if (true) {\n a1()\n return\n }\n a2()\n var a3 = 3\n function a4() {\n var a5\n }\n ;(function a6() {\n var a7\n })\n const a8 = () => {\n var a9\n }\n class a10 {}\n let a11 = 11\n let {\n a12 = 12,\n a14: {\n a15,\n a16: [a17, ...a18],\n },\n ...a19\n } = {}\n function a20() {\n return\n a21()\n }\n ;({\n get a22() {\n var a23\n },\n set a22(value) {\n var a24\n },\n a25() {\n var a26\n },\n })\n {\n let a27\n var a28\n }\n}\n\nexport function b() {\n if (true) {\n b1()\n return\n } else {\n b2()\n }\n b3()\n}\n\nexport function c() {\n if (true) {\n return\n }\n c1()\n}\n\nexport function d() {\n if (true) {\n return\n } else {\n d1()\n }\n d2()\n}\n\nexport function e() {\n if (false) {\n e1()\n } else {\n return\n }\n e2()\n}\n\nexport function f() {\n if (false) {\n } else {\n return\n }\n f1()\n}\n\nexport function g() {\n if (false) {\n g1()\n } else {\n g2()\n return\n }\n g3()\n}\n\nexport function h() {\n if (false) {\n } else {\n h1()\n return\n }\n h2()\n}\n\nexport function i(j) {\n if (j < 1) return i1()\n return i2()\n}\n\nexport function j(j) {\n if (j < 1) {\n return i1()\n }\n return i2()\n}\n\nclass K {\n constructor() {\n try {\n k1()\n } catch (e) {\n k2()\n return\n k3()\n } finally {\n k4()\n }\n k5()\n }\n\n l() {\n try {\n l1()\n } catch (e) {\n l2()\n } finally {\n l3()\n return\n l4()\n }\n l5()\n }\n\n get m() {\n if (true) {\n m1()\n return\n }\n m2()\n }\n\n set m(value) {\n m1()\n return m2()\n m3()\n }\n\n n = () => {\n switch (42) {\n case 1:\n n1()\n return\n n2()\n case 2:\n n3()\n break\n default:\n n4()\n }\n n5()\n }\n\n o() {\n if (something) {\n require('./module')\n return\n } else {\n require('./module')\n return\n }\n }\n}\n\nfunction p() {\n class C {\n constructor() {\n p1()\n return\n p2()\n }\n }\n\n p3()\n return\n p4()\n}\n\nfunction q() {\n while (false) {\n q1()\n return\n q2()\n }\n q3()\n}\n\nfunction r() {\n {\n r1()\n return\n r2()\n }\n r3()\n}\n\nz1()\n\nreturn\n\nz2()\n"],"names":["a","a1","a3","a4","a5","a8","a10","a11","a12","a15","a17","a18","a19","a20","a28","b","b1","c","d","e","f","g","g2","h","h1","i","j","i1","i2","K","k1","k2","k4","k5","l","l1","l2","l3","m","m1","value","m2","n","n1","n3","n4","n5","o","something","p","C","p1","p3","q","q1","q3","r","r1","z1","z2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA;IACd,wCAAU;QACRC;QACA;IACF;;;IAEA,IAAIC;IACJ,SAASC;QACP,IAAIC;IACN;IAIA,MAAMC;IAGAC,IAAAA;IACN,IAAIC;IACJ,IACEC,KAEEC,KACMC,KAAQC,KAEbC;IAEL,SAASC;QACP;;;IAEF;IAcE,IAAIC;AAER;AAEO,SAASC;IACd,wCAAU;QACRC;QACA;IACF;;;;AAIF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;AAEF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;;AAIF;AAEO,SAASC;IACd;;SAEO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd;;SAEO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC,EAAEC,CAAC;IACjB,IAAIA,IAAI,GAAG,OAAOC;IAClB,OAAOC;AACT;AAEO,SAASF,EAAEA,CAAC;IACjB,IAAIA,IAAI,GAAG;QACT,OAAOC;IACT;IACA,OAAOC;AACT;AAEA,MAAMC;IACJA,aAAc;QACZ,IAAI;YACFC;QACF,EAAE,OAAOX,GAAG;YACVY;YACA;;;QAEF,SAAU;YACRC;QACF;QACAC;IACF;IAEAC,IAAI;QACF,IAAI;YACFC;QACF,EAAE,OAAOhB,GAAG;YACViB;QACF,SAAU;YACRC;YACA;;;QAEF;;;IAEF;IAEA,IAAIC,IAAI;QACN,wCAAU;YACRC;YACA;QACF;;;IAEF;IAEA,IAAID,EAAEE,KAAK,EAAE;QACXD;QACA,OAAOE;;;IAET;IAEAC,IAAI;QACF,OAAQ;YACN,KAAK;gBACHC;gBACA;;;YAEF,KAAK;gBACHC;gBACA;YACF;gBACEC;QACJ;QACAC;IACF,EAAC;IAEDC,IAAI;QACF,IAAIC,WAAW;;YAEb;QACF,OAAO;;YAEL;QACF;IACF;AACF;AAEA,SAASC;IACP,MAAMC;QACJA,aAAc;YACZC;YACA;;;QAEF;IACF;IAEAC;IACA;;;AAEF;AAEA,SAASC;IACP,MAAO,MAAO;QACZC;QACA;;;IAEF;IACAC;AACF;AAEA,SAASC;IACP;QACEC;QACA;;;IAEF;;;AAEF;AAEAC;AAEA;AAEAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/index.js"],"sourcesContent":["import * as module from './module'\nconsole.log(module)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAACC"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js"],"sourcesContent":["export function a() {\n if (true) {\n a1()\n return\n }\n a2()\n var a3 = 3\n function a4() {\n var a5\n }\n ;(function a6() {\n var a7\n })\n const a8 = () => {\n var a9\n }\n class a10 {}\n let a11 = 11\n let {\n a12 = 12,\n a14: {\n a15,\n a16: [a17, ...a18],\n },\n ...a19\n } = {}\n function a20() {\n return\n a21()\n }\n ;({\n get a22() {\n var a23\n },\n set a22(value) {\n var a24\n },\n a25() {\n var a26\n },\n })\n {\n let a27\n var a28\n }\n}\n\nexport function b() {\n if (true) {\n b1()\n return\n } else {\n b2()\n }\n b3()\n}\n\nexport function c() {\n if (true) {\n return\n }\n c1()\n}\n\nexport function d() {\n if (true) {\n return\n } else {\n d1()\n }\n d2()\n}\n\nexport function e() {\n if (false) {\n e1()\n } else {\n return\n }\n e2()\n}\n\nexport function f() {\n if (false) {\n } else {\n return\n }\n f1()\n}\n\nexport function g() {\n if (false) {\n g1()\n } else {\n g2()\n return\n }\n g3()\n}\n\nexport function h() {\n if (false) {\n } else {\n h1()\n return\n }\n h2()\n}\n\nexport function i(j) {\n if (j < 1) return i1()\n return i2()\n}\n\nexport function j(j) {\n if (j < 1) {\n return i1()\n }\n return i2()\n}\n\nclass K {\n constructor() {\n try {\n k1()\n } catch (e) {\n k2()\n return\n k3()\n } finally {\n k4()\n }\n k5()\n }\n\n l() {\n try {\n l1()\n } catch (e) {\n l2()\n } finally {\n l3()\n return\n l4()\n }\n l5()\n }\n\n get m() {\n if (true) {\n m1()\n return\n }\n m2()\n }\n\n set m(value) {\n m1()\n return m2()\n m3()\n }\n\n n = () => {\n switch (42) {\n case 1:\n n1()\n return\n n2()\n case 2:\n n3()\n break\n default:\n n4()\n }\n n5()\n }\n\n o() {\n if (something) {\n require('./module')\n return\n } else {\n require('./module')\n return\n }\n }\n}\n\nfunction p() {\n class C {\n constructor() {\n p1()\n return\n p2()\n }\n }\n\n p3()\n return\n p4()\n}\n\nfunction q() {\n while (false) {\n q1()\n return\n q2()\n }\n q3()\n}\n\nfunction r() {\n {\n r1()\n return\n r2()\n }\n r3()\n}\n\nz1()\n\nreturn\n\nz2()\n"],"names":["a","a1","a3","a4","a5","a8","a10","a11","a12","a15","a17","a18","a19","a20","a28","b","b1","c","d","e","f","g","g2","h","h1","i","j","i1","i2","K","k1","k2","k4","k5","l","l1","l2","l3","m","m1","value","m2","n","n1","n3","n4","n5","o","something","p","C","p1","p3","q","q1","q3","r","r1","z1","z2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA;IACd,wCAAU;QACRC;QACA;IACF;;;IAEA,IAAIC;IACJ,SAASC;QACP,IAAIC;IACN;IAIA,MAAMC;IAGAC,IAAAA;IACN,IAAIC;IACJ,IACEC,KAEEC,KACMC,KAAQC,KAEbC;IAEL,SAASC;QACP;;;IAEF;IAcE,IAAIC;AAER;AAEO,SAASC;IACd,wCAAU;QACRC;QACA;IACF;;;;AAIF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;AAEF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;;AAIF;AAEO,SAASC;IACd;;SAEO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd;;SAEO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC,EAAEC,CAAC;IACjB,IAAIA,IAAI,GAAG,OAAOC;IAClB,OAAOC;AACT;AAEO,SAASF,EAAEA,CAAC;IACjB,IAAIA,IAAI,GAAG;QACT,OAAOC;IACT;IACA,OAAOC;AACT;AAEA,MAAMC;IACJA,aAAc;QACZ,IAAI;YACFC;QACF,EAAE,OAAOX,GAAG;YACVY;YACA;;;QAEF,SAAU;YACRC;QACF;QACAC;IACF;IAEAC,IAAI;QACF,IAAI;YACFC;QACF,EAAE,OAAOhB,GAAG;YACViB;QACF,SAAU;YACRC;YACA;;;QAEF;;;IAEF;IAEA,IAAIC,IAAI;QACN,wCAAU;YACRC;YACA;QACF;;;IAEF;IAEA,IAAID,EAAEE,KAAK,EAAE;QACXD;QACA,OAAOE;;;IAET;IAEAC,IAAI;QACF,OAAQ;YACN,KAAK;gBACHC;gBACA;;;YAEF,KAAK;gBACHC;gBACA;YACF;gBACEC;QACJ;QACAC;IACF,EAAC;IAEDC,IAAI;QACF,IAAIC,WAAW;;YAEb;QACF,OAAO;;YAEL;QACF;IACF;AACF;AAEA,SAASC;IACP,MAAMC;QACJA,aAAc;YACZC;YACA;;;QAEF;IACF;IAEAC;IACA;;;AAEF;AAEA,SAASC;IACP,MAAO,MAAO;QACZC;QACA;;;IAEF;IACAC;AACF;AAEA,SAASC;IACP;QACEC;QACA;;;IAEF;;;AAEF;AAEAC;AAEA;AAEAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js index 682647ba4b7d..b9e8123947b2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js @@ -1,6 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js", -(()=>{"use strict";return[ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-automatic.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js",(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-automatic.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -25,8 +23,7 @@ console.log('typeof module', ("TURBOPACK compile-time value", "undefined")); console.log('typeof exports', ("TURBOPACK compile-time value", "undefined")); // ESM, should be require stub console.log(/*TURBOPACK member replacement*/ __turbopack_context__.z); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-specified.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-specified.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -49,8 +46,7 @@ console.log('typeof module', ("TURBOPACK compile-time value", "undefined")); console.log('typeof exports', ("TURBOPACK compile-time value", "undefined")); // ESM, should be require stub console.log(/*TURBOPACK member replacement*/ __turbopack_context__.z); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -60,9 +56,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -]})(), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/cjs.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +})]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/cjs.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { var __TURBOPACK__import$2e$meta__ = { get url () { @@ -83,10 +77,8 @@ console.log('typeof module', ("TURBOPACK compile-time value", "object")); console.log('typeof exports', ("TURBOPACK compile-time value", "object")); // CJS, should be real require console.log(/*TURBOPACK member replacement*/ __turbopack_context__.t); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/dep.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/dep.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js.map index 5e5d8604722c..008c990f6b95 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/1do3_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_1y4b353ijz1yk._.js.map @@ -2,9 +2,9 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-automatic.js"],"sourcesContent":["import './dep.js'\n\nconsole.log('typeof require', typeof require)\nconsole.log('typeof import.meta', typeof import.meta)\n// ESM, should be `undefined`\nconsole.log('typeof module', typeof module)\nconsole.log('typeof exports', typeof exports)\n\n// ESM, should be require stub\nconsole.log(require)\n"],"names":["console","log"],"mappings":";AAAA;;;;;;;;;;;;;;AAEAA,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AACZ,6BAA6B;AAC7BD,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AAEZ,8BAA8B;AAC9BD,QAAQC,GAAG"}}, - {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-specified.mjs"],"sourcesContent":["console.log('typeof require', typeof require)\nconsole.log('typeof import.meta', typeof import.meta)\n// ESM, should be `undefined`\nconsole.log('typeof module', typeof module)\nconsole.log('typeof exports', typeof exports)\n\n// ESM, should be require stub\nconsole.log(require)\n"],"names":["console","log"],"mappings":";;;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AACZ,6BAA6B;AAC7BD,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AAEZ,8BAA8B;AAC9BD,QAAQC,GAAG"}}, - {"offset": {"line": 55, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/index.js"],"sourcesContent":["import './cjs.js'\nimport './esm-automatic.js'\nimport './esm-specified.mjs'\n"],"names":[],"mappings":";AAAA;AACA;AACA"}}, - {"offset": {"line": 66, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/cjs.js"],"sourcesContent":["console.log('typeof require', typeof require)\nconsole.log('typeof import.meta', typeof import.meta)\n// CJS, should be `object`\nconsole.log('typeof module', typeof module)\nconsole.log('typeof exports', typeof exports)\n\n// CJS, should be real require\nconsole.log(require)\n"],"names":["console","log"],"mappings":";;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AACZ,0BAA0B;AAC1BD,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AAEZ,8BAA8B;AAC9BD,QAAQC,GAAG"}}, - {"offset": {"line": 88, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-automatic.js"],"sourcesContent":["import './dep.js'\n\nconsole.log('typeof require', typeof require)\nconsole.log('typeof import.meta', typeof import.meta)\n// ESM, should be `undefined`\nconsole.log('typeof module', typeof module)\nconsole.log('typeof exports', typeof exports)\n\n// ESM, should be require stub\nconsole.log(require)\n"],"names":["console","log"],"mappings":";AAAA;;;;;;;;;;;;;;AAEAA,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AACZ,6BAA6B;AAC7BD,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AAEZ,8BAA8B;AAC9BD,QAAQC,GAAG"}}, + {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-specified.mjs"],"sourcesContent":["console.log('typeof require', typeof require)\nconsole.log('typeof import.meta', typeof import.meta)\n// ESM, should be `undefined`\nconsole.log('typeof module', typeof module)\nconsole.log('typeof exports', typeof exports)\n\n// ESM, should be require stub\nconsole.log(require)\n"],"names":["console","log"],"mappings":";;;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AACZ,6BAA6B;AAC7BD,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AAEZ,8BAA8B;AAC9BD,QAAQC,GAAG"}}, + {"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/index.js"],"sourcesContent":["import './cjs.js'\nimport './esm-automatic.js'\nimport './esm-specified.mjs'\n"],"names":[],"mappings":";AAAA;AACA;AACA"}}, + {"offset": {"line": 60, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/cjs.js"],"sourcesContent":["console.log('typeof require', typeof require)\nconsole.log('typeof import.meta', typeof import.meta)\n// CJS, should be `object`\nconsole.log('typeof module', typeof module)\nconsole.log('typeof exports', typeof exports)\n\n// CJS, should be real require\nconsole.log(require)\n"],"names":["console","log"],"mappings":";;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AACZ,0BAA0B;AAC1BD,QAAQC,GAAG,CAAC;AACZD,QAAQC,GAAG,CAAC;AAEZ,8BAA8B;AAC9BD,QAAQC,GAAG"}}, + {"offset": {"line": 81, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js index adfe0e45b333..de1504994d23 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js.map index ec80008bc219..f89d7b7e9b37 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/1jsg_tests_snapshot_css_absolute-uri-import_input_index_1_zsn0ifr-p54.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js index a265daf2681c..7288ff02934a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js.map index ec80008bc219..f89d7b7e9b37 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/0_9x_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_1rf1vtlk4s4b5.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js index eca59ca75d74..cd4e73d0e37f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js @@ -1,11 +1,9 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; console.log('css-legacy-nesting'); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js.map index 96526088e41e..fea8630ccca1 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/output/0_9x_turbopack-tests_tests_snapshot_css_css-legacy-nesting_input_index_1mehjwlmz_6b4.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/input/index.js"],"sourcesContent":["import './style.css'\n\nconsole.log('css-legacy-nesting')\n"],"names":["console","log"],"mappings":";;AAEAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-legacy-nesting/input/index.js"],"sourcesContent":["import './style.css'\n\nconsole.log('css-legacy-nesting')\n"],"names":["console","log"],"mappings":";;AAEAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js index 1aa850023d76..5302c6e2d3d3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js @@ -1,18 +1,15 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$css$2f$css$2d$modules$2f$input$2f$style$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$css$2f$css$2d$modules$2f$input$2f$style$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__["default"], __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module, async loader)")); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "module-style": "cu3fEW_module-style", }); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js.map index 684c77d667b8..eb35776d495d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1do3_crates_turbopack-tests_tests_snapshot_css_css-modules_input_0ppd-98kcgm8s._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/index.js"],"sourcesContent":["import style from './style.module.css'\n\nconsole.log(style, import('./style.module.css'))\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,0NAAK"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"module-style\": \"cu3fEW_module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/index.js"],"sourcesContent":["import style from './style.module.css'\n\nconsole.log(style, import('./style.module.css'))\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,0NAAK"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"module-style\": \"cu3fEW_module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1jsg_tests_snapshot_css_css-modules_input_style_module_css_0gx4jdqopuu5r._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1jsg_tests_snapshot_css_css-modules_input_style_module_css_0gx4jdqopuu5r._.js index 19a19eb91953..940a7fa1bc5e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1jsg_tests_snapshot_css_css-modules_input_style_module_css_0gx4jdqopuu5r._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/output/1jsg_tests_snapshot_css_css-modules_input_style_module_css_0gx4jdqopuu5r._.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_css_css-modules_input_style_module_css_0gx4jdqopuu5r._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_css_css-modules_input_style_module_css_0gx4jdqopuu5r._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.resolve().then(() => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css-modules/input/style.module.css [test] (css module)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/1-no_foo_style_css_0f25r0omi5r7z._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/1-no_foo_style_css_0f25r0omi5r7z._.js index e36766140697..ee2ce18cc58d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/1-no_foo_style_css_0f25r0omi5r7z._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/1-no_foo_style_css_0f25r0omi5r7z._.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1-no_foo_style_css_0f25r0omi5r7z._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css [test] (css, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1-no_foo_style_css_0f25r0omi5r7z._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.resolve(); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js index f91b77b4aa9f..49445bf87051 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -11,14 +10,12 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$css$2f$css$2f$input$2f$style$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__["default"], __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$css$2f$css$2f$input$2f$node_modules$2f$foo$2f$style$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__["default"], __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css [test] (css, async loader)")); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "foo-module-style": "CEkn7G_foo-module-style", }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "another-composed-module-style": "Iu_hLa_another-composed-module-style" + " " + __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)")["foo-module-style"], @@ -26,7 +23,6 @@ __turbopack_context__.v({ "inner": "Iu_hLa_inner", "module-style": "Iu_hLa_module-style", }); -}), -]); +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js.map index 74daaeff2d3b..9da9aee4217b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/css/output/turbopack_crates_turbopack-tests_tests_snapshot_css_css_input_1f3bnvictpga4._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/index.js"],"sourcesContent":["import 'foo/style.css'\nimport 'foo'\nimport './style.css'\nimport fooStyle from 'foo/style.module.css'\nimport style from './style.module.css'\n\nconsole.log(style, fooStyle, import('foo'))\n"],"names":["console","log"],"mappings":";AAGA;AACA;;;;;;AAEAA,QAAQC,GAAG,CAAC,+MAAK,EAAE,sOAAQ"}}, - {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"foo-module-style\": \"CEkn7G_foo-module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA","ignoreList":[0]}}, - {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"another-composed-module-style\": \"Iu_hLa_another-composed-module-style\" + \" \" + __turbopack_context__.i(\"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)\")[\"foo-module-style\"],\n \"composed-module-style\": \"Iu_hLa_composed-module-style\" + \" \" + __turbopack_context__.i(\"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)\")[\"foo-module-style\"],\n \"inner\": \"Iu_hLa_inner\",\n \"module-style\": \"Iu_hLa_module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/index.js"],"sourcesContent":["import 'foo/style.css'\nimport 'foo'\nimport './style.css'\nimport fooStyle from 'foo/style.module.css'\nimport style from './style.module.css'\n\nconsole.log(style, fooStyle, import('foo'))\n"],"names":["console","log"],"mappings":";AAGA;AACA;;;;;;AAEAA,QAAQC,GAAG,CAAC,+MAAK,EAAE,sOAAQ"}}, + {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"foo-module-style\": \"CEkn7G_foo-module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA","ignoreList":[0]}}, + {"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"another-composed-module-style\": \"Iu_hLa_another-composed-module-style\" + \" \" + __turbopack_context__.i(\"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)\")[\"foo-module-style\"],\n \"composed-module-style\": \"Iu_hLa_composed-module-style\" + \" \" + __turbopack_context__.i(\"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)\")[\"foo-module-style\"],\n \"inner\": \"Iu_hLa_inner\",\n \"module-style\": \"Iu_hLa_module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js index 8cb298abacce..ce24cded40e8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/1.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/2.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/x.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/y.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/i.css [test] (css, async loader)"); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js.map index f89d7b7e9b37..cde83552ee40 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_0h88o8aghj5nb.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1g4njlv5u3qmb._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1g4njlv5u3qmb._.js index 2fcbaeaf0a54..1a4091c43041 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1g4njlv5u3qmb._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1g4njlv5u3qmb._.js @@ -1,42 +1,36 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1g4njlv5u3qmb._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/1.css [test] (css, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1g4njlv5u3qmb._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/1.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_1bavt21vfaz-i._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/2.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/2.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_12589gjjfnvuk._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/i.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/i.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_0g-9o_3fzmgut._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/x.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/x.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_0haqs7v0c4uwe._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/y.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/y.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_0_3amcsjcftc3._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js index d8fc04b61eb5..9cdfe6f8eafe 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js @@ -1,9 +1,7 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/1.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/2.css [test] (css, async loader)"); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js.map index f89d7b7e9b37..cde83552ee40 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/1do3_crates_turbopack-tests_tests_snapshot_css_cycle2_input_index_1jfnc6g2j7bji.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_0vrbe2d-ccp52._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_0vrbe2d-ccp52._.js index 331ce39313f5..c31b862bf47c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_0vrbe2d-ccp52._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_0vrbe2d-ccp52._.js @@ -1,18 +1,15 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_0vrbe2d-ccp52._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/1.css [test] (css, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_0vrbe2d-ccp52._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/1.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_1civrsoz2_6jr._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/2.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle2/input/2.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle2_input_1pm9un5_dbnmk._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js index 4cacc3c4f65f..80365b0fc4e2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,13 +6,11 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$css$2f$embed$2d$url$2f$input$2f$style$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__["default"], __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module, async loader)"), __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.css [test] (css, async loader)")); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "module-style": "_3oVw9q_module-style", }); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js.map index 71892590ac1e..5c82aab0da84 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_12dqxgxwmwtgt._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/index.js"],"sourcesContent":["import style from './style.module.css'\nimport './style.css'\n\nconsole.log(style, import('./style.module.css'), import('./style.css'))\n"],"names":["console","log"],"mappings":";AAAA;;;AAGAA,QAAQC,GAAG,CAAC,wNAAK"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"module-style\": \"_3oVw9q_module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/index.js"],"sourcesContent":["import style from './style.module.css'\nimport './style.css'\n\nconsole.log(style, import('./style.module.css'), import('./style.css'))\n"],"names":["console","log"],"mappings":";AAAA;;;AAGAA,QAAQC,GAAG,CAAC,wNAAK"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"module-style\": \"_3oVw9q_module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_18z01simfreml._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_18z01simfreml._.js index ada19cf59bfa..85b9af5b5dcf 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_18z01simfreml._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_18z01simfreml._.js @@ -1,16 +1,13 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_18z01simfreml._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.css [test] (css, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_embed-url_input_18z01simfreml._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.resolve(); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.resolve().then(() => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/embed-url/input/style.module.css [test] (css module)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js index 75157f8c7a05..fc614ad930d9 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js.map index ec80008bc219..f89d7b7e9b37 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/import-url/output/1do3_crates_turbopack-tests_tests_snapshot_css_import-url_input_index_0gylb-1e3gzyl.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js index 9265693e9c5a..3fccb81391cb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js.map index ec80008bc219..f89d7b7e9b37 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/protocol-dependent-import/output/1jsg_tests_snapshot_css_protocol-dependent-import_input_index_0g7z0m_9creke.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js index 0d274c6e23fe..4b906fcacb85 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js.map index ec80008bc219..f89d7b7e9b37 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/1jsg_tests_snapshot_css_relative-uri-import_input_index_0vurzyh4-9kno.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js index 59d8086e417e..12436b72d6f3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/entry.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/b1.css [test] (css, async loader)"); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/entry2.css [test] (css, async loader)"); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js.map index f89d7b7e9b37..cde83552ee40 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/0_9x_turbopack-tests_tests_snapshot_css_split-shared_input_index_1liedlhczucbh.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0gxqja8goibuj._.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0gxqja8goibuj._.js index 945c4ea1c954..d3bdf7c97478 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0gxqja8goibuj._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0gxqja8goibuj._.js @@ -1,26 +1,22 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0gxqja8goibuj._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/b1.css [test] (css, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0gxqja8goibuj._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/b1.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_0t1sbapvyy76s._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/entry.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/entry.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_1pdq4bjbhb13m._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/entry2.css [test] (css, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/split-shared/input/entry2.css [test] (css, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ "output/1do3_crates_turbopack-tests_tests_snapshot_css_split-shared_input_1v4k8hqn976oi._.css" ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {}); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js b/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js index 27d50dd0c586..ad02182c274f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js.map index ec80008bc219..f89d7b7e9b37 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/1jsg_tests_snapshot_css_url-in-supports-query_input_index_20mywk30dlppj.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js index 09feec760bb0..7ce62d01c1a7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js @@ -1,18 +1,15 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cssmodules$2f$composes$2f$input$2f$index$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.module.css [test] (css module)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "className": "H6xp9G_className", "subClass": "H6xp9G_subClass" + " " + "H6xp9G_className", }); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js.map index 1c95f16f93c8..0cc1d5b4c250 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/output/1do3_crates_turbopack-tests_tests_snapshot_cssmodules_composes_input_0-092p2ojcgki._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.js"],"sourcesContent":["import { subClass } from './index.module.css'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"className\": \"H6xp9G_className\",\n \"subClass\": \"H6xp9G_subClass\" + \" \" + \"H6xp9G_className\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.js"],"sourcesContent":["import { subClass } from './index.module.css'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 8, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/composes/input/index.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"className\": \"H6xp9G_className\",\n \"subClass\": \"H6xp9G_subClass\" + \" \" + \"H6xp9G_className\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js index 72c7b820a9f5..005e57ea0a49 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js @@ -1,23 +1,19 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$cssmodules$2f$relative$2d$uri$2d$import$2f$input$2f$index$2e$module$2e$css__$5b$test$5d$__$28$css__module$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.module.css [test] (css module)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "bar": "jZ0vmq_bar" + " " + __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)")["foo"], }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)",((__turbopack_context__) => { __turbopack_context__.v({ "foo": "NjlEuq_foo", }); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js.map index e86fdd2c103e..126270ff83b6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/output/1jsg_tests_snapshot_cssmodules_relative-uri-import_input_0hybzimbac5hb._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.js"],"sourcesContent":["import { foo } from './index.module.css'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"bar\": \"jZ0vmq_bar\" + \" \" + __turbopack_context__.i(\"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)\")[\"foo\"],\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}, - {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"foo\": \"NjlEuq_foo\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.js"],"sourcesContent":["import { foo } from './index.module.css'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 8, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/index.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"bar\": \"jZ0vmq_bar\" + \" \" + __turbopack_context__.i(\"[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)\")[\"foo\"],\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}, + {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/cssmodules/relative-uri-import/input/other.module.css [test] (css module)"],"sourcesContent":["__turbopack_context__.v({\n \"foo\": \"NjlEuq_foo\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js index 65b1b2ecae1c..e02189296ee4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js @@ -1,10 +1,8 @@ -;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3886622e-6a1d-add7-4a6e-670daa59c0b2")}catch(e){}}(); -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="900fc8b5-ed55-17de-8ead-a1724430d901")}catch(e){}}(); +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('Hello World'); -}), -]); +})]); -//# debugId=3886622e-6a1d-add7-4a6e-670daa59c0b2 +//# debugId=900fc8b5-ed55-17de-8ead-a1724430d901 //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js.map index fb7e90125bf9..5a82be27257b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": [], - "debugId": "3886622e-6a1d-add7-4a6e-670daa59c0b2", + "debugId": "900fc8b5-ed55-17de-8ead-a1724430d901", "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js"],"sourcesContent":["console.log('Hello World')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js"],"sourcesContent":["console.log('Hello World')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js index 6bac2a9e42f2..763ec44cfa97 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js @@ -1,10 +1,8 @@ -;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3d97c2d1-90e5-a3ef-c710-5c78b21b3b3a")}catch(e){}}(); -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8de32807-0098-cc2d-1846-01a8f5817828")}catch(e){}}(); +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('Hello World'); -}), -]; +})]; -//# debugId=3d97c2d1-90e5-a3ef-c710-5c78b21b3b3a +//# debugId=8de32807-0098-cc2d-1846-01a8f5817828 //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js.map index dce312050dc3..5025ed9cd088 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/output/1do3_crates_turbopack-tests_tests_snapshot_debug-ids_node_input_index_1gqemi9q9l5m7.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": [], - "debugId": "3d97c2d1-90e5-a3ef-c710-5c78b21b3b3a", + "debugId": "8de32807-0098-cc2d-1846-01a8f5817828", "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["../../../../../../../../turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/input/index.js"],"sourcesContent":["console.log('Hello World')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["../../../../../../../../turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/node/input/index.js"],"sourcesContent":["console.log('Hello World')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js b/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js index 683f3656da26..249ae026961f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -39,7 +38,6 @@ Promise.resolve().then(()=>{ __TURBOPACK__url__external__node$3a$fs__["default"].readFileSync(unknown); (0, __TURBOPACK__url__external__node$3a$fs__["readFileSync"])(unknown); new URL(unknown, __TURBOPACK__import$2e$meta__.url); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js.map index 530a5947e9c1..92901eac2bfe 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/output/1jsg_tests_snapshot_dynamic-request_very-dynamic_input_index_045hiyc-eq2av.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/input/index.js"],"sourcesContent":["import child_process from 'node:child_process'\nimport fs, { readFileSync } from 'node:fs'\n\nconst unknown = Math.random()\n\nchild_process.spawnSync(unknown)\nchild_process.spawnSync('node', unknown)\nchild_process.spawnSync('node', [unknown, unknown])\n\nrequire(unknown)\n\nimport(unknown)\n\nfs.readFileSync(unknown)\nreadFileSync(unknown)\n\nnew URL(unknown, import.meta.url)\n"],"names":["unknown","Math","random","spawnSync","readFileSync","URL","url"],"mappings":";AAAA;AACA;;;;;;;;;;;;;;;AAEA,MAAMA,UAAUC,KAAKC,MAAM;AAE3B,8DAAa,CAACC,SAAS,CAACH;AACxB,8DAAa,CAACG,SAAS,CAAC,QAAQH;AAChC,8DAAa,CAACG,SAAS,CAAC,QAAQ;IAACH;IAASA;CAAQ;;;;;;;;;;;AAMlD,mDAAE,CAACI,YAAY,CAACJ;AAChB,IAAA,wDAAY,EAACA;AAEb,IAAIK,IAAIL,SAAS,8BAAYM,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/dynamic-request/very-dynamic/input/index.js"],"sourcesContent":["import child_process from 'node:child_process'\nimport fs, { readFileSync } from 'node:fs'\n\nconst unknown = Math.random()\n\nchild_process.spawnSync(unknown)\nchild_process.spawnSync('node', unknown)\nchild_process.spawnSync('node', [unknown, unknown])\n\nrequire(unknown)\n\nimport(unknown)\n\nfs.readFileSync(unknown)\nreadFileSync(unknown)\n\nnew URL(unknown, import.meta.url)\n"],"names":["unknown","Math","random","spawnSync","readFileSync","URL","url"],"mappings":";AAAA;AACA;;;;;;;;;;;;;;;AAEA,MAAMA,UAAUC,KAAKC,MAAM;AAE3B,8DAAa,CAACC,SAAS,CAACH;AACxB,8DAAa,CAACG,SAAS,CAAC,QAAQH;AAChC,8DAAa,CAACG,SAAS,CAAC,QAAQ;IAACH;IAASA;CAAQ;;;;;;;;;;;AAMlD,mDAAE,CAACI,YAAY,CAACJ;AAChB,IAAA,wDAAY,EAACA;AAEb,IAAIK,IAAIL,SAAS,8BAAYM,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js b/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js index 14607400d5cb..c92e21ded9b2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js @@ -1,6 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js", -(()=>{"use strict";return[ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js",(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -26,8 +24,7 @@ function ClassNameButton({ children }) { }, this); } console.log(StyledButton, ClassNameButton); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -37,8 +34,7 @@ __turbopack_context__.s([ function jsx() { return 'purposefully empty stub for @emotion/react/index.js'; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -48,13 +44,10 @@ __turbopack_context__.s([ function jsxDEV() { return 'purposefully empty stub for @emotion/react/jsx-dev-runtime.js'; } -}), -]})(), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/styled/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +})]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/styled/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { "purposefully empty stub"; "@emtion/styled/index.js"; -}), -]); +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js.map index 4f3001656b9f..98586ce5f0a2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/output/turbopack_crates_turbopack-tests_tests_snapshot_1xzb8pohmqk06._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/input/index.js"],"sourcesContent":["/** @jsxImportSource @emotion/react */\n\nimport { jsx } from '@emotion/react'\nimport styled from '@emotion/styled'\n\nconst StyledButton = styled.button`\n background: blue;\n`\n\nfunction ClassNameButton({ children }) {\n return (\n \n {children}\n \n )\n}\n\nconsole.log(StyledButton, ClassNameButton)\n"],"names":["StyledButton","ClassNameButton","children","className","css","console","log"],"mappings":";;AAAA,oCAAoC,GAEpC;AACA;;;;AAEA,MAAMA,iCAAe,mNAAM;;;AAI3B,SAASC,gBAAgB,EAAEC,QAAQ,EAAE;IACnC,qBACE,uOAAC;QACCC,WAAWC,GAAG,CAAC;;MAEf,CAAC;kBAEAF;;;;;;AAGP;AAEAG,QAAQC,GAAG,CAACN,cAAcC"}}, - {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js"],"sourcesContent":["export function jsx() {\n return 'purposefully empty stub for @emotion/react/index.js'\n}\n"],"names":["jsx"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, - {"offset": {"line": 43, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js"],"sourcesContent":["export function jsxDEV() {\n return 'purposefully empty stub for @emotion/react/jsx-dev-runtime.js'\n}\n"],"names":["jsxDEV"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, - {"offset": {"line": 54, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/styled/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/styled/index.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/input/index.js"],"sourcesContent":["/** @jsxImportSource @emotion/react */\n\nimport { jsx } from '@emotion/react'\nimport styled from '@emotion/styled'\n\nconst StyledButton = styled.button`\n background: blue;\n`\n\nfunction ClassNameButton({ children }) {\n return (\n \n {children}\n \n )\n}\n\nconsole.log(StyledButton, ClassNameButton)\n"],"names":["StyledButton","ClassNameButton","children","className","css","console","log"],"mappings":";;AAAA,oCAAoC,GAEpC;AACA;;;;AAEA,MAAMA,iCAAe,mNAAM;;;AAI3B,SAASC,gBAAgB,EAAEC,QAAQ,EAAE;IACnC,qBACE,uOAAC;QACCC,WAAWC,GAAG,CAAC;;MAEf,CAAC;kBAEAF;;;;;;AAGP;AAEAG,QAAQC,GAAG,CAACN,cAAcC"}}, + {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js"],"sourcesContent":["export function jsx() {\n return 'purposefully empty stub for @emotion/react/index.js'\n}\n"],"names":["jsx"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, + {"offset": {"line": 39, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js"],"sourcesContent":["export function jsxDEV() {\n return 'purposefully empty stub for @emotion/react/jsx-dev-runtime.js'\n}\n"],"names":["jsxDEV"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, + {"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/styled/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/styled/index.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js b/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js index b74909139214..9034c68420be 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/.env/.env.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/.env/.env.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { var env = process.env = { ...process.env @@ -8,13 +7,11 @@ env["ALLFOOBAR"] = foobarfoobar; env["BARFOO"] = barfoo; env["FOO"] = foo; env["FOOBAR"] = foobar; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log(process.env.FOOBAR); console.log(process.env.BARFOO); console.log(process.env.ALLFOOBAR); -}), -]); +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js.map index 5e359981c4fc..ee7aef156dab 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/env/env/output/turbopack_crates_turbopack-tests_tests_snapshot_env_env_input_13-d6v3a4ad9k._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/.env/.env.js"],"sourcesContent":["var env = process.env = {...process.env};\n\nenv[\"ALLFOOBAR\"] = foobarfoobar;\nenv[\"BARFOO\"] = barfoo;\nenv[\"FOO\"] = foo;\nenv[\"FOOBAR\"] = foobar;\n"],"names":["env","process","foobarfoobar","barfoo","foo","foobar"],"mappings":"AAAA,IAAIA,MAAMC,QAAQD,GAAG,GAAG;IAAC,GAAGC,QAAQD,GAAG;AAAA;AAEvCA,GAAG,CAAC,YAAY,GAAGE;AACnBF,GAAG,CAAC,SAAS,GAAGG;AAChBH,GAAG,CAAC,MAAM,GAAGI;AACbJ,GAAG,CAAC,SAAS,GAAGK"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/index.js"],"sourcesContent":["console.log(process.env.FOOBAR)\nconsole.log(process.env.BARFOO)\nconsole.log(process.env.ALLFOOBAR)\n"],"names":["console","log","process","env","FOOBAR","BARFOO","ALLFOOBAR"],"mappings":"AAAAA,QAAQC,GAAG,CAACC,QAAQC,GAAG,CAACC,MAAM;AAC9BJ,QAAQC,GAAG,CAACC,QAAQC,GAAG,CAACE,MAAM;AAC9BL,QAAQC,GAAG,CAACC,QAAQC,GAAG,CAACG,SAAS"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/.env/.env.js"],"sourcesContent":["var env = process.env = {...process.env};\n\nenv[\"ALLFOOBAR\"] = foobarfoobar;\nenv[\"BARFOO\"] = barfoo;\nenv[\"FOO\"] = foo;\nenv[\"FOOBAR\"] = foobar;\n"],"names":["env","process","foobarfoobar","barfoo","foo","foobar"],"mappings":"AAAA,IAAIA,MAAMC,QAAQD,GAAG,GAAG;IAAC,GAAGC,QAAQD,GAAG;AAAA;AAEvCA,GAAG,CAAC,YAAY,GAAGE;AACnBF,GAAG,CAAC,SAAS,GAAGG;AAChBH,GAAG,CAAC,MAAM,GAAGI;AACbJ,GAAG,CAAC,SAAS,GAAGK"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/env/env/input/index.js"],"sourcesContent":["console.log(process.env.FOOBAR)\nconsole.log(process.env.BARFOO)\nconsole.log(process.env.ALLFOOBAR)\n"],"names":["console","log","process","env","FOOBAR","BARFOO","ALLFOOBAR"],"mappings":"AAAAA,QAAQC,GAAG,CAACC,QAAQC,GAAG,CAACC,MAAM;AAC9BJ,QAAQC,GAAG,CAACC,QAAQC,GAAG,CAACE,MAAM;AAC9BL,QAAQC,GAAG,CAACC,QAAQC,GAAG,CAACG,SAAS"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js b/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js index 75fd7f0a1b6d..25f34ea66752 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('hello world'); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js.map index 4c717fd20448..378a5ff80330 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/output/1jsg_tests_snapshot_evaluated_entrry_runtime_entry_input_index_0cujr-g-b3ldc.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/input/index.js"],"sourcesContent":["console.log('hello world')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/evaluated_entrry/runtime_entry/input/index.js"],"sourcesContent":["console.log('hello world')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js b/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js index 4f67b0f7d847..7f80803a3a1c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/example/example/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/example/example/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('hello world'); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js.map index 612496691d66..809496a10842 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/example/example/output/1do3_crates_turbopack-tests_tests_snapshot_example_example_input_index_0kyk3-0o_0aya.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/example/example/input/index.js"],"sourcesContent":["console.log('hello world')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/example/example/input/index.js"],"sourcesContent":["console.log('hello world')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js index 722dee691639..13a082bdf641 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js @@ -1,6 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js", -(()=>{"use strict";return[ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js",(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], undefined, true); @@ -9,8 +7,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo // as there are properties dynamically added by __turbopack__cjs__ in c.js __turbopack_context__.j(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$2$2f$input$2f$c$2e$js__$5b$test$5d$__$28$ecmascript$29$__); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/c.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/c.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], undefined, true); @@ -18,8 +15,7 @@ __turbopack_context__.s([], undefined, true); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$2$2f$input$2f$commonjs$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/commonjs.js [test] (ecmascript)"); // This would be handled by existing logic __turbopack_context__.j(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$2$2f$input$2f$commonjs$2e$js__$5b$test$5d$__$28$ecmascript$29$__); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -27,13 +23,10 @@ __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$2$2f$input$2f$b$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$2$2f$input$2f$b$2e$js__$5b$test$5d$__$28$ecmascript$29$__); -}), -]})(), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/commonjs.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +})]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/commonjs.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // commonjs.js exports.hello = 'World'; -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js.map index 00ecb5f4cc8e..7ccc36629161 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/output/1do3_crates_turbopack-tests_tests_snapshot_export-alls_cjs-2_input_212xd9jyjh6hy._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js"],"sourcesContent":["// b.js\nexport * from './c'\n// This would not be handled, but still need __turbopack__cjs__\n// as there are properties dynamically added by __turbopack__cjs__ in c.js\n"],"names":[],"mappings":";AAAA,OAAO;AACP,kVACA,+DAA+D;CAC/D,0EAA0E"}}, - {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/c.js"],"sourcesContent":["// c.js\nexport * from './commonjs.js'\n// This would be handled by existing logic\n"],"names":[],"mappings":";AAAA,OAAO;AACP,gWACA,0CAA0C"}}, - {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/index.js"],"sourcesContent":["// a.js\nimport * as B from './b'\nconsole.log(B)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js [test] (ecmascript)"],"mappings":";AAAA,OAAO;AACP;;AACAA,QAAQC,GAAG,CAACC"}}, - {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/commonjs.js"],"sourcesContent":["// commonjs.js\nexports.hello = 'World'\n"],"names":["exports","hello"],"mappings":"AAAA,cAAc;AACdA,QAAQC,KAAK,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js"],"sourcesContent":["// b.js\nexport * from './c'\n// This would not be handled, but still need __turbopack__cjs__\n// as there are properties dynamically added by __turbopack__cjs__ in c.js\n"],"names":[],"mappings":";AAAA,OAAO;AACP,kVACA,+DAA+D;CAC/D,0EAA0E"}}, + {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/c.js"],"sourcesContent":["// c.js\nexport * from './commonjs.js'\n// This would be handled by existing logic\n"],"names":[],"mappings":";AAAA,OAAO;AACP,gWACA,0CAA0C"}}, + {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/index.js"],"sourcesContent":["// a.js\nimport * as B from './b'\nconsole.log(B)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/b.js [test] (ecmascript)"],"mappings":";AAAA,OAAO;AACP;;AACAA,QAAQC,GAAG,CAACC"}}, + {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-2/input/commonjs.js"],"sourcesContent":["// commonjs.js\nexports.hello = 'World'\n"],"names":["exports","hello"],"mappings":"AAAA,cAAc;AACdA,QAAQC,KAAK,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js index 949ed3e8a300..926d4a84ee12 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js @@ -1,20 +1,11 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/exported.cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { - -module.exports = { - foo: 1, - bar: 2 -}; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$script$2f$input$2f$mod$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$script$2f$input$2f$mod$2e$js__$5b$test$5d$__$28$ecmascript$29$__); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], undefined, true); @@ -22,7 +13,12 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo __turbopack_context__.j(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$export$2d$alls$2f$cjs$2d$script$2f$input$2f$exported$2e$cjs__$5b$test$5d$__$28$ecmascript$29$__); ; console.log('Hoist test'); -}), -]); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/exported.cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { + +module.exports = { + foo: 1, + bar: 2 +}; +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js.map index a7857108dea9..0db89285a033 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/output/0_9x_turbopack-tests_tests_snapshot_export-alls_cjs-script_input_1iakubv8s_k6_._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/exported.cjs"],"sourcesContent":["module.exports = { foo: 1, bar: 2 }\n"],"names":["module","exports","foo","bar"],"mappings":"AAAAA,OAAOC,OAAO,GAAG;IAAEC,KAAK;IAAGC,KAAK;AAAE"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/index.js"],"sourcesContent":["import * as foo from './mod.js'\n\nconsole.log(foo)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js [test] (ecmascript)"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAACC"}}, - {"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js"],"sourcesContent":["export * from './exported.cjs'\n\nconsole.log('Hoist test')\n"],"names":["console","log"],"mappings":";AAAA;;;AAEAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/index.js"],"sourcesContent":["import * as foo from './mod.js'\n\nconsole.log(foo)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js [test] (ecmascript)"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAACC"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/mod.js"],"sourcesContent":["export * from './exported.cjs'\n\nconsole.log('Hoist test')\n"],"names":["console","log"],"mappings":";AAAA;;;AAEAA,QAAQC,GAAG,CAAC"}}, + {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/export-alls/cjs-script/input/exported.cjs"],"sourcesContent":["module.exports = { foo: 1, bar: 2 }\n"],"names":["module","exports","foo","bar"],"mappings":"AAAAA,OAAOC,OAAO,GAAG;IAAEC,KAAK;IAAGC,KAAK;AAAE"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js index b6ad1d324597..fa05bd876e06 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$import$2d$meta$2f$cjs$2f$input$2f$mod$2e$cjs__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/mod.cjs [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/mod.cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/mod.cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { var __TURBOPACK__import$2e$meta__ = { get url () { @@ -21,7 +19,6 @@ var __TURBOPACK__import$2e$meta__ = { } }; console.log(__TURBOPACK__import$2e$meta__.url); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js.map index a4ebf790c002..ff2e07107f75 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_cjs_input_1uw7l3k8h_a9a._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/index.js"],"sourcesContent":["import './mod.cjs'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/mod.cjs"],"sourcesContent":["console.log(import.meta.url);\n"],"names":["console","log","url"],"mappings":";;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC,8BAAYC,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/index.js"],"sourcesContent":["import './mod.cjs'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 8, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/cjs/input/mod.cjs"],"sourcesContent":["console.log(import.meta.url);\n"],"names":["console","log","url"],"mappings":";;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC,8BAAYC,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js index 9263864ab473..42fd938c9f70 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js @@ -1,12 +1,10 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$import$2d$meta$2f$esm$2d$multiple$2f$input$2f$mod$2e$mjs__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/mod.mjs [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/mod.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/mod.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -30,7 +28,6 @@ function bar() { } foo(); bar(); -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js.map index c115d97b044a..4314a0f03893 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-multiple_input_0__oir9q6_sm5._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/mod.mjs"],"sourcesContent":["function foo() {\n console.log(import.meta.url)\n}\nfunction bar() {\n console.log(import.meta.url)\n}\n\nfoo()\nbar()\n"],"names":["foo","console","log","url","bar"],"mappings":";;;;;;;;;;;;;AAAA,SAASA;IACPC,QAAQC,GAAG,CAAC,8BAAYC,GAAG;AAC7B;AACA,SAASC;IACPH,QAAQC,GAAG,CAAC,8BAAYC,GAAG;AAC7B;AAEAH;AACAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-multiple/input/mod.mjs"],"sourcesContent":["function foo() {\n console.log(import.meta.url)\n}\nfunction bar() {\n console.log(import.meta.url)\n}\n\nfoo()\nbar()\n"],"names":["foo","console","log","url","bar"],"mappings":";;;;;;;;;;;;;AAAA,SAASA;IACPC,QAAQC,GAAG,CAAC,8BAAYC,GAAG;AAC7B;AACA,SAASC;IACPH,QAAQC,GAAG,CAAC,8BAAYC,GAAG;AAC7B;AAEAH;AACAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js index 5a026a1ff634..06d0fd00ac23 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js @@ -1,12 +1,10 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$import$2d$meta$2f$esm$2d$mutable$2f$input$2f$mod$2e$mjs__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/mod.mjs [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/mod.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/mod.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -23,7 +21,6 @@ var __TURBOPACK__import$2e$meta__ = { } }; __TURBOPACK__import$2e$meta__.foo = 1; -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js.map index b3ffadc5a9b5..6b1df2901f4d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-mutable_input_20u-wgbvzfds9._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/mod.mjs"],"sourcesContent":["import.meta.foo = 1\n"],"names":["foo"],"mappings":";;;;;;;;;;;;;AAAA,8BAAYA,GAAG,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-mutable/input/mod.mjs"],"sourcesContent":["import.meta.foo = 1\n"],"names":["foo"],"mappings":";;;;;;;;;;;;;AAAA,8BAAYA,GAAG,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js index 68da58e11ce9..a0b00dcbc76f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js @@ -1,12 +1,10 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$import$2d$meta$2f$esm$2d$object$2f$input$2f$mod$2e$mjs__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/mod.mjs [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/mod.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/mod.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -23,7 +21,6 @@ var __TURBOPACK__import$2e$meta__ = { } }; console.log(__TURBOPACK__import$2e$meta__); -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js.map index 906d4a1f689f..6ea8a82dca01 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/output/0_9x_turbopack-tests_tests_snapshot_import-meta_esm-object_input_0akuaiya2a112._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/mod.mjs"],"sourcesContent":["console.log(import.meta)\n"],"names":["console","log"],"mappings":";;;;;;;;;;;;;AAAAA,QAAQC,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm-object/input/mod.mjs"],"sourcesContent":["console.log(import.meta)\n"],"names":["console","log"],"mappings":";;;;;;;;;;;;;AAAAA,QAAQC,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js index 874cb97930b2..a42ad91d2a4d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js @@ -1,12 +1,10 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$import$2d$meta$2f$esm$2f$input$2f$mod$2e$mjs__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/mod.mjs [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/mod.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/mod.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -23,7 +21,6 @@ var __TURBOPACK__import$2e$meta__ = { } }; console.log(__TURBOPACK__import$2e$meta__.url); -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js.map index 3d4ba81a6b92..c919f45c002c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_esm_input_0m4yc4rpllbvz._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/mod.mjs"],"sourcesContent":["console.log(import.meta.url)\n"],"names":["console","log","url"],"mappings":";;;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC,8BAAYC,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/esm/input/mod.mjs"],"sourcesContent":["console.log(import.meta.url)\n"],"names":["console","log","url"],"mappings":";;;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC,8BAAYC,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js index 895ae5284449..b3d021e80b12 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js @@ -1,15 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/asset.txt (static in ecmascript)", ((__turbopack_context__) => { - -__turbopack_context__.q("/static/asset.1z1abqqd69ldl.txt");}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$import$2d$meta$2f$url$2f$input$2f$mod$2e$mjs__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/mod.mjs [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/mod.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/mod.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -28,7 +23,8 @@ var __TURBOPACK__import$2e$meta__ = { const assetUrl = new __turbopack_context__.U(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/asset.txt (static in ecmascript)")); console.log(assetUrl); fetch(assetUrl).then((res)=>res.text()).then(console.log); -}), -]); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/asset.txt (static in ecmascript)",((__turbopack_context__) => { + +__turbopack_context__.q("/static/asset.1z1abqqd69ldl.txt");})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js.map index 1b9a2628f219..3c17e99d8e41 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/output/1do3_crates_turbopack-tests_tests_snapshot_import-meta_url_input_0jbqiqv96e9z4._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/mod.mjs"],"sourcesContent":["const assetUrl = new URL('./asset.txt', import.meta.url)\n\nconsole.log(assetUrl)\nfetch(assetUrl)\n .then((res) => res.text())\n .then(console.log)\n"],"names":["assetUrl","console","log","fetch","then","res","text"],"mappings":";;;;;;;;;;;;;AAAA,MAAMA;AAENC,QAAQC,GAAG,CAACF;AACZG,MAAMH,UACHI,IAAI,CAAC,CAACC,MAAQA,IAAIC,IAAI,IACtBF,IAAI,CAACH,QAAQC,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/index.js"],"sourcesContent":["import './mod.mjs'\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/import-meta/url/input/mod.mjs"],"sourcesContent":["const assetUrl = new URL('./asset.txt', import.meta.url)\n\nconsole.log(assetUrl)\nfetch(assetUrl)\n .then((res) => res.text())\n .then(console.log)\n"],"names":["assetUrl","console","log","fetch","then","res","text"],"mappings":";;;;;;;;;;;;;AAAA,MAAMA;AAENC,QAAQC,GAAG,CAACF;AACZG,MAAMH,UACHI,IAAI,CAAC,CAACC,MAAQA,IAAIC,IAAI,IACtBF,IAAI,CAACH,QAAQC,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js index 14c8ae69e98e..af593cf58970 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -11,8 +10,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo function Table() { console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$duplicate$2d$binding$2f$input$2f$table$2e$js__$5b$test$5d$__$28$ecmascript$29$__["Table"]); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,7 +20,6 @@ __turbopack_context__.s([ const Table = ()=>{ return 'table'; }; -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js.map index 06ed66dd6daf..d5702bf17587 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/output/0_9x_turbopack-tests_tests_snapshot_imports_duplicate-binding_input_05k3-r-zlo2y8._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/index.js"],"sourcesContent":["import { Table } from './table'\n\nexport function Table() {\n console.log(Table)\n}\n"],"names":["Table","console","log"],"mappings":";;;;AAAA;;AAEO,SAASA;IACdC,QAAQC,GAAG,CAAC,sNAAK;AACnB"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js"],"sourcesContent":["export const Table = () => {\n return 'table'\n}\n"],"names":["Table"],"mappings":";;;;AAAO,MAAMA,QAAQ;IACnB,OAAO;AACT"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/index.js"],"sourcesContent":["import { Table } from './table'\n\nexport function Table() {\n console.log(Table)\n}\n"],"names":["Table","console","log"],"mappings":";;;;AAAA;;AAEO,SAASA;IACdC,QAAQC,GAAG,CAAC,sNAAK;AACnB"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js"],"sourcesContent":["export const Table = () => {\n return 'table'\n}\n"],"names":["Table"],"mappings":";;;;AAAO,MAAMA,QAAQ;IACnB,OAAO;AACT"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_07_ray5h9b01u._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_07_ray5h9b01u._.js index 9712a8ea0410..279aaaea4829 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_07_ray5h9b01u._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_07_ray5h9b01u._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_07_ray5h9b01u._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_07_ray5h9b01u._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js index d4cff00729f9..9966466bf8bd 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -7,7 +6,6 @@ __turbopack_context__.s([ ()=>__TURBOPACK__default__export__ ]); const __TURBOPACK__default__export__ = 'turbopack'; -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js.map index 7327ea57f450..16f40cde3ef4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_dynamic_input_vercel_mjs_10v2lax50zql7._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js index b42ecb1b4dfa..064c6130c1bd 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs [test] (ecmascript, async loader)").then(console.log); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js.map index 7ddd6dd3d88f..8cf34a691bfb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_imports_dynamic_input_index_0ebkhgwcoszgx.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/index.js"],"sourcesContent":["import('./vercel.mjs').then(console.log)\n"],"names":["then","console","log"],"mappings":"AAAA,wJAAuBA,IAAI,CAACC,QAAQC,GAAG"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/index.js"],"sourcesContent":["import('./vercel.mjs').then(console.log)\n"],"names":["then","console","log"],"mappings":"AAAA,wJAAuBA,IAAI,CAACC,QAAQC,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js index 87b95c47c1f3..c9d361aad6aa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { module.exports = 'turbopack'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js.map index cc1db36afc64..f2f458eb51a3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs"],"sourcesContent":["module.exports = 'turbopack'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs"],"sourcesContent":["module.exports = 'turbopack'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_0dbyuzl-d_6q7._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_0dbyuzl-d_6q7._.js index 0524dbbca36b..8c5e9fdd598d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_0dbyuzl-d_6q7._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_0dbyuzl-d_6q7._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_0dbyuzl-d_6q7._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_0dbyuzl-d_6q7._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js index a46492966fb3..4fe7e2b49f78 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -7,7 +6,6 @@ __turbopack_context__.s([ ()=>__TURBOPACK__default__export__ ]); const __TURBOPACK__default__export__ = 'turbopack'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js.map index 93311bf70e8f..b92dd5cb7d77 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_mjs_1w__q5-_cdgjf._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js index d7b671f132d2..b0c18bd938bb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js @@ -1,8 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/[root-of-the-server]__08ofy-h8v1j4d._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/ignore-worker.cjs (static in ecmascript)", ((__turbopack_context__) => { - -__turbopack_context__.q("/static/ignore-worker.3cqstqcuvhq6o.cjs");}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/[root-of-the-server]__08ofy-h8v1j4d._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -36,19 +32,7 @@ new Worker(new __turbopack_context__.U(__turbopack_context__.r("[project]/turbop function foo(plugin) { return require(/* turbopackIgnore: true */ plugin); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs (static in ecmascript)", ((__turbopack_context__) => { - -__turbopack_context__.q("/static/vercel.0kkt412gy5vj6.cjs");}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { - -module.exports = 'turbopack'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs [test] (ecmascript, worker loader)", ((__turbopack_context__) => { - -__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)")["default"]("output/0ce9_turbopack-tests_tests_snapshot_imports_ignore-comments_output_0uy0mninb8pht._.js", ["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js","output/1ece_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0_vdt2ki2mlm8._.js"])); -}), -"[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)", ((__turbopack_context__) => { +}),"[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // Embedded worker-runtime helper. This file is bundled as a regular module and @@ -113,7 +97,16 @@ __turbopack_context__.s([ function generateCreateWorker(entrypoint, moduleChunks) { return (WorkerConstructor, workerOptions)=>createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions); } -}), -]); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/ignore-worker.cjs (static in ecmascript)",((__turbopack_context__) => { + +__turbopack_context__.q("/static/ignore-worker.3cqstqcuvhq6o.cjs");}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs (static in ecmascript)",((__turbopack_context__) => { + +__turbopack_context__.q("/static/vercel.0kkt412gy5vj6.cjs");}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { + +module.exports = 'turbopack'; +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs [test] (ecmascript, worker loader)",((__turbopack_context__) => { + +__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)")["default"]("output/0ce9_turbopack-tests_tests_snapshot_imports_ignore-comments_output_0uy0mninb8pht._.js", ["output/1jsg_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0j-fab5w1df6z._.js","output/1ece_tests_snapshot_imports_ignore-comments_input_vercel_cjs_0_vdt2ki2mlm8._.js"])); +})]); //# sourceMappingURL=%5Broot-of-the-server%5D__08ofy-h8v1j4d._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js.map index ab7af90d5741..2d7795a4aa02 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/output/[root-of-the-server]__08ofy-h8v1j4d._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/index.js"],"sourcesContent":["import('./vercel.mjs').then(console.log)\nimport(/* webpackIgnore: false */ './vercel.mjs').then(console.log)\nconsole.log(require('./vercel.cjs'))\nnew Worker(\n /* turbopackIgnore: false */ new URL('./vercel.cjs', import.meta.url)\n)\n\n// turbopack shouldn't attempt to bundle these, and they should be preserved in the output\nimport(/* webpackIgnore: true */ './ignore.mjs')\nimport(/* turbopackIgnore: true */ './ignore.mjs')\n\n// this should work for cjs requires too\nrequire(/* webpackIgnore: true */ './ignore.cjs')\nrequire(/* turbopackIgnore: true */ './ignore.cjs')\n\nnew Worker(\n /* turbopackIgnore: true */ new URL('./ignore-worker.cjs', import.meta.url)\n)\nnew Worker(\n /* webpackIgnore: true */ new URL('./ignore-worker.cjs', import.meta.url)\n)\n\nexport function foo(plugin) {\n return require(/* turbopackIgnore: true */ plugin)\n}\n"],"names":["then","console","log","Worker","require","foo","plugin"],"mappings":";;;;;;;;;;;;;;;;AAAA,gKAAuBA,IAAI,CAACC,QAAQC,GAAG;AACvC,gKAAkDF,IAAI,CAACC,QAAQC,GAAG;AAClED,QAAQC,GAAG;AACX,iKAAIC;AAIJ,0FAA0F;AAC1F,MAAM,CAAC,uBAAuB,GAAG;AACjC,MAAM,CAAC,yBAAyB,GAAG;AAEnC,wCAAwC;AACxCC,QAAQ,uBAAuB,GAAG;AAClCA,QAAQ,yBAAyB,GAAG;AAEpC,IAAID;AAGJ,IAAIA;AAIG,SAASE,IAAIC,MAAM;IACxB,OAAOF,QAAQ,yBAAyB,GAAGE;AAC7C"}}, - {"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs"],"sourcesContent":["module.exports = 'turbopack'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}, - {"offset": {"line": 53, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-ecmascript]/worker/browser/createWorker.ts"],"sourcesContent":["// Embedded worker-runtime helper. This file is bundled as a regular module and\n// `__turbopack_require__`d by the generated web-worker loader code.\n//\n// The chunk-URL builder, the chunk base path and the asset suffix are read from\n// the shared `__turbopack_chunk_relative_url__` / `__turbopack_chunk_base_path__`\n// / `__turbopack_chunk_asset_suffix__` runtime primitives. The worker base-path\n// override and forwarded-global names are baked into this module at build time by\n// `turbopack-ecmascript` replacing the `_TURBOPACK_WORKER_BASE_PATH_` /\n// `_TURBOPACK_WORKER_FORWARDED_GLOBALS_` free variables, and the forwarded-global\n// values are read from `globalThis`.\ndeclare const __turbopack_chunk_relative_url__: (\n chunkPath: string,\n basePath?: string\n) => string\n\ndeclare const __turbopack_chunk_base_path__: string\ndeclare const __turbopack_chunk_asset_suffix__: string\n\ndeclare const _TURBOPACK_WORKER_FORWARDED_GLOBALS_: string[]\ndeclare const _TURBOPACK_WORKER_BASE_PATH_: string | null\n\ntype WorkerConstructor = new (url: URL, options?: object) => Worker\n\n// Mirrors the runtime's `ChunkData`.\ntype WorkerChunkData = string | { path: string }\n\n/**\n * Creates a web worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, WORKER_CHUNK_BASE_PATH, ...workerForwardedGlobals values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: WorkerConstructor,\n entrypoint: string,\n moduleChunks: WorkerChunkData[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath =\n _TURBOPACK_WORKER_BASE_PATH_ ?? __turbopack_chunk_base_path__\n\n const chunkUrls = moduleChunks\n .map((chunk) =>\n __turbopack_chunk_relative_url__(\n typeof chunk === 'string' ? chunk : chunk.path,\n workerBasePath\n )\n )\n .reverse()\n const params: unknown[] = [\n chunkUrls,\n __turbopack_chunk_asset_suffix__,\n workerBasePath,\n ]\n const globals = _TURBOPACK_WORKER_FORWARDED_GLOBALS_\n for (let i = 0; i < globals.length; i++) {\n params.push((globalThis as Record)[globals[i]])\n }\n\n const url = new URL(\n __turbopack_chunk_relative_url__(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\n\n/**\n * Returns a function, that when called with the constructor + any options calls `createWorker()`.\n * The worker configuration (`entrypoint`, `moduleChunks`) is passed by `turbopack-ecmascript`\n * at build time, leaving the runtime caller to only supply the constructor and options.\n */\nexport default function generateCreateWorker(\n entrypoint: string,\n moduleChunks: WorkerChunkData[]\n) {\n return (\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n workerOptions?: object\n ) => createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions)\n}\n"],"names":["createWorker","WorkerConstructor","entrypoint","moduleChunks","workerOptions","isSharedWorker","name","workerBasePath","chunkUrls","map","chunk","path","reverse","params","globals","i","length","push","globalThis","url","URL","location","origin","paramsJson","JSON","stringify","searchParams","set","hash","encodeURIComponent","options","type","undefined","generateCreateWorker"],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,wEAAwE;AACxE,kFAAkF;AAClF,qCAAqC;;;;;AAiBrC;;;;;;;;;;;;;;CAcC,GACD,SAASA,aACPC,iBAAoC,EACpCC,UAAkB,EAClBC,YAA+B,EAC/BC,aAAsB;IAEtB,MAAMC,iBAAiBJ,kBAAkBK,IAAI,KAAK;IAElD,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAMC,iBACJ;IAEF,MAAMC,YAAYL,aACfM,GAAG,CAAC,CAACC,QACJ,yDACE,OAAOA,UAAU,WAAWA,QAAQA,MAAMC,IAAI,EAC9CJ,iBAGHK,OAAO;IACV,MAAMC,SAAoB;QACxBL;;QAEAD;KACD;IACD,MAAMO;IACN,IAAK,IAAIC,IAAI,GAAGA,IAAID,QAAQE,MAAM,EAAED,IAAK;QACvCF,OAAOI,IAAI,CAAC,AAACC,UAAsC,CAACJ,OAAO,CAACC,EAAE,CAAC;IACjE;IAEA,MAAMI,MAAM,IAAIC,IACd,yDAAiClB,YAAYK,iBAC7Cc,SAASC,MAAM;IAEjB,MAAMC,aAAaC,KAAKC,SAAS,CAACZ;IAClC,IAAIR,gBAAgB;QAClBc,IAAIO,YAAY,CAACC,GAAG,CAAC,UAAUJ;IACjC,OAAO;QACLJ,IAAIS,IAAI,GAAG,aAAaC,mBAAmBN;IAC7C;IAEA,iFAAiF;IACjF,MAAMO,UAAU1B,gBACZ;QAAE,GAAGA,aAAa;QAAE2B,MAAMC;IAAU,IACpCA;IACJ,OAAO,IAAI/B,kBAAkBkB,KAAKW;AACpC;AAOe,SAASG,qBACtB/B,UAAkB,EAClBC,YAA+B;IAE/B,OAAO,CACLF,mBACAG,gBACGJ,aAAaC,mBAAmBC,YAAYC,cAAcC;AACjE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/index.js"],"sourcesContent":["import('./vercel.mjs').then(console.log)\nimport(/* webpackIgnore: false */ './vercel.mjs').then(console.log)\nconsole.log(require('./vercel.cjs'))\nnew Worker(\n /* turbopackIgnore: false */ new URL('./vercel.cjs', import.meta.url)\n)\n\n// turbopack shouldn't attempt to bundle these, and they should be preserved in the output\nimport(/* webpackIgnore: true */ './ignore.mjs')\nimport(/* turbopackIgnore: true */ './ignore.mjs')\n\n// this should work for cjs requires too\nrequire(/* webpackIgnore: true */ './ignore.cjs')\nrequire(/* turbopackIgnore: true */ './ignore.cjs')\n\nnew Worker(\n /* turbopackIgnore: true */ new URL('./ignore-worker.cjs', import.meta.url)\n)\nnew Worker(\n /* webpackIgnore: true */ new URL('./ignore-worker.cjs', import.meta.url)\n)\n\nexport function foo(plugin) {\n return require(/* turbopackIgnore: true */ plugin)\n}\n"],"names":["then","console","log","Worker","require","foo","plugin"],"mappings":";;;;;;;;;;;;;;;;AAAA,gKAAuBA,IAAI,CAACC,QAAQC,GAAG;AACvC,gKAAkDF,IAAI,CAACC,QAAQC,GAAG;AAClED,QAAQC,GAAG;AACX,iKAAIC;AAIJ,0FAA0F;AAC1F,MAAM,CAAC,uBAAuB,GAAG;AACjC,MAAM,CAAC,yBAAyB,GAAG;AAEnC,wCAAwC;AACxCC,QAAQ,uBAAuB,GAAG;AAClCA,QAAQ,yBAAyB,GAAG;AAEpC,IAAID;AAGJ,IAAIA;AAIG,SAASE,IAAIC,MAAM;IACxB,OAAOF,QAAQ,yBAAyB,GAAGE;AAC7C"}}, + {"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-ecmascript]/worker/browser/createWorker.ts"],"sourcesContent":["// Embedded worker-runtime helper. This file is bundled as a regular module and\n// `__turbopack_require__`d by the generated web-worker loader code.\n//\n// The chunk-URL builder, the chunk base path and the asset suffix are read from\n// the shared `__turbopack_chunk_relative_url__` / `__turbopack_chunk_base_path__`\n// / `__turbopack_chunk_asset_suffix__` runtime primitives. The worker base-path\n// override and forwarded-global names are baked into this module at build time by\n// `turbopack-ecmascript` replacing the `_TURBOPACK_WORKER_BASE_PATH_` /\n// `_TURBOPACK_WORKER_FORWARDED_GLOBALS_` free variables, and the forwarded-global\n// values are read from `globalThis`.\ndeclare const __turbopack_chunk_relative_url__: (\n chunkPath: string,\n basePath?: string\n) => string\n\ndeclare const __turbopack_chunk_base_path__: string\ndeclare const __turbopack_chunk_asset_suffix__: string\n\ndeclare const _TURBOPACK_WORKER_FORWARDED_GLOBALS_: string[]\ndeclare const _TURBOPACK_WORKER_BASE_PATH_: string | null\n\ntype WorkerConstructor = new (url: URL, options?: object) => Worker\n\n// Mirrors the runtime's `ChunkData`.\ntype WorkerChunkData = string | { path: string }\n\n/**\n * Creates a web worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, WORKER_CHUNK_BASE_PATH, ...workerForwardedGlobals values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: WorkerConstructor,\n entrypoint: string,\n moduleChunks: WorkerChunkData[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath =\n _TURBOPACK_WORKER_BASE_PATH_ ?? __turbopack_chunk_base_path__\n\n const chunkUrls = moduleChunks\n .map((chunk) =>\n __turbopack_chunk_relative_url__(\n typeof chunk === 'string' ? chunk : chunk.path,\n workerBasePath\n )\n )\n .reverse()\n const params: unknown[] = [\n chunkUrls,\n __turbopack_chunk_asset_suffix__,\n workerBasePath,\n ]\n const globals = _TURBOPACK_WORKER_FORWARDED_GLOBALS_\n for (let i = 0; i < globals.length; i++) {\n params.push((globalThis as Record)[globals[i]])\n }\n\n const url = new URL(\n __turbopack_chunk_relative_url__(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\n\n/**\n * Returns a function, that when called with the constructor + any options calls `createWorker()`.\n * The worker configuration (`entrypoint`, `moduleChunks`) is passed by `turbopack-ecmascript`\n * at build time, leaving the runtime caller to only supply the constructor and options.\n */\nexport default function generateCreateWorker(\n entrypoint: string,\n moduleChunks: WorkerChunkData[]\n) {\n return (\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n workerOptions?: object\n ) => createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions)\n}\n"],"names":["createWorker","WorkerConstructor","entrypoint","moduleChunks","workerOptions","isSharedWorker","name","workerBasePath","chunkUrls","map","chunk","path","reverse","params","globals","i","length","push","globalThis","url","URL","location","origin","paramsJson","JSON","stringify","searchParams","set","hash","encodeURIComponent","options","type","undefined","generateCreateWorker"],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,wEAAwE;AACxE,kFAAkF;AAClF,qCAAqC;;;;;AAiBrC;;;;;;;;;;;;;;CAcC,GACD,SAASA,aACPC,iBAAoC,EACpCC,UAAkB,EAClBC,YAA+B,EAC/BC,aAAsB;IAEtB,MAAMC,iBAAiBJ,kBAAkBK,IAAI,KAAK;IAElD,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAMC,iBACJ;IAEF,MAAMC,YAAYL,aACfM,GAAG,CAAC,CAACC,QACJ,yDACE,OAAOA,UAAU,WAAWA,QAAQA,MAAMC,IAAI,EAC9CJ,iBAGHK,OAAO;IACV,MAAMC,SAAoB;QACxBL;;QAEAD;KACD;IACD,MAAMO;IACN,IAAK,IAAIC,IAAI,GAAGA,IAAID,QAAQE,MAAM,EAAED,IAAK;QACvCF,OAAOI,IAAI,CAAC,AAACC,UAAsC,CAACJ,OAAO,CAACC,EAAE,CAAC;IACjE;IAEA,MAAMI,MAAM,IAAIC,IACd,yDAAiClB,YAAYK,iBAC7Cc,SAASC,MAAM;IAEjB,MAAMC,aAAaC,KAAKC,SAAS,CAACZ;IAClC,IAAIR,gBAAgB;QAClBc,IAAIO,YAAY,CAACC,GAAG,CAAC,UAAUJ;IACjC,OAAO;QACLJ,IAAIS,IAAI,GAAG,aAAaC,mBAAmBN;IAC7C;IAEA,iFAAiF;IACjF,MAAMO,UAAU1B,gBACZ;QAAE,GAAGA,aAAa;QAAE2B,MAAMC;IAAU,IACpCA;IACJ,OAAO,IAAI/B,kBAAkBkB,KAAKW;AACpC;AAOe,SAASG,qBACtB/B,UAAkB,EAClBC,YAA+B;IAE/B,OAAO,CACLF,mBACAG,gBACGJ,aAAaC,mBAAmBC,YAAYC,cAAcC;AACjE"}}, + {"offset": {"line": 105, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.cjs"],"sourcesContent":["module.exports = 'turbopack'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js index 4ce2de63ebfa..7a0d90e62105 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js @@ -1,9 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/huge.json.[json].cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { - -module.exports = JSON.parse("[\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\"]"); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -16,17 +11,17 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$json$2f$input$2f$huge$2e$json$2e5b$json$5d2e$cjs__$5b$test$5d$__$28$ecmascript$29$__["default"]); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$json$2f$input$2f$invalid$2e$json$2e5b$json$5d2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"]['this-is']); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/invalid.json.[json].js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/huge.json.[json].cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { + +module.exports = JSON.parse("[\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\"]"); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/invalid.json.[json].js [test] (ecmascript)",((__turbopack_context__, module, exports) => { throw new Error("Unable to make a module from invalid JSON: expected `,` or `}` at line 3 column 26"); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/package.json.[json].cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/package.json.[json].cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { module.exports = { "name": "json-snapshot" }; -}), -]); +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js.map index b22e07e6fa4d..fe268c6185e1 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/output/turbopack_crates_turbopack-tests_tests_snapshot_imports_json_input_1ytd18map00aj._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/huge.json.[json].cjs/turbopack:///turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/huge.json"],"sourcesContent":["[\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\"]"],"names":[],"mappings":""}}, - {"offset": {"line": 8, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/index.js"],"sourcesContent":["import pkg from './package.json'\nconsole.log(pkg.name)\n\nimport huge from './huge.json'\nconsole.log(huge)\n\nimport invalid from './invalid.json'\nconsole.log(invalid['this-is'])\n"],"names":["console","log","name"],"mappings":";AAAA;AAGA;AAGA;;AALAA,QAAQC,GAAG,CAAC,+NAAG,CAACC,IAAI;;AAGpBF,QAAQC,GAAG,CAAC,4NAAI;;AAGhBD,QAAQC,GAAG,CAAC,8NAAO,CAAC,UAAU"}}, - {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/invalid.json.[json].js"],"sourcesContent":["throw new Error(\"Unable to make a module from invalid JSON: expected `,` or `}` at line 3 column 26\");"],"names":["Error"],"mappings":"AAAA,MAAM,IAAIA,MAAM"}}, - {"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/package.json.[json].cjs/turbopack:///turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/package.json"],"sourcesContent":["{\"name\":\"json-snapshot\"}"],"names":[],"mappings":""}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/index.js"],"sourcesContent":["import pkg from './package.json'\nconsole.log(pkg.name)\n\nimport huge from './huge.json'\nconsole.log(huge)\n\nimport invalid from './invalid.json'\nconsole.log(invalid['this-is'])\n"],"names":["console","log","name"],"mappings":";AAAA;AAGA;AAGA;;AALAA,QAAQC,GAAG,CAAC,+NAAG,CAACC,IAAI;;AAGpBF,QAAQC,GAAG,CAAC,4NAAI;;AAGhBD,QAAQC,GAAG,CAAC,8NAAO,CAAC,UAAU"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/huge.json.[json].cjs/turbopack:///turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/huge.json"],"sourcesContent":["[\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\",\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\"]"],"names":[],"mappings":""}}, + {"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/invalid.json.[json].js"],"sourcesContent":["throw new Error(\"Unable to make a module from invalid JSON: expected `,` or `}` at line 3 column 26\");"],"names":["Error"],"mappings":"AAAA,MAAM,IAAIA,MAAM"}}, + {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/package.json.[json].cjs/turbopack:///turbopack/crates/turbopack-tests/tests/snapshot/imports/json/input/package.json"],"sourcesContent":["{\"name\":\"json-snapshot\"}"],"names":[],"mappings":""}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js index de1cab782540..ff99d5baa74b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js @@ -1,9 +1,7 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.cjs [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.cjs [test] (ecmascript)",((__turbopack_context__, module, exports) => { module.exports = 'existing module (cjs)'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // turbopackOptional should suppress resolve errors silently Promise.resolve().then(()=>{ @@ -43,7 +41,6 @@ Promise.resolve().then(()=>{ // Test with existing module - should work normally __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs [test] (ecmascript, async loader)").then((m)=>console.log(m)); __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.cjs [test] (ecmascript)"); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js.map index 73ae28454099..4f443a3d52c8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/0_9x_turbopack-tests_tests_snapshot_imports_optional-comments_input_1djzxjxdb-z64._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.cjs"],"sourcesContent":["module.exports = 'existing module (cjs)'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}, - {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/index.js"],"sourcesContent":["// turbopackOptional should suppress resolve errors silently\nimport(/* turbopackOptional: true */ './missing.mjs').then(\n (m) => console.log(m),\n (e) => console.log('missing.mjs not found')\n)\n\n// require with turbopackOptional should also work\ntry {\n const missing = require(/* turbopackOptional: true */ './missing.cjs')\n console.log(missing)\n} catch (e) {\n console.log('missing.cjs not found')\n}\n\n// webpackOptional is NOT supported, so this should NOT suppress the error\nimport(/* webpackOptional: true */ './missing-should-error-webpack.mjs')\n\n// turbopackOptional: false should still produce errors\nimport(\n /* turbopackOptional: false */ './missing-should-error-optional-false.mjs'\n)\n\n// Default behavior without any optional comment should produce errors\nimport('./missing-should-error-default.mjs')\n\n// Test with existing module - should work normally\nimport('./existing.mjs').then((m) => console.log(m))\nrequire('./existing.cjs')\n"],"names":["then","m","console","log","e","missing"],"mappings":"AAAA,4DAA4D;AAC5D;;;;GAAsDA,IAAI,CACxD,CAACC,IAAMC,QAAQC,GAAG,CAACF,IACnB,CAACG,IAAMF,QAAQC,GAAG,CAAC;AAGrB,kDAAkD;AAClD,IAAI;IACF,MAAME;;;;;IACNH,QAAQC,GAAG,CAACE;AACd,EAAE,OAAOD,GAAG;IACVF,QAAQC,GAAG,CAAC;AACd;AAEA,0EAA0E;;;;;;AAG1E,uDAAuD;;;;;;AAKvD,sEAAsE;;;;;;AAGtE,mDAAmD;AACnD,oKAAyBH,IAAI,CAAC,CAACC,IAAMC,QAAQC,GAAG,CAACF"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.cjs"],"sourcesContent":["module.exports = 'existing module (cjs)'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}, + {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/index.js"],"sourcesContent":["// turbopackOptional should suppress resolve errors silently\nimport(/* turbopackOptional: true */ './missing.mjs').then(\n (m) => console.log(m),\n (e) => console.log('missing.mjs not found')\n)\n\n// require with turbopackOptional should also work\ntry {\n const missing = require(/* turbopackOptional: true */ './missing.cjs')\n console.log(missing)\n} catch (e) {\n console.log('missing.cjs not found')\n}\n\n// webpackOptional is NOT supported, so this should NOT suppress the error\nimport(/* webpackOptional: true */ './missing-should-error-webpack.mjs')\n\n// turbopackOptional: false should still produce errors\nimport(\n /* turbopackOptional: false */ './missing-should-error-optional-false.mjs'\n)\n\n// Default behavior without any optional comment should produce errors\nimport('./missing-should-error-default.mjs')\n\n// Test with existing module - should work normally\nimport('./existing.mjs').then((m) => console.log(m))\nrequire('./existing.cjs')\n"],"names":["then","m","console","log","e","missing"],"mappings":"AAAA,4DAA4D;AAC5D;;;;GAAsDA,IAAI,CACxD,CAACC,IAAMC,QAAQC,GAAG,CAACF,IACnB,CAACG,IAAMF,QAAQC,GAAG,CAAC;AAGrB,kDAAkD;AAClD,IAAI;IACF,MAAME;;;;;IACNH,QAAQC,GAAG,CAACE;AACd,EAAE,OAAOD,GAAG;IACVF,QAAQC,GAAG,CAAC;AACd;AAEA,0EAA0E;;;;;;AAG1E,uDAAuD;;;;;;AAKvD,sEAAsE;;;;;;AAGtE,mDAAmD;AACnD,oKAAyBH,IAAI,CAAC,CAACC,IAAMC,QAAQC,GAAG,CAACF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js index 4d91b822f8cd..d7bd15606a81 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -7,7 +6,6 @@ __turbopack_context__.s([ ()=>__TURBOPACK__default__export__ ]); const __TURBOPACK__default__export__ = 'existing module (esm)'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js.map index c81c11100125..9207006d9148 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_0c500u0zw1qsb._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs"],"sourcesContent":["export default 'existing module (esm)'\n"],"names":[],"mappings":";;;;uCAAe"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs"],"sourcesContent":["export default 'existing module (esm)'\n"],"names":[],"mappings":";;;;uCAAe"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_1xtelc5czoka5._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_1xtelc5czoka5._.js index 09fd9aeae230..9069d4259700 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_1xtelc5czoka5._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_1xtelc5czoka5._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_1xtelc5czoka5._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_optional-comments_input_existing_mjs_1xtelc5czoka5._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js index 7cf9447491ea..d21d50ec6113 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -9,8 +8,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ if (!__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$order$2f$input$2f$posts$2e$ts__$5b$test$5d$__$28$ecmascript$29$__["default"].js) { process.exit(1); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/posts.ts [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/posts.ts [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -20,7 +18,6 @@ __turbopack_context__.s([ const __TURBOPACK__default__export__ = { js: true }; -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js.map index 376f6a355779..d62779d8d950 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/output/1do3_crates_turbopack-tests_tests_snapshot_imports_order_input_1wfk3l4bfp2ys._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/index.js"],"sourcesContent":["import posts from './posts'\n\nconsole.log(posts.js)\nif (!posts.js) {\n process.exit(1)\n}\n"],"names":["console","log","js","process","exit"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,yMAAK,CAACC,EAAE;AACpB,IAAI,CAAC,yMAAK,CAACA,EAAE,EAAE;IACbC,QAAQC,IAAI,CAAC;AACf"}}, - {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/posts.ts"],"sourcesContent":["export default {\n js: true,\n}\n"],"names":["js"],"mappings":";;;;uCAAe;IACbA,IAAI;AACN"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/index.js"],"sourcesContent":["import posts from './posts'\n\nconsole.log(posts.js)\nif (!posts.js) {\n process.exit(1)\n}\n"],"names":["console","log","js","process","exit"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,yMAAK,CAACC,EAAE;AACpB,IAAI,CAAC,yMAAK,CAACA,EAAE,EAAE;IACbC,QAAQC,IAAI,CAAC;AACf"}}, + {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/posts.ts"],"sourcesContent":["export default {\n js: true,\n}\n"],"names":["js"],"mappings":";;;;uCAAe;IACbA,IAAI;AACN"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js index 0647cbc5fa35..13f3dbcd538a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { const dne = (()=>{ const e = new Error("Cannot find module 'does-not-exist/path'"); @@ -7,7 +6,6 @@ const dne = (()=>{ throw e; })(); console.log(dne); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js.map index 5c8ab8703f31..e6e2f7a2a29f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/output/1jsg_tests_snapshot_imports_resolve_error_cjs_input_index_0w6m9xnx51a63.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/input/index.js"],"sourcesContent":["const dne = require('does-not-exist/path')\n\nconsole.log(dne)\n"],"names":["dne","console","log"],"mappings":"AAAA,MAAMA;;;;;AAENC,QAAQC,GAAG,CAACF"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_cjs/input/index.js"],"sourcesContent":["const dne = require('does-not-exist/path')\n\nconsole.log(dne)\n"],"names":["dne","console","log"],"mappings":"AAAA,MAAMA;;;;;AAENC,QAAQC,GAAG,CAACF"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js index 89e6c3805ab0..9be3f67e8a27 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -11,7 +10,6 @@ __turbopack_context__.s([]); ; console.log(dne); console.log({}[dne]); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js.map index ca68417f67d3..13b442625866 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/output/1jsg_tests_snapshot_imports_resolve_error_esm_input_index_1c8ndk9tak0l5.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/input/index.js"],"sourcesContent":["import dne from 'does-not-exist/path'\n\nconsole.log(dne)\nconsole.log({}[dne])\n"],"names":["console","log","dne"],"mappings":";;;;;;;AAEAA,QAAQC,GAAG,CAACC;AACZF,QAAQC,GAAG,CAAC,CAAC,CAAC,CAACC,IAAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/resolve_error_esm/input/index.js"],"sourcesContent":["import dne from 'does-not-exist/path'\n\nconsole.log(dne)\nconsole.log({}[dne])\n"],"names":["console","log","dne"],"mappings":";;;;;;;AAEAA,QAAQC,GAAG,CAACC;AACZF,QAAQC,GAAG,CAAC,CAAC,CAAC,CAACC,IAAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js index dcd06470221e..c3b6d92d8fe9 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,8 +6,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$static$2d$and$2d$dynamic$2f$input$2f$vercel$2e$mjs__$5b$test$5d$__$28$ecmascript$29$__["default"]); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs [test] (ecmascript, async loader)").then(console.log); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -16,7 +14,6 @@ __turbopack_context__.s([ ()=>__TURBOPACK__default__export__ ]); const __TURBOPACK__default__export__ = 'turbopack'; -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js.map index 3aa1df483cf7..cc1ca2e343e0 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/0_9x_turbopack-tests_tests_snapshot_imports_static-and-dynamic_input_0dm2mkcc8iok2._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/index.js"],"sourcesContent":["import img from './vercel.mjs'\nconsole.log(img)\n\nimport('./vercel.mjs').then(console.log)\n"],"names":["console","log","then"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,8NAAG;AAEf,mKAAuBC,IAAI,CAACF,QAAQC,GAAG"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/index.js"],"sourcesContent":["import img from './vercel.mjs'\nconsole.log(img)\n\nimport('./vercel.mjs').then(console.log)\n"],"names":["console","log","then"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,8NAAG;AAEf,mKAAuBC,IAAI,CAACF,QAAQC,GAAG"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/1jsg_tests_snapshot_imports_static-and-dynamic_input_vercel_mjs_1n3jko1eosfvo._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/1jsg_tests_snapshot_imports_static-and-dynamic_input_vercel_mjs_1n3jko1eosfvo._.js index 4dd772c1c4e1..1037b1b97bc9 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/1jsg_tests_snapshot_imports_static-and-dynamic_input_vercel_mjs_1n3jko1eosfvo._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/output/1jsg_tests_snapshot_imports_static-and-dynamic_input_vercel_mjs_1n3jko1eosfvo._.js @@ -1,10 +1,8 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_static-and-dynamic_input_vercel_mjs_1n3jko1eosfvo._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_imports_static-and-dynamic_input_vercel_mjs_1n3jko1eosfvo._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.resolve().then(() => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js index 5d94a10106a5..05a6f95c2876 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js @@ -1,15 +1,12 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$static$2f$input$2f$vercel$2e$svg__$28$static__in__ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/vercel.svg (static in ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$static$2f$input$2f$vercel$2e$svg__$28$static__in__ecmascript$29$__["default"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/vercel.svg (static in ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/vercel.svg (static in ecmascript)",((__turbopack_context__) => { -__turbopack_context__.q("/static/vercel.2yvrnb3rlbnfq.svg");}), -]); +__turbopack_context__.q("/static/vercel.2yvrnb3rlbnfq.svg");})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js.map index bdc961af4711..1292fc188389 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/output/1do3_crates_turbopack-tests_tests_snapshot_imports_static_input_1-vrw_t5p2v13._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/index.js"],"sourcesContent":["import img from \"./vercel.svg\";\nconsole.log(img);\n"],"names":["console","log"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,0MAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static/input/index.js"],"sourcesContent":["import img from \"./vercel.svg\";\nconsole.log(img);\n"],"names":["console","log"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,0MAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js index 66c2af0cff72..54e63d3df3d9 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$reexport$2d$with$2d$locals$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$locals$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js [test] (ecmascript) "); @@ -8,8 +7,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$reexport$2d$with$2d$locals$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$locals$3e$__["namedFunction"])(); (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$reexport$2d$with$2d$locals$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$locals$3e$__["default"])(); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$reexport$2d$with$2d$locals$2f$input$2f$node_modules$2f$lib$2f$unused$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js [test] (ecmascript)"); @@ -36,19 +34,16 @@ __turbopack_context__.s([ 0, namedFunction ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused-star.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused-star.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; function unused() {} __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; function unusedStar() {} __turbopack_context__.s([]); -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js.map index 813858b8a19a..565c77cc9aeb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/output/1jsg_tests_snapshot_intermediate-tree-shake_reexport-with-locals_input_0fa40prz2spda._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/index.js"],"sourcesContent":["import { local, namedFunction, default as defaultFunction } from 'lib'\n\nlocal()\nnamedFunction()\n\ndefaultFunction()\n"],"names":[],"mappings":"AAAA;;AAEA,IAAA,yRAAK;AACL,IAAA,iSAAa;AAEb,IAAA,2RAAe"}}, - {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js"],"sourcesContent":["export { unused } from './unused.js'\nexport * from './unused-star.js'\n\nfunction local() {\n console.log('This is a local function')\n}\nfunction localUnused() {\n console.log('This is a local unused function')\n}\n\nexport { local, localUnused }\n\nexport function namedFunction() {}\n\nexport default function defaultFunction() {}\n"],"names":["local","console","log","localUnused","namedFunction","defaultFunction"],"mappings":"AAAA;AACA;;;AAEA,SAASA;IACPC,QAAQC,GAAG,CAAC;AACd;AACA,SAASC;IACPF,QAAQC,GAAG,CAAC;AACd;;AAIO,SAASE,iBAAiB;AAElB,SAASC,mBAAmB","ignoreList":[0]}}, - {"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused-star.js"],"sourcesContent":["export function unused() {}\n"],"names":["unused"],"mappings":"AAAO,SAASA,UAAU","ignoreList":[0]}}, - {"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js"],"sourcesContent":["export function unusedStar() {}\n"],"names":["unusedStar"],"mappings":"AAAO,SAASA,cAAc","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/index.js"],"sourcesContent":["import { local, namedFunction, default as defaultFunction } from 'lib'\n\nlocal()\nnamedFunction()\n\ndefaultFunction()\n"],"names":[],"mappings":"AAAA;;AAEA,IAAA,yRAAK;AACL,IAAA,iSAAa;AAEb,IAAA,2RAAe"}}, + {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js"],"sourcesContent":["export { unused } from './unused.js'\nexport * from './unused-star.js'\n\nfunction local() {\n console.log('This is a local function')\n}\nfunction localUnused() {\n console.log('This is a local unused function')\n}\n\nexport { local, localUnused }\n\nexport function namedFunction() {}\n\nexport default function defaultFunction() {}\n"],"names":["local","console","log","localUnused","namedFunction","defaultFunction"],"mappings":"AAAA;AACA;;;AAEA,SAASA;IACPC,QAAQC,GAAG,CAAC;AACd;AACA,SAASC;IACPF,QAAQC,GAAG,CAAC;AACd;;AAIO,SAASE,iBAAiB;AAElB,SAASC,mBAAmB","ignoreList":[0]}}, + {"offset": {"line": 39, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused-star.js"],"sourcesContent":["export function unused() {}\n"],"names":["unused"],"mappings":"AAAO,SAASA,UAAU","ignoreList":[0]}}, + {"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js"],"sourcesContent":["export function unusedStar() {}\n"],"names":["unusedStar"],"mappings":"AAAO,SAASA,cAAc","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js index 3c82006c76ef..4e6999c15ff2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$export__a__as__a0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript) "); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$export__a__as__a0$3e$__["a0"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; const a = 'a'; @@ -17,8 +15,7 @@ __turbopack_context__.s([ 0, a ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript)"); @@ -26,7 +23,6 @@ __turbopack_context__.s([ "a0", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a"] ]); -}), -]);})() +})]); //# sourceMappingURL=154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js.map index a6dd387f9183..d4cf4ddb026b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/output/154e_intermediate-tree-shake_rename-side-effect-free-facade_input_1nl1qrj_-qqwu._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/index.js"],"sourcesContent":["import { a0 } from 'lib'\n\nconsole.log(a0)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,6SAAE"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js"],"sourcesContent":["export const a = 'a'\nexport const a_unused = 'a_unused'\n"],"names":["a","a_unused"],"mappings":"AAAO,MAAMA,IAAI;AACV,MAAMC,WAAW","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/index.js"],"sourcesContent":["import { a0 } from 'lib'\n\nconsole.log(a0)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,6SAAE"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js"],"sourcesContent":["export const a = 'a'\nexport const a_unused = 'a_unused'\n"],"names":["a","a_unused"],"mappings":"AAAO,MAAMA,IAAI;AACV,MAAMC,WAAW","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js index 159ea00f86e6..16ad07dc097b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/node_modules/lib/index.js [test] (ecmascript)"); ; console.log(`I like ${(0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$node_modules$2f$lib$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["getCat"])()}`); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/node_modules/lib/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/node_modules/lib/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; let cat = "cat"; @@ -26,7 +24,6 @@ __turbopack_context__.s([ 0, getCat ]); -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js.map index 398eea19e76f..ae6e9662c21e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/output/1jsg_tests_snapshot_intermediate-tree-shake_tree-shake-test-1_input_1mlxku40v_-py._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["import { getCat } from 'lib'\n\nconsole.log(`I like ${getCat()}`)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,CAAC,OAAO,EAAE,IAAA,0QAAM,KAAI"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/node_modules/lib/index.js"],"sourcesContent":["\nlet cat = \"cat\";\nlet dog = \"dog\";\n\nexport function getChimera() {\n return cat + dog;\n}\n\nexport function getCat() {\n return cat;\n}\n\nexport function getDog() {\n return dog;\n}\n\n"],"names":["cat","dog","getChimera","getCat","getDog"],"mappings":"AACA,IAAIA,MAAM;AACV,IAAIC,MAAM;AAEH,SAASC;IACd,OAAOF,MAAMC;AACf;AAEO,SAASE;IACd,OAAOH;AACT;AAEO,SAASI;IACd,OAAOH;AACT","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/index.js"],"sourcesContent":["import { getCat } from 'lib'\n\nconsole.log(`I like ${getCat()}`)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,CAAC,OAAO,EAAE,IAAA,0QAAM,KAAI"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/tree-shake-test-1/input/node_modules/lib/index.js"],"sourcesContent":["\nlet cat = \"cat\";\nlet dog = \"dog\";\n\nexport function getChimera() {\n return cat + dog;\n}\n\nexport function getCat() {\n return cat;\n}\n\nexport function getDog() {\n return dog;\n}\n\n"],"names":["cat","dog","getChimera","getCat","getDog"],"mappings":"AACA,IAAIA,MAAM;AACV,IAAIC,MAAM;AAEH,SAASC;IACd,OAAOF,MAAMC;AACf;AAEO,SAASE;IACd,OAAOH;AACT;AAEO,SAASI;IACd,OAAOH;AACT","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js index efb7dea21f8b..f95173f80549 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js @@ -1,3 +1,3 @@ -(()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)",t=>{t.s(["anotherLongExportName",0,"long-2","someLongExportName",0,"long-1"])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js [test] (ecmascript)",t=>{var s=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)"),e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)");console.log(s,e.z,e.T),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)",t=>{t.s(["T",0,"mangled-2","z",0,"mangled-1"])}]})(); +"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)",t=>{t.s(["anotherLongExportName",0,"long-2","someLongExportName",0,"long-1"])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js [test] (ecmascript)",t=>{var s=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)"),e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)");console.log(s,e.z,e.T),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)",t=>{t.s(["T",0,"mangled-2","z",0,"mangled-1"])}]; //# sourceMappingURL=1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map index 944ee30263f3..9aad6e2e268b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/output/1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map @@ -1 +1 @@ -{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js"],"sourcesContent":["// A namespace object of this module escapes, so it keeps its original export names.\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\n","import * as escaping from './escaping.js'\nimport { someLongExportName, anotherLongExportName } from './mangled.js'\n\nconst leak = () => escaping\n\nconsole.log(leak(), someLongExportName, anotherLongExportName)\n","// Nothing escapes here, so this module in the same graph is still mangled.\nexport const someLongExportName = 'mangled-1'\nexport const anotherLongExportName = 'mangled-2'\n"],"names":["someLongExportName","anotherLongExportName","leak","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)","console","log"],"mappings":"0MAEqC,gCADH,iJCDlC,IAAA,EAAA,EAAA,CAAA,CAAA,qIACA,EAAA,EAAA,CAAA,CAAA,oIAIAI,QAAQC,GAAG,CAFQF,AAEPD,EAAQ,EAAA,CAAkB,CAAE,EAAA,CAAqB,6JCHxB,kBADH"} \ No newline at end of file +{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js"],"sourcesContent":["// A namespace object of this module escapes, so it keeps its original export names.\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\n","import * as escaping from './escaping.js'\nimport { someLongExportName, anotherLongExportName } from './mangled.js'\n\nconst leak = () => escaping\n\nconsole.log(leak(), someLongExportName, anotherLongExportName)\n","// Nothing escapes here, so this module in the same graph is still mangled.\nexport const someLongExportName = 'mangled-1'\nexport const anotherLongExportName = 'mangled-2'\n"],"names":["someLongExportName","anotherLongExportName","leak","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)","console","log"],"mappings":"oMAEqC,gCADH,iJCDlC,IAAA,EAAA,EAAA,CAAA,CAAA,qIACA,EAAA,EAAA,CAAA,CAAA,oIAIAI,QAAQC,GAAG,CAFQF,AAEPD,EAAQ,EAAA,CAAkB,CAAE,EAAA,CAAqB,6JCHxB,kBADH"} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js index 358b1bf2ffd8..78a0525c7963 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js @@ -1,3 +1,3 @@ -(()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js [test] (ecmascript)",t=>{var e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)");console.log(e.a,e.$,e.z,e.T,(0,e.X)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)",t=>{t.s(["a",0,"a","X",0,function(){return"fn"},"T",0,"long-2","$",0,"bb","z",0,"long-1"])}]})(); +"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js [test] (ecmascript)",t=>{var e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)");console.log(e.a,e.$,e.z,e.T,(0,e.X)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)",t=>{t.s(["a",0,"a","X",0,function(){return"fn"},"T",0,"long-2","$",0,"bb","z",0,"long-1"])}]; //# sourceMappingURL=1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map index bc0f4a2b02a0..4ca849060cea 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/output/1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map @@ -1 +1 @@ -{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js"],"sourcesContent":["import {\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName,\n} from './lib.js'\n\nconsole.log(\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName()\n)\n","export const a = 'a'\nexport const bb = 'bb'\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\nexport const unusedLongExportName = 'unused'\n\nexport function aLongFunctionName() {\n return 'fn'\n}\n"],"names":["console","log","a","bb","someLongExportName","anotherLongExportName","unusedLongExportName","aLongFunctionName"],"mappings":"yKAAA,IAAA,EAAA,EAAA,CAAA,CAAA,iIAQAA,QAAQC,GAAG,CACT,EAAA,CAAC,CACD,EAAA,CAAE,CACF,EAAA,CAAkB,CAClB,EAAA,CAAqB,CACrB,CAAA,EAAA,EAAA,CAAA,AAAiB,6JCbF,UAMV,SAASM,EACd,MAAO,IACT,QALqC,eAFnB,WACgB"} \ No newline at end of file +{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js"],"sourcesContent":["import {\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName,\n} from './lib.js'\n\nconsole.log(\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName()\n)\n","export const a = 'a'\nexport const bb = 'bb'\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\nexport const unusedLongExportName = 'unused'\n\nexport function aLongFunctionName() {\n return 'fn'\n}\n"],"names":["console","log","a","bb","someLongExportName","anotherLongExportName","unusedLongExportName","aLongFunctionName"],"mappings":"mKAAA,IAAA,EAAA,EAAA,CAAA,CAAA,iIAQAA,QAAQC,GAAG,CACT,EAAA,CAAC,CACD,EAAA,CAAE,CACF,EAAA,CAAkB,CAClB,EAAA,CAAqB,CACrB,CAAA,EAAA,EAAA,CAAA,AAAiB,6JCbF,UAMV,SAASM,EACd,MAAO,IACT,QALqC,eAFnB,WACgB"} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js index 2acbc44df5c1..64ce5dd68db9 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js @@ -1,3 +1,3 @@ -(()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js [test] (ecmascript)",t=>{console.log((0,t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)").f)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)",t=>{t.s(["f",0,function(){return"lone"}])}]})(); +"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js [test] (ecmascript)",t=>{console.log((0,t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)").f)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)",t=>{t.s(["f",0,function(){return"lone"}])}]; //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map index 5579f88c953a..94946f6bcbf3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/output/0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map @@ -1 +1 @@ -{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js"],"sourcesContent":["import { aLongFunctionNameNobodyWantsInTheBundle } from './lone'\n\nconsole.log(aLongFunctionNameNobodyWantsInTheBundle())\n","// The only export of this module. It is emitted under the fixed single-export key rather than a\n// hashed one, so that every single-export module in the graph produces the same `.f` byte sequence\n// and gzip can share it. Visible in the committed output below.\nexport function aLongFunctionNameNobodyWantsInTheBundle() {\n return 'lone'\n}\n"],"names":["console","log","aLongFunctionNameNobodyWantsInTheBundle"],"mappings":"mKAEAA,QAAQC,GAAG,CAAC,CAAA,EAFZ,AAEY,EAFZ,CAAA,CAAA,4HAEY,CAAA,AAAuC,wJCC5C,SAASC,EACd,MAAO,MACT"} \ No newline at end of file +{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js"],"sourcesContent":["import { aLongFunctionNameNobodyWantsInTheBundle } from './lone'\n\nconsole.log(aLongFunctionNameNobodyWantsInTheBundle())\n","// The only export of this module. It is emitted under the fixed single-export key rather than a\n// hashed one, so that every single-export module in the graph produces the same `.f` byte sequence\n// and gzip can share it. Visible in the committed output below.\nexport function aLongFunctionNameNobodyWantsInTheBundle() {\n return 'lone'\n}\n"],"names":["console","log","aLongFunctionNameNobodyWantsInTheBundle"],"mappings":"6JAEAA,QAAQC,GAAG,CAAC,CAAA,EAFZ,AAEY,EAFZ,CAAA,CAAA,4HAEY,CAAA,AAAuC,wJCC5C,SAASC,EACd,MAAO,MACT"} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js b/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js index 9cfe6fccfe4c..6b2698266837 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js @@ -1,64 +1,56 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/[root-of-the-server]__0vvunn2xahlr6._.js", -"[externals]/bun [external] (bun, cjs)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/[root-of-the-server]__0vvunn2xahlr6._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/input/index.js [test] (ecmascript)",((__turbopack_context__) => { +"use strict"; + +__turbopack_context__.s([]); +// Test that Bun builtins are treated as external +var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$ffi__$5b$external$5d$__$28$bun$3a$ffi$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:ffi [external] (bun:ffi, cjs)"); +var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$jsc__$5b$external$5d$__$28$bun$3a$jsc$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:jsc [external] (bun:jsc, cjs)"); +var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$sqlite__$5b$external$5d$__$28$bun$3a$sqlite$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:sqlite [external] (bun:sqlite, cjs)"); +var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$test__$5b$external$5d$__$28$bun$3a$test$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:test [external] (bun:test, cjs)"); +var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$wrap__$5b$external$5d$__$28$bun$3a$wrap$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:wrap [external] (bun:wrap, cjs)"); +var __TURBOPACK__imported__module__$5b$externals$5d2f$bun__$5b$external$5d$__$28$bun$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun [external] (bun, cjs)"); +; +; +; +; +; +; +console.log('bun:ffi:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$ffi__$5b$external$5d$__$28$bun$3a$ffi$2c$__cjs$29$__["default"]); +console.log('bun:jsc:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$jsc__$5b$external$5d$__$28$bun$3a$jsc$2c$__cjs$29$__["default"]); +console.log('bun:sqlite:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$sqlite__$5b$external$5d$__$28$bun$3a$sqlite$2c$__cjs$29$__["default"]); +console.log('bun:test:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$test__$5b$external$5d$__$28$bun$3a$test$2c$__cjs$29$__["default"]); +console.log('bun:wrap:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$wrap__$5b$external$5d$__$28$bun$3a$wrap$2c$__cjs$29$__["default"]); +console.log('bun:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun__$5b$external$5d$__$28$bun$2c$__cjs$29$__["default"]); +}),"[externals]/bun [external] (bun, cjs)",((__turbopack_context__, module, exports) => { var mod = __turbopack_context__.x("bun", () => require("bun")); module.exports = mod; -}), -"[externals]/bun:ffi [external] (bun:ffi, cjs)", ((__turbopack_context__, module, exports) => { +}),"[externals]/bun:ffi [external] (bun:ffi, cjs)",((__turbopack_context__, module, exports) => { var mod = __turbopack_context__.x("bun:ffi", () => require("bun:ffi")); module.exports = mod; -}), -"[externals]/bun:jsc [external] (bun:jsc, cjs)", ((__turbopack_context__, module, exports) => { +}),"[externals]/bun:jsc [external] (bun:jsc, cjs)",((__turbopack_context__, module, exports) => { var mod = __turbopack_context__.x("bun:jsc", () => require("bun:jsc")); module.exports = mod; -}), -"[externals]/bun:sqlite [external] (bun:sqlite, cjs)", ((__turbopack_context__, module, exports) => { +}),"[externals]/bun:sqlite [external] (bun:sqlite, cjs)",((__turbopack_context__, module, exports) => { var mod = __turbopack_context__.x("bun:sqlite", () => require("bun:sqlite")); module.exports = mod; -}), -"[externals]/bun:test [external] (bun:test, cjs)", ((__turbopack_context__, module, exports) => { +}),"[externals]/bun:test [external] (bun:test, cjs)",((__turbopack_context__, module, exports) => { var mod = __turbopack_context__.x("bun:test", () => require("bun:test")); module.exports = mod; -}), -"[externals]/bun:wrap [external] (bun:wrap, cjs)", ((__turbopack_context__, module, exports) => { +}),"[externals]/bun:wrap [external] (bun:wrap, cjs)",((__turbopack_context__, module, exports) => { var mod = __turbopack_context__.x("bun:wrap", () => require("bun:wrap")); module.exports = mod; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { -"use strict"; - -__turbopack_context__.s([]); -// Test that Bun builtins are treated as external -var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$ffi__$5b$external$5d$__$28$bun$3a$ffi$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:ffi [external] (bun:ffi, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$jsc__$5b$external$5d$__$28$bun$3a$jsc$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:jsc [external] (bun:jsc, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$sqlite__$5b$external$5d$__$28$bun$3a$sqlite$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:sqlite [external] (bun:sqlite, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$test__$5b$external$5d$__$28$bun$3a$test$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:test [external] (bun:test, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$wrap__$5b$external$5d$__$28$bun$3a$wrap$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun:wrap [external] (bun:wrap, cjs)"); -var __TURBOPACK__imported__module__$5b$externals$5d2f$bun__$5b$external$5d$__$28$bun$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/bun [external] (bun, cjs)"); -; -; -; -; -; -; -console.log('bun:ffi:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$ffi__$5b$external$5d$__$28$bun$3a$ffi$2c$__cjs$29$__["default"]); -console.log('bun:jsc:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$jsc__$5b$external$5d$__$28$bun$3a$jsc$2c$__cjs$29$__["default"]); -console.log('bun:sqlite:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$sqlite__$5b$external$5d$__$28$bun$3a$sqlite$2c$__cjs$29$__["default"]); -console.log('bun:test:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$test__$5b$external$5d$__$28$bun$3a$test$2c$__cjs$29$__["default"]); -console.log('bun:wrap:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun$3a$wrap__$5b$external$5d$__$28$bun$3a$wrap$2c$__cjs$29$__["default"]); -console.log('bun:', __TURBOPACK__imported__module__$5b$externals$5d2f$bun__$5b$external$5d$__$28$bun$2c$__cjs$29$__["default"]); -}), -]); +})]); //# sourceMappingURL=%5Broot-of-the-server%5D__0vvunn2xahlr6._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js.map index c8cda5a3faf6..9ef2babe611f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/output/[root-of-the-server]__0vvunn2xahlr6._.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/input/index.js"],"sourcesContent":["// Test that Bun builtins are treated as external\nimport bunFfi from 'bun:ffi'\nimport bunJsc from 'bun:jsc'\nimport bunSqlite from 'bun:sqlite'\nimport bunTest from 'bun:test'\nimport bunWrap from 'bun:wrap'\nimport bun from 'bun'\n\nconsole.log('bun:ffi:', bunFfi)\nconsole.log('bun:jsc:', bunJsc)\nconsole.log('bun:sqlite:', bunSqlite)\nconsole.log('bun:test:', bunTest)\nconsole.log('bun:wrap:', bunWrap)\nconsole.log('bun:', bun)\n"],"names":["console","log"],"mappings":";AAAA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;;;;;;;AAEAA,QAAQC,GAAG,CAAC,YAAY,wHAAM;AAC9BD,QAAQC,GAAG,CAAC,YAAY,wHAAM;AAC9BD,QAAQC,GAAG,CAAC,eAAe,8HAAS;AACpCD,QAAQC,GAAG,CAAC,aAAa,0HAAO;AAChCD,QAAQC,GAAG,CAAC,aAAa,0HAAO;AAChCD,QAAQC,GAAG,CAAC,QAAQ,0GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/bun_protocol_external/input/index.js"],"sourcesContent":["// Test that Bun builtins are treated as external\nimport bunFfi from 'bun:ffi'\nimport bunJsc from 'bun:jsc'\nimport bunSqlite from 'bun:sqlite'\nimport bunTest from 'bun:test'\nimport bunWrap from 'bun:wrap'\nimport bun from 'bun'\n\nconsole.log('bun:ffi:', bunFfi)\nconsole.log('bun:jsc:', bunJsc)\nconsole.log('bun:sqlite:', bunSqlite)\nconsole.log('bun:test:', bunTest)\nconsole.log('bun:wrap:', bunWrap)\nconsole.log('bun:', bun)\n"],"names":["console","log"],"mappings":";AAAA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;;;;;;;AAEAA,QAAQC,GAAG,CAAC,YAAY,wHAAM;AAC9BD,QAAQC,GAAG,CAAC,YAAY,wHAAM;AAC9BD,QAAQC,GAAG,CAAC,eAAe,8HAAS;AACpCD,QAAQC,GAAG,CAAC,aAAa,0HAAO;AAChCD,QAAQC,GAAG,CAAC,aAAa,0HAAO;AAChCD,QAAQC,GAAG,CAAC,QAAQ,0GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js b/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js index 0c319b50ff32..f59120094c90 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js @@ -1,11 +1,9 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__url__external__node$3a$fs__ = __turbopack_context__.x("node:fs", ()=>require("node:fs"), true); ; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js.map index 09d4445edb8d..a2e2231443a8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/output/1jsg_tests_snapshot_node_node_protocol_external_input_index_0b9bpmts2pa7f.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/input/index.js"],"sourcesContent":["import fs from 'node:fs'\n"],"names":[],"mappings":";AAAA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/node_protocol_external/input/index.js"],"sourcesContent":["import fs from 'node:fs'\n"],"names":[],"mappings":";AAAA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js index 689c8564040e..b1be343aedfa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -11,8 +10,7 @@ const program = [ const proc = (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node$2f$spawn_dynamic$2f$input$2f$node_modules$2f$child_process$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["spawn"])(program[0], [ '-la' ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/node_modules/child_process/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/node_modules/child_process/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,7 +20,6 @@ __turbopack_context__.s([ function spawn(cmd, args) { // } -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js.map index 1cb671128fbd..321ba8946f7f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_dynamic_input_0ow1swaxdiv8b._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/index.js"],"sourcesContent":["import { spawn } from 'child_process'\n\nconst program = ['ls']\nconst proc = spawn(program[0], ['-la'])\n"],"names":["program","proc"],"mappings":";AAAA;;AAEA,MAAMA,UAAU;IAAC;CAAK;AACtB,MAAMC,OAAO,IAAA,6OAAK,EAACD,OAAO,CAAC,EAAE,EAAE;IAAC;CAAM"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":["spawn","cmd","args"],"mappings":";;;;AAAO,SAASA,MAAMC,GAAG,EAAEC,IAAI;AAC7B,EAAE;AACJ","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/index.js"],"sourcesContent":["import { spawn } from 'child_process'\n\nconst program = ['ls']\nconst proc = spawn(program[0], ['-la'])\n"],"names":["program","proc"],"mappings":";AAAA;;AAEA,MAAMA,UAAU;IAAC;CAAK;AACtB,MAAMC,OAAO,IAAA,6OAAK,EAACD,OAAO,CAAC,EAAE,EAAE;IAAC;CAAM"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":["spawn","cmd","args"],"mappings":";;;;AAAO,SAASA,MAAMC,GAAG,EAAEC,IAAI;AAC7B,EAAE;AACJ","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js index 55fd3f3f6d43..a57c2d30b479 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -9,8 +8,7 @@ let x = (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ '-e', "console.log('foo');" ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/node_modules/child_process/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/node_modules/child_process/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -20,7 +18,6 @@ __turbopack_context__.s([ function spawn(cmd, args) { // } -}), -]);})() +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js.map index 8fd6ac7d0d6b..7fbf66b50f08 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/output/1do3_crates_turbopack-tests_tests_snapshot_node_spawn_node_eval_input_2055vpqzks2dy._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/index.js"],"sourcesContent":["import { spawn } from 'child_process'\n\nlet x = spawn(process.argv[0], ['-e', \"console.log('foo');\"])\n"],"names":["x","process","argv"],"mappings":";AAAA;;AAEA,IAAIA,IAAI,IAAA,+OAAK,EAACC,QAAQC,IAAI,CAAC,EAAE,EAAE;IAAC;IAAM;CAAsB"}}, - {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":["spawn","cmd","args"],"mappings":";;;;AAAO,SAASA,MAAMC,GAAG,EAAEC,IAAI;AAC7B,EAAE;AACJ","ignoreList":[0]}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/index.js"],"sourcesContent":["import { spawn } from 'child_process'\n\nlet x = spawn(process.argv[0], ['-e', \"console.log('foo');\"])\n"],"names":["x","process","argv"],"mappings":";AAAA;;AAEA,IAAIA,IAAI,IAAA,+OAAK,EAACC,QAAQC,IAAI,CAAC,EAAE,EAAE;IAAC;IAAM;CAAsB"}}, + {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":["spawn","cmd","args"],"mappings":";;;;AAAO,SAASA,MAAMC,GAAG,EAAEC,IAAI;AAC7B,EAAE;AACJ","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js b/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js index 01bfc7b198b3..f345f667ea06 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // MERGED MODULE: [project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/index.js [test] (ecmascript) @@ -42,7 +41,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$ns$2d$value$2d$reexport$2f$named$2d$import$2f$input$2f$external$2e$js__$5b$test$5d$__$28$ecmascript$29$__.object(), __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$ns$2d$value$2d$reexport$2f$named$2d$import$2f$input$2f$external$2e$js__$5b$test$5d$__$28$ecmascript$29$__1.string(), __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$ns$2d$value$2d$reexport$2f$named$2d$import$2f$input$2f$external$2e$js__$5b$test$5d$__$28$ecmascript$29$__2.defaultLocale); __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/index.js [test] (ecmascript)"); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js.map index 1c90870f457a..67a3d3e75859 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/output/1jsg_tests_snapshot_ns-value-reexport_named-import_input_index_1a3a-lomo0k0u.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/locales/en.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/external.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/index.js"],"sourcesContent":["export default 'EN_USED_MARKER'\n","// Mirrors `zod/v4/classic/external.js`.\nimport en from './locales/en.js'\n\nexport * as locales from './locales/index.js'\n\nexport const object = () => 'object'\nexport const string = () => 'string'\nexport const defaultLocale = en\n","// The real-world zod shape: `z` is a namespace that lib.js hands out as a plain\n// value, and the consumer only ever reads static members of it.\nimport { z } from './lib.js'\n\nconsole.log(z.object(), z.string(), z.defaultLocale)\n"],"names":[],"mappings":";;;;;;;;;;uCAAe;;;ACKR,MAAM,SAAS,IAAM;AACrB,MAAM,SAAS,IAAM;AACrB,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;ACH7B,QAAQ,GAAG,CAAC,4NAAE,MAAM,IAAI,6NAAE,MAAM,IAAI,6NAAE,aAAa"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/locales/en.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/external.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/ns-value-reexport/named-import/input/index.js"],"sourcesContent":["export default 'EN_USED_MARKER'\n","// Mirrors `zod/v4/classic/external.js`.\nimport en from './locales/en.js'\n\nexport * as locales from './locales/index.js'\n\nexport const object = () => 'object'\nexport const string = () => 'string'\nexport const defaultLocale = en\n","// The real-world zod shape: `z` is a namespace that lib.js hands out as a plain\n// value, and the consumer only ever reads static members of it.\nimport { z } from './lib.js'\n\nconsole.log(z.object(), z.string(), z.defaultLocale)\n"],"names":[],"mappings":";;;;;;;;;;uCAAe;;;ACKR,MAAM,SAAS,IAAM;AACrB,MAAM,SAAS,IAAM;AACrB,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;ACH7B,QAAQ,GAAG,CAAC,4NAAE,MAAM,IAAI,6NAAE,MAAM,IAAI,6NAAE,aAAa"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js index 27ff752a3ea6..2f6422937880 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { async function load() { const { used } = await __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js [test] (ecmascript, async loader)"); console.log(used); } load(); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js.map index 32c7ae45b82a..332178d7b2f5 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_index_14t7f_000kthh.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/index.js"],"sourcesContent":["async function load() {\n const { used } = await import('./lib.js')\n console.log(used)\n}\n\nload()\n"],"names":["load","used","console","log"],"mappings":"AAAA,eAAeA;IACb,MAAM,EAAEC,IAAI,EAAE,GAAG;IACjBC,QAAQC,GAAG,CAACF;AACd;AAEAD"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/index.js"],"sourcesContent":["async function load() {\n const { used } = await import('./lib.js')\n console.log(used)\n}\n\nload()\n"],"names":["load","used","console","log"],"mappings":"AAAA,eAAeA;IACb,MAAM,EAAEC,IAAI,EAAE,GAAG;IACjBC,QAAQC,GAAG,CAACF;AACd;AAEAD"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js index a87e47e33c4d..3b6d3f1b3108 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; const used = 'USED'; @@ -9,7 +8,6 @@ __turbopack_context__.s([ 0, used ]); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js.map index d40e626d9fc2..65a8de1f35cd 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_02nzs5r5h3jv8.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js"],"sourcesContent":["export const used = 'USED'\nexport { unused } from './unused.js'\n"],"names":["used"],"mappings":"AAAO,MAAMA,OAAO"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js"],"sourcesContent":["export const used = 'USED'\nexport { unused } from './unused.js'\n"],"names":["used"],"mappings":"AAAO,MAAMA,OAAO"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_1byl5h_0_o1mx.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_1byl5h_0_o1mx.js index 2e0ac75b67b6..123653b63b75 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_1byl5h_0_o1mx.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_1byl5h_0_o1mx.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_1byl5h_0_o1mx.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_basic_input_lib_1byl5h_0_o1mx.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/basic/input/lib.js [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js index 7f4cd31c4269..49f163416ee7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { async function load() { const { used } = await __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js [test] (ecmascript, async loader)"); console.log(used); } load(); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js.map index 4deb993cdf4a..c9b4804cad64 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_index_138bkaefvbc_e.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/index.js"],"sourcesContent":["async function load() {\n const { used } = await import('./lib.js')\n console.log(used)\n}\n\nload()\n"],"names":["load","used","console","log"],"mappings":"AAAA,eAAeA;IACb,MAAM,EAAEC,IAAI,EAAE,GAAG;IACjBC,QAAQC,GAAG,CAACF;AACd;AAEAD"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/index.js"],"sourcesContent":["async function load() {\n const { used } = await import('./lib.js')\n console.log(used)\n}\n\nload()\n"],"names":["load","used","console","log"],"mappings":"AAAA,eAAeA;IACb,MAAM,EAAEC,IAAI,EAAE,GAAG;IACjBC,QAAQC,GAAG,CAACF;AACd;AAEAD"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_0z3c-hfbiu2aw.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_0z3c-hfbiu2aw.js index cf290b106388..c11a79f375dc 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_0z3c-hfbiu2aw.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_0z3c-hfbiu2aw.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_0z3c-hfbiu2aw.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_0z3c-hfbiu2aw.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -8,5 +7,4 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js [test] (ecmascript)"); }); }); -}), -]); \ No newline at end of file +})]); \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js index 0191e087f43f..003cde4fd94a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; const used = 'USED'; @@ -9,7 +8,6 @@ __turbopack_context__.s([ 0, used ]); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js.map index c30dd0e84abd..d48107d70c07 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_dynamic_input_lib_1_1s1zh9c-wnd.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js"],"sourcesContent":["export const used = 'USED'\nexport { unused } from './unused.js'\n"],"names":["used"],"mappings":"AAAO,MAAMA,OAAO"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/dynamic/input/lib.js"],"sourcesContent":["export const used = 'USED'\nexport { unused } from './unused.js'\n"],"names":["used"],"mappings":"AAAO,MAAMA,OAAO"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js index b2f6682ac89c..3c6301c0083e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // MERGED MODULE: [project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/index.js [test] (ecmascript) @@ -14,7 +13,6 @@ const x = 'X_USED_MARKER'; ; console.log(x); __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/index.js [test] (ecmascript)"); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js.map index 3eb6f0af242d..0dd65f4f2837 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_renamed_input_index_19qb5neid-n2p.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/origin.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/index.js"],"sourcesContent":["export const x = 'X_USED_MARKER'\n","import { y } from './lib.js'\n\nconsole.log(y)\n"],"names":["x"],"mappings":";;;;;;AAAO,MAAMA,IAAI;;;;ACEjB,QAAQ,GAAG,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/origin.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/renamed/input/index.js"],"sourcesContent":["export const x = 'X_USED_MARKER'\n","import { y } from './lib.js'\n\nconsole.log(y)\n"],"names":["x"],"mappings":";;;;;;AAAO,MAAMA,IAAI;;;;ACEjB,QAAQ,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js index d97bf049e5e9..b01c722e3951 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // MERGED MODULE: [project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/index.js [test] (ecmascript) @@ -11,7 +10,6 @@ const used = 'USED'; ; console.log(used); __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/index.js [test] (ecmascript)"); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js.map index 3bbd30d067bc..4c958ceedac8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/output/0_9x_turbopack-tests_tests_snapshot_reexport-drop_static_input_index_01ttfgs8-aby6.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/lib.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/index.js"],"sourcesContent":["export const used = 'USED'\nexport { unused } from './unused.js'\n","import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["used"],"mappings":";;;;AAAO,MAAMA,OAAO;;;ACEpB,QAAQ,GAAG,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/lib.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-drop/static/input/index.js"],"sourcesContent":["export const used = 'USED'\nexport { unused } from './unused.js'\n","import { used } from './lib.js'\n\nconsole.log(used)\n"],"names":["used"],"mappings":";;;;AAAO,MAAMA,OAAO;;;ACEpB,QAAQ,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js index 45e93c11111f..7c889a5025a4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -10,8 +9,7 @@ __turbopack_context__.s([ ]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$comma$2d$name$2f$input$2f$src$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/src.js [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/src.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/src.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -23,7 +21,6 @@ __turbopack_context__.s([ const value = 'comma-value'; const plain = 'plain-value'; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js.map index 35465063fa76..e073d8c4f1b7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/output/1jsg_tests_snapshot_reexport-registration_comma-name_input_0ccl38l1mvgtd._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/index.js"],"sourcesContent":["export { 'has,comma', plain } from './src'\n"],"names":[],"mappings":";;;;;;AAAA"}}, - {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/src.js"],"sourcesContent":["const value = 'comma-value'\nconst plain = 'plain-value'\n\n// An export name containing a comma cannot be recovered by splitting the\n// compact single-string spelling, so this forces the pair encoding.\nexport { value as 'has,comma', plain }\n"],"names":["value","plain"],"mappings":";;;;;;AAAA,MAAMA,QAAQ;AACd,MAAMC,QAAQ"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/index.js"],"sourcesContent":["export { 'has,comma', plain } from './src'\n"],"names":[],"mappings":";;;;;;AAAA"}}, + {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/comma-name/input/src.js"],"sourcesContent":["const value = 'comma-value'\nconst plain = 'plain-value'\n\n// An export name containing a comma cannot be recovered by splitting the\n// compact single-string spelling, so this forces the pair encoding.\nexport { value as 'has,comma', plain }\n"],"names":["value","plain"],"mappings":";;;;;;AAAA,MAAMA,QAAQ;AACd,MAAMC,QAAQ"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js index fbe438828383..8ba3f78fe5bc 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,8 +6,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$reexports$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$reexports$2e$js__$5b$test$5d$__$28$ecmascript$29$__); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/order.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/order.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -16,8 +14,7 @@ __turbopack_context__.s([ ()=>order ]); const order = []; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -29,8 +26,7 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$reexports$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$locals$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript) "); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$x$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/x.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$y$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/y.js [test] (ecmascript)"); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript) ", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript) ",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -41,8 +37,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$order$2e$js__$5b$test$5d$__$28$ecmascript$29$__["order"].push('locals'); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/x.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/x.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -53,8 +48,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$order$2e$js__$5b$test$5d$__$28$ecmascript$29$__["order"].push('x'); const x = 'x'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/y.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/y.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -65,7 +59,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$all$2d$reexports$2f$input$2f$order$2e$js__$5b$test$5d$__$28$ecmascript$29$__["order"].push('y'); const y = 'y'; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js.map index 1a47714c3650..7f60274594d3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/output/1jsg_tests_snapshot_reexport-registration_facade-all-reexports_input_1oc31h4h4q924._.js.map @@ -2,9 +2,9 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/index.js"],"sourcesContent":["import * as namespace from './reexports'\n\nconsole.log(namespace)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript)"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAACC"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/order.js"],"sourcesContent":["export const order = []\n"],"names":["order"],"mappings":";;;;AAAO,MAAMA,QAAQ,EAAE"}}, - {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js"],"sourcesContent":["import { order } from './order'\n\nexport { x } from './x'\nexport { y } from './y'\n\norder.push('locals')\n"],"names":["push"],"mappings":";AAAA;AAEA;AACA;;;;AAEA,6OAAK,CAACA,IAAI,CAAC"}}, - {"offset": {"line": 47, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/x.js"],"sourcesContent":["import { order } from './order'\n\norder.push('x')\n\nexport const x = 'x'\n"],"names":["push","x"],"mappings":";;;;AAAA;;AAEA,6OAAK,CAACA,IAAI,CAAC;AAEJ,MAAMC,IAAI"}}, - {"offset": {"line": 59, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/y.js"],"sourcesContent":["import { order } from './order'\n\norder.push('y')\n\nexport const y = 'y'\n"],"names":["push","y"],"mappings":";;;;AAAA;;AAEA,6OAAK,CAACA,IAAI,CAAC;AAEJ,MAAMC,IAAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/index.js"],"sourcesContent":["import * as namespace from './reexports'\n\nconsole.log(namespace)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js [test] (ecmascript)"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAACC"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/order.js"],"sourcesContent":["export const order = []\n"],"names":["order"],"mappings":";;;;AAAO,MAAMA,QAAQ,EAAE"}}, + {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/reexports.js"],"sourcesContent":["import { order } from './order'\n\nexport { x } from './x'\nexport { y } from './y'\n\norder.push('locals')\n"],"names":["push"],"mappings":";AAAA;AAEA;AACA;;;;AAEA,6OAAK,CAACA,IAAI,CAAC"}}, + {"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/x.js"],"sourcesContent":["import { order } from './order'\n\norder.push('x')\n\nexport const x = 'x'\n"],"names":["push","x"],"mappings":";;;;AAAA;;AAEA,6OAAK,CAACA,IAAI,CAAC;AAEJ,MAAMC,IAAI"}}, + {"offset": {"line": 53, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-all-reexports/input/y.js"],"sourcesContent":["import { order } from './order'\n\norder.push('y')\n\nexport const y = 'y'\n"],"names":["push","y"],"mappings":";;;;AAAA;;AAEA,6OAAK,CAACA,IAAI,CAAC;AAEJ,MAAMC,IAAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js index 60da093b6bdf..b0341b8005ba 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0p5q_snapshot_reexport-registration_facade-scope-hoisted-shared_input_1eumi0vat9fx1._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0p5q_snapshot_reexport-registration_facade-scope-hoisted-shared_input_1eumi0vat9fx1._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,8 +6,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$scope$2d$hoisted$2d$shared$2f$input$2f$x$2e$js__$5b$test$5d$__$28$ecmascript$29$__); Promise.resolve().then(()=>__turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/reexports.js [test] (ecmascript)")).then((namespace)=>console.log(namespace)); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/reexports.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/reexports.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -21,8 +19,7 @@ __turbopack_context__.s([ ; ; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$facade$2d$scope$2d$hoisted$2d$shared$2f$input$2f$x$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js [test] (ecmascript)"); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -30,8 +27,7 @@ __turbopack_context__.s([ ()=>x ]); const x = 'x'; -}), -]);})()(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ +})]);(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ "output/17f0_snapshot_reexport-registration_facade-scope-hoisted-shared_input_1uvpd4s77o2u3._.js", {"otherChunks":[],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/index.js [test] (ecmascript)"]} ]); diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js.map index 6d0097306348..f2a6691da1f8 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/output/index.entry.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/index.js"],"sourcesContent":["import * as source from './x'\n\nconsole.log(source)\nimport('./reexports').then((namespace) => console.log(namespace))\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js [test] (ecmascript)","then","namespace"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAACC;AACZ,0MAAsBC,IAAI,CAAC,CAACC,YAAcJ,QAAQC,GAAG,CAACG"}}, - {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, - {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js"],"sourcesContent":["export const x = 'x'\n"],"names":["x"],"mappings":";;;;AAAO,MAAMA,IAAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/index.js"],"sourcesContent":["import * as source from './x'\n\nconsole.log(source)\nimport('./reexports').then((namespace) => console.log(namespace))\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js [test] (ecmascript)","then","namespace"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAACC;AACZ,0MAAsBC,IAAI,CAAC,CAACC,YAAcJ,QAAQC,GAAG,CAACG"}}, + {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, + {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/facade-scope-hoisted-shared/input/x.js"],"sourcesContent":["export const x = 'x'\n"],"names":["x"],"mappings":";;;;AAAO,MAAMA,IAAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js index d0e7bbbfab97..61308f10737f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/first.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/first.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -11,8 +10,7 @@ __turbopack_context__.s([ const comma = 'comma-value'; const b = 'b-value'; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -29,8 +27,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$mixed$2d$encoding$2f$input$2f$second$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/second.js [test] (ecmascript)"); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/second.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/second.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -38,7 +35,6 @@ __turbopack_context__.s([ ()=>c ]); const c = 'c-value'; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js.map index 68f31b7bd638..0fbbf5ce3d2f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/output/1jsg_tests_snapshot_reexport-registration_mixed-encoding_input_1rptxwi6ak5m1._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/first.js"],"sourcesContent":["const comma = 'comma-value'\nexport const b = 'b-value'\n\nexport { comma as 'has,comma' }\n"],"names":["comma","b"],"mappings":";;;;;;AAAA,MAAMA,QAAQ;AACP,MAAMC,IAAI"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/index.js"],"sourcesContent":["// The first group contains a comma and needs pair encoding. The second is\n// comma-free and should still use compact encoding in the same registration.\nexport { 'has,comma', b } from './first'\nexport { c } from './second'\n"],"names":[],"mappings":";;;;;;;;AAAA,0EAA0E;AAC1E,6EAA6E;AAC7E;AACA"}}, - {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/second.js"],"sourcesContent":["export const c = 'c-value'\n"],"names":["c"],"mappings":";;;;AAAO,MAAMA,IAAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/first.js"],"sourcesContent":["const comma = 'comma-value'\nexport const b = 'b-value'\n\nexport { comma as 'has,comma' }\n"],"names":["comma","b"],"mappings":";;;;;;AAAA,MAAMA,QAAQ;AACP,MAAMC,IAAI"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/index.js"],"sourcesContent":["// The first group contains a comma and needs pair encoding. The second is\n// comma-free and should still use compact encoding in the same registration.\nexport { 'has,comma', b } from './first'\nexport { c } from './second'\n"],"names":[],"mappings":";;;;;;;;AAAA,0EAA0E;AAC1E,6EAA6E;AAC7E;AACA"}}, + {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/mixed-encoding/input/second.js"],"sourcesContent":["export const c = 'c-value'\n"],"names":["c"],"mappings":";;;;AAAO,MAAMA,IAAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js index 60ee9cfe7811..8cbf616e91fa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/a.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/a.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -10,8 +9,7 @@ __turbopack_context__.s([ ]); const a = 'a'; const b = 'b'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -23,7 +21,6 @@ __turbopack_context__.s([ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$reexport$2d$registration$2f$plain$2d$reexports$2f$input$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/a.js [test] (ecmascript)"); ; ; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js.map index 16a93ac4c3c9..7b55240fefe4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/output/1jsg_tests_snapshot_reexport-registration_plain-reexports_input_01u9pft4u-jgg._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/a.js"],"sourcesContent":["export const a = 'a'\nexport const b = 'b'\n"],"names":["a","b"],"mappings":";;;;;;AAAO,MAAMA,IAAI;AACV,MAAMC,IAAI"}}, - {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/index.js"],"sourcesContent":["export { a } from './a'\nexport { b } from './a'\n"],"names":[],"mappings":";;;;;;AAAA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/a.js"],"sourcesContent":["export const a = 'a'\nexport const b = 'b'\n"],"names":["a","b"],"mappings":";;;;;;AAAO,MAAMA,IAAI;AACV,MAAMC,IAAI"}}, + {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/plain-reexports/input/index.js"],"sourcesContent":["export { a } from './a'\nexport { b } from './a'\n"],"names":[],"mappings":";;;;;;AAAA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js index a9648bf31ffa..b3d3ba9dccbb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/first.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/first.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -10,8 +9,7 @@ __turbopack_context__.s([ ]); const a = 'a-value'; const b = 'b-value'; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -29,8 +27,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/second.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/second.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -38,7 +35,6 @@ __turbopack_context__.s([ ()=>c ]); const c = 'c-value'; -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js.map index d1a534b2fe6e..b84c569d6940 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/output/1jsg_tests_snapshot_reexport-registration_two-sources_input_0yi379fq8b8cq._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/first.js"],"sourcesContent":["export const a = 'a-value'\nexport const b = 'b-value'\n"],"names":["a","b"],"mappings":";;;;;;AAAO,MAAMA,IAAI;AACV,MAAMC,IAAI"}}, - {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/index.js"],"sourcesContent":["// Two source modules, so the registration needs a second group -- and therefore\n// the `0` separator between them.\nexport { a } from './first'\nexport { b } from './first'\nexport { c } from './second'\n"],"names":[],"mappings":";;;;;;;;AAAA,gFAAgF;AAChF,kCAAkC;AAClC;AAEA"}}, - {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/second.js"],"sourcesContent":["export const c = 'c-value'\n"],"names":["c"],"mappings":";;;;AAAO,MAAMA,IAAI"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/first.js"],"sourcesContent":["export const a = 'a-value'\nexport const b = 'b-value'\n"],"names":["a","b"],"mappings":";;;;;;AAAO,MAAMA,IAAI;AACV,MAAMC,IAAI"}}, + {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/index.js"],"sourcesContent":["// Two source modules, so the registration needs a second group -- and therefore\n// the `0` separator between them.\nexport { a } from './first'\nexport { b } from './first'\nexport { c } from './second'\n"],"names":[],"mappings":";;;;;;;;AAAA,gFAAgF;AAChF,kCAAkC;AAClC;AAEA"}}, + {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/reexport-registration/two-sources/input/second.js"],"sourcesContent":["export const c = 'c-value'\n"],"names":["c"],"mappings":";;;;AAAO,MAAMA,IAAI"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js index 4277ed47b674..4596b78bf2b1 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/a.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/a.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$remove$2d$unused$2d$imports$2f$exports$2f$input$2f$library$2f$y$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/y.js [test] (ecmascript)"); @@ -20,16 +19,14 @@ __turbopack_context__.s([ 0, used ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$remove$2d$unused$2d$imports$2f$exports$2f$input$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/a.js [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$remove$2d$unused$2d$imports$2f$exports$2f$input$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__["used"]); __turbopack_context__.s([]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/leaf.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/leaf.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; function leafX() {} @@ -39,8 +36,7 @@ __turbopack_context__.s([ 0, leafY ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/shared.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/shared.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$remove$2d$unused$2d$imports$2f$exports$2f$input$2f$library$2f$leaf$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/leaf.js [test] (ecmascript)"); @@ -56,8 +52,7 @@ __turbopack_context__.s([ 0, sharedY ]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/y.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/y.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$remove$2d$unused$2d$imports$2f$exports$2f$input$2f$library$2f$shared$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/shared.js [test] (ecmascript)"); @@ -71,7 +66,6 @@ __turbopack_context__.s([ 0, y ]); -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js.map index 7310679ecc6b..817c1e65512b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/output/1jsg_tests_snapshot_remove-unused-imports_exports_input_07rt4kfe5xt7p._.js.map @@ -2,9 +2,9 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/a.js"],"sourcesContent":["import { x } from './library/x.js'\nimport { y } from './library/y.js'\n\ny()\n\nfunction helper() {\n return x()\n}\n\nexport function unused() {\n return helper()\n}\n\nexport function used() {\n return 1234\n}\n"],"names":["helper","x","unused","used"],"mappings":"AACA;;;AAEA,IAAA,gOAAC;AAED,SAASA;IACP,OAAOC;AACT;AAEO,SAASC;IACd,OAAOF;AACT;AAEO,SAASG;IACd,OAAO;AACT"}}, - {"offset": {"line": 26, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/index.js"],"sourcesContent":["import { used } from './a.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,wNAAI"}}, - {"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/leaf.js"],"sourcesContent":["export function leafX() {}\nexport function leafY() {}\n"],"names":["leafX","leafY"],"mappings":"AAAO,SAASA,SAAS;AAClB,SAASC,SAAS"}}, - {"offset": {"line": 45, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/shared.js"],"sourcesContent":["import { leafX, leafY } from './leaf'\n\nexport function sharedX() {\n leafX()\n}\nexport function sharedY() {\n leafY()\n}\n"],"names":["sharedX","leafX","sharedY"],"mappings":"AAAA;;AAEO,SAASA;IACdC;AACF;AACO,SAASC;IACd,IAAA,uOAAK;AACP"}}, - {"offset": {"line": 62, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/y.js"],"sourcesContent":["import { sharedY } from './shared'\n\nglobalThis.yBundled = true\n\nexport function y() {\n sharedY()\n}\n"],"names":["globalThis","yBundled","y"],"mappings":"AAAA;;AAEAA,WAAWC,QAAQ,GAAG;AAEf,SAASC;IACd,IAAA,2OAAO;AACT"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/a.js"],"sourcesContent":["import { x } from './library/x.js'\nimport { y } from './library/y.js'\n\ny()\n\nfunction helper() {\n return x()\n}\n\nexport function unused() {\n return helper()\n}\n\nexport function used() {\n return 1234\n}\n"],"names":["helper","x","unused","used"],"mappings":"AACA;;;AAEA,IAAA,gOAAC;AAED,SAASA;IACP,OAAOC;AACT;AAEO,SAASC;IACd,OAAOF;AACT;AAEO,SAASG;IACd,OAAO;AACT"}}, + {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/index.js"],"sourcesContent":["import { used } from './a.js'\n\nconsole.log(used)\n"],"names":["console","log"],"mappings":"AAAA;;AAEAA,QAAQC,GAAG,CAAC,wNAAI"}}, + {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/leaf.js"],"sourcesContent":["export function leafX() {}\nexport function leafY() {}\n"],"names":["leafX","leafY"],"mappings":"AAAO,SAASA,SAAS;AAClB,SAASC,SAAS"}}, + {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/shared.js"],"sourcesContent":["import { leafX, leafY } from './leaf'\n\nexport function sharedX() {\n leafX()\n}\nexport function sharedY() {\n leafY()\n}\n"],"names":["sharedX","leafX","sharedY"],"mappings":"AAAA;;AAEO,SAASA;IACdC;AACF;AACO,SAASC;IACd,IAAA,uOAAK;AACP"}}, + {"offset": {"line": 57, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/exports/input/library/y.js"],"sourcesContent":["import { sharedY } from './shared'\n\nglobalThis.yBundled = true\n\nexport function y() {\n sharedY()\n}\n"],"names":["globalThis","yBundled","y"],"mappings":"AAAA;;AAEAA,WAAWC,QAAQ,GAAG;AAEf,SAASC;IACd,IAAA,2OAAO;AACT"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js index cee033d61221..e50f0632b5fe 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js @@ -1,3 +1,3 @@ -(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/index.js [test] (ecmascript)",t=>{console.log(t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/lit.js [test] (ecmascript)").foo),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/lit.js [test] (ecmascript)",t=>{t.s(["foo",0,function(){}])}])})(); +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/index.js [test] (ecmascript)",t=>{console.log(t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/lit.js [test] (ecmascript)").foo),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/lit.js [test] (ecmascript)",t=>{t.s(["foo",0,function(){}])}]); //# sourceMappingURL=1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js.map index dd4002e53e3e..9000081ec1aa 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/output/1jsg_tests_snapshot_remove-unused-imports_star-import-string-key_input_03-1fx5_29uet._.js.map @@ -1 +1 @@ -{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/lit.js"],"sourcesContent":["import * as lit from './lit.js'\n\n// A string-literal key narrows to `foo`, so `unused` leaves the bundle.\nconsole.log(lit['foo'])\n","export function foo() {}\nexport function unused() {}\n"],"names":["console","log","foo","unused"],"mappings":"8TAGAA,QAAQC,GAAG,CAHX,AAGY,EAHZ,CAAA,CAAA,2IAGY,GAAU,sKCHf,SAASC,EAAO"} \ No newline at end of file +{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/remove-unused-imports/star-import-string-key/input/lit.js"],"sourcesContent":["import * as lit from './lit.js'\n\n// A string-literal key narrows to `foo`, so `unused` leaves the bundle.\nconsole.log(lit['foo'])\n","export function foo() {}\nexport function unused() {}\n"],"names":["console","log","foo","unused"],"mappings":"wTAGAA,QAAQC,GAAG,CAHX,AAGY,EAHZ,CAAA,CAAA,2IAGY,GAAU,sKCHf,SAASC,EAAO"} \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js index ff4a60d01a91..865713c89036 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js @@ -1,8 +1,6 @@ -module.exports = [ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('Hello, world!'); -}), -]; +})]; //# sourceMappingURL=1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js.map index 05938c788500..d19a4723f9af 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/output/1jsg_tests_snapshot_runtime_default_build_runtime_input_index_16lz1oyv57e07.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/input/index.js"],"sourcesContent":["console.log('Hello, world!')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_build_runtime/input/index.js"],"sourcesContent":["console.log('Hello, world!')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js index 76b0b53297c4..66fd4e95dd55 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('Hello, world!'); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js.map index 5dca7c5c76c3..de3850df7725 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/output/1jsg_tests_snapshot_runtime_default_dev_runtime_input_index_1w4r_nxu1rlhi.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/input/index.js"],"sourcesContent":["console.log('Hello, world!')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/default_dev_runtime/input/index.js"],"sourcesContent":["console.log('Hello, world!')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js index 82690b400dc1..c20e1bbb5f30 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('Hello, shared runtime!'); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js.map index 7257808fef82..5342e6d03be3 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/output/1jsg_tests_snapshot_runtime_shared_browser_runtime_input_index_16pxwu5uynwww.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/input/index.js"],"sourcesContent":["console.log('Hello, shared runtime!')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/runtime/shared_browser_runtime/input/index.js"],"sourcesContent":["console.log('Hello, shared runtime!')\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js index 0be655e0b5a6..d93bbcce4cf6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/direct.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/direct.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -14,8 +13,7 @@ function nested() { return eval('local'); } const direct = eval('local') + nested(); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/index.js [test] (ecmascript)"); @@ -35,7 +33,6 @@ const indirect = [ ; const local1 = 'index'; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$scope$2d$hoisting$2f$direct$2d$eval$2f$input$2f$direct$2e$js__$5b$test$5d$__$28$ecmascript$29$__["direct"], indirect, local1); -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js.map index a73048913f4c..ef9238e440b7 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_direct-eval_input_1oxos4-8yb8iv._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/direct.js"],"sourcesContent":["const local = 'direct'\n\nfunction nested() {\n // A direct eval can reference module bindings by name, so this module must\n // not be merged (merging may rename `local`).\n // prettier-ignore\n return (eval)('local')\n}\n\nexport const direct = eval('local') + nested()\n"],"names":["local","nested","eval","direct"],"mappings":";;;;AAAA,MAAMA,QAAQ;AAEd,SAASC;IACP,2EAA2E;IAC3E,8CAA8C;IAC9C,kBAAkB;IAClB,OAAO,AAACC,KAAM;AAChB;AAEO,MAAMC,SAASD,KAAK,WAAWD"}}, - {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/indirect.js"],"sourcesContent":["import { direct } from './direct.js'\nimport { indirect } from './indirect.js'\n\nconst local = 'index'\n\nconsole.log(direct, indirect, local)\n","const local = 'indirect'\n\n// None of these are direct evals, so this module can still be merged.\nexport const indirect = [\n (0, eval)('1'),\n globalThis.eval('2'),\n eval?.('3'),\n local,\n]\n"],"names":["local","indirect","eval","globalThis"],"mappings":";;;AAAA;;;ACAA,MAAMA,QAAQ;AAGP,MAAMC,WAAW;IACtB,CAAC,GAAGC,IAAI,EAAE;IACVC,WAAWD,IAAI,CAAC;IAChBA,OAAO;IACPF;CACD;;;ADLD,MAAM,SAAQ;AAEd,QAAQC,GAAG,CAAC,4NAAM,EAAE,UAAU"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/direct.js"],"sourcesContent":["const local = 'direct'\n\nfunction nested() {\n // A direct eval can reference module bindings by name, so this module must\n // not be merged (merging may rename `local`).\n // prettier-ignore\n return (eval)('local')\n}\n\nexport const direct = eval('local') + nested()\n"],"names":["local","nested","eval","direct"],"mappings":";;;;AAAA,MAAMA,QAAQ;AAEd,SAASC;IACP,2EAA2E;IAC3E,8CAA8C;IAC9C,kBAAkB;IAClB,OAAO,AAACC,KAAM;AAChB;AAEO,MAAMC,SAASD,KAAK,WAAWD"}}, + {"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/direct-eval/input/indirect.js"],"sourcesContent":["import { direct } from './direct.js'\nimport { indirect } from './indirect.js'\n\nconst local = 'index'\n\nconsole.log(direct, indirect, local)\n","const local = 'indirect'\n\n// None of these are direct evals, so this module can still be merged.\nexport const indirect = [\n (0, eval)('1'),\n globalThis.eval('2'),\n eval?.('3'),\n local,\n]\n"],"names":["local","indirect","eval","globalThis"],"mappings":";;;AAAA;;;ACAA,MAAMA,QAAQ;AAGP,MAAMC,WAAW;IACtB,CAAC,GAAGC,IAAI,EAAE;IACVC,WAAWD,IAAI,CAAC;IAChBA,OAAO;IACPF;CACD;;;ADLD,MAAM,SAAQ;AAEd,QAAQC,GAAG,CAAC,4NAAM,EAAE,UAAU"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js index 120c6228e8c9..791dd496258a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/index.js [test] (ecmascript)"); @@ -23,11 +22,9 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; console.log('c', __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$scope$2d$hoisting$2f$duplicate$2d$imports$2f$input$2f$shared$2e$js__$5b$test$5d$__$28$ecmascript$29$__2["default"]); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/shared.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/shared.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { module.exports = 'shared'; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js.map index 3a8babc4b176..517f0b25d519 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/output/1jsg_tests_snapshot_scope-hoisting_duplicate-imports_input_11zbkdcrp86kv._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/a.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/b.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/c.js"],"sourcesContent":["import shared from './shared.js'\n\nconsole.log('a', shared)\n","import './a.js'\nimport shared from './shared.js'\n\nconsole.log('a', shared)\n","import './b.js'\nimport shared from './shared.js'\n\nconsole.log('c', shared)\n"],"names":["console","log"],"mappings":";;;;;;;;;AAAA;;AAEAA,QAAQC,GAAG,CAAC,KAAK,mOAAM;;;;ACCvB,QAAQ,GAAG,CAAC,KAAK,oOAAM;;;;ACAvB,QAAQ,GAAG,CAAC,KAAK,oOAAM"}}, - {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/shared.js"],"sourcesContent":["module.exports = 'shared'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/a.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/b.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/c.js"],"sourcesContent":["import shared from './shared.js'\n\nconsole.log('a', shared)\n","import './a.js'\nimport shared from './shared.js'\n\nconsole.log('a', shared)\n","import './b.js'\nimport shared from './shared.js'\n\nconsole.log('c', shared)\n"],"names":["console","log"],"mappings":";;;;;;;;;AAAA;;AAEAA,QAAQC,GAAG,CAAC,KAAK,mOAAM;;;;ACCvB,QAAQ,GAAG,CAAC,KAAK,oOAAM;;;;ACAvB,QAAQ,GAAG,CAAC,KAAK,oOAAM"}}, + {"offset": {"line": 26, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/duplicate-imports/input/shared.js"],"sourcesContent":["module.exports = 'shared'\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO,GAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js index bbe190442179..99d4c040cc6d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -7,12 +6,10 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$scope$2d$hoisting$2f$split$2d$shared$2f$input$2f$y$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/index.js [test] (ecmascript)"); ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { setTimeout(()=>__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js [test] (ecmascript, async loader)"), 500); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -22,12 +19,10 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js [test] (ecmascript)"); }); }); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { setTimeout(()=>__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript, async loader)"), 1000); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript, async loader)",((__turbopack_context__) => { __turbopack_context__.v((parentImport) => { return Promise.all([ @@ -37,7 +32,6 @@ __turbopack_context__.v((parentImport) => { return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript)"); }); }); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js.map index 201dcd51a727..7c30bcff8d56 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/0_9x_turbopack-tests_tests_snapshot_scope-hoisting_split-shared_input_02x_50fz-7djz._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/index.js"],"sourcesContent":["import './x/index'\nimport './y/index'\n"],"names":[],"mappings":";AAAA;AACA"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/index.js"],"sourcesContent":["setTimeout(() => import('./inner'), 500)\n"],"names":["setTimeout"],"mappings":"AAAAA,WAAW,yKAAyB"}}, - {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/index.js"],"sourcesContent":["setTimeout(() => import('./middle'), 1000)\n"],"names":["setTimeout"],"mappings":"AAAAA,WAAW,0KAA0B"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/index.js"],"sourcesContent":["import './x/index'\nimport './y/index'\n"],"names":[],"mappings":";AAAA;AACA"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/index.js"],"sourcesContent":["setTimeout(() => import('./inner'), 500)\n"],"names":["setTimeout"],"mappings":"AAAAA,WAAW,yKAAyB"}}, + {"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/index.js"],"sourcesContent":["setTimeout(() => import('./middle'), 1000)\n"],"names":["setTimeout"],"mappings":"AAAAA,WAAW,0KAA0B"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js index 0b5bbcf7db71..0fd0356127e4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -66,7 +65,6 @@ FG6adF1kPdxcnQ9rUk0b1jaemDjUwXJRycSSrmUPKiA6MTt8YVMx3Xf4NTZvmTugEE9pXSLyFeQQzEx3 `; ; const __TURBOPACK__default__export__1 = __TURBOPACK__default__export__.length; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js.map index 480eb93135df..7fe073a59d89 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_big_index_194gu9xl99zcm.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/other.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/index.js"],"sourcesContent":["export default `\nv8XyDjNBXwWR6pNaTwYLp5bfUJ1P8nN4Yigyk9c9S9Xt5JHt28veqF0SRPGEmShfRPTn2LnHWZbPWw5FDmaTfLPdX4NfEzJYzehn\nT6Qw1dW8tnJ3VJUHHE0QUch181CwhbSHbRvzCzwJ66gJ5PWLzpCit6mZ2ZaGuM3kg6Gmmj301bwKWvY0EhFLW26YiDJYyFeb8uR6\nNqBFFqm409pvFhfRdyZWWdBuEdd2TTdQxUgpBd6d147SKeRDj0HyrXKZNc0gd5Cj9pX8grD16fThjEE1uvkn3vPS8HkB7VXcC2Vq\nUebF0aQGxrMnWffrjvxme63giD0ZTxeVGtmC5ZqeLyPEeCb2Lm2zuBdRnGNSk3JTNgM71FA7xTGyZZunNFS4bNkcJi5RB9AiteZE\nNz718p8qXRG1iZKnQZ8em8dwn1kb5qgggB2qqywKBXupBz3ebCWVMvE15AeDUNZaMuWZvQFMvBykkACHF6keYBEHVJtAyHndnEdp\nTpihHzavvY0UEfqeRjQvQm0Y8FXWZqbEmz6j4EjBSX5KdARxhbALan4QCKSRYNxpxMk1UxZf4rakhFitehV2WE3NX7pPdbVhXdza\ngxTa9m7KazYVnR5E9NkuJDvPL1STLyhZeP96pGZcR0QRpqUN3r9AMMaSec4Hir5b4PJu4UKtwXZxvm6dZ7KFLn3Rf4fe4yCCrREa\nLpmSKuP2JpbqCgc3ewnhkD87TRu1rEaXfFFgvw6ZhwGHf2bAJKJ7GA9QGzGBmrmRPHprjUnfzGMaSxUCxHmftAPTm2L644neCXuj\n3f8z9EY7Bqa1nagKyPi9DpZyDAGe2i0NzugGhB8xbW3K7xAKCEmhf5wZJ6RnQZDa4mqiLSxSz8gqGBu8Q5ALg4ybkbK6McwgR5QV\nA0ag6Fb9dRV3Au8DPzKN1peK6G3bGEf5L03uxa6khMAjjN6zQbGi2HZTNv9wfYVn4QTbeBXTcWQgDnCZzE9WaBXhWcrS0GfiQD8m\nvbFQXik86nXtAhiNtu0g560xUCXZJbz5D9W31cg80UnReCDTLibP1D3JMbndT7J7ANSG82t8bjkNkaUi43xp6uinnMXQFhH1vk1c\n1rrhV0jLndXicquu3CDQBycRPV2ZSXtwgnaD2YWZdcpCTky7bAEq3NuxSYutTr0cD2YkeJJc9hQ1bDqVLf471XURanD9FJqKfkYb\nNeQNEYphDk3Y6cZ5TP2wfqGiKhbp7YMGSXnbNfi8nzbFhwHaRaC7HJiwD4eKGt26RBt9qPAR7Nt8FHXHgLdrWMViixakXKK8jyDa\nVtaR5XSfSV6w1UuzTA05kEgTyXtRmzpYfvtiEB2bedjAguhbHxqwvMSpva5KehiTX0jRuKJr1pStb4UdzDpuX712xLZEaZXEd3rp\nKgriyjYhAPfQvzjcYpW4b34iq3Yx2Mc2ALhVUtZkBiKcn0UwC2uX5T5USF77qYjpmf05f0rP6um9d5azE86QzU7zNFz9mC4PDuL6\ntTebfB9bF6FP0GB5YNQBF7rEEwMXwQnC0immdXiX3PXy4JjzDR7kZtbjNe3n3rUjF4SCdEzeGyBfzLiXNMCmyFYvdVkW610vr4HR\nK3YNPjA9auMgxUySKqW1MtJGyuCEKAvZ3bU3i4qEV0fvGwiqbqMyMkLhBcG7PaMtdX34CDBiUfJd0NgDax7brjEBT0wKSw4qacK8\nGuNmpt9jh1uZxxEMew5FRA0ERzaLQEw3VDX92iSdexrmVHLebH9N2p0DAyFpLc1fQHGekZBU7CA1VqhMc7AeLkf3pcwFr7TmdHzq\nc7V5E05XMduLxYbnGNmiVC55NA6C08aGkbxYD9Km7LTLXBEYKHmqKcW4Nf4UbSxQY1xvk1uS2ABrbGGVPf3rJZFVpLVvL2m1FCWW\n06BDSSmNhRn8ajqytB5eAVAg1SM3ZfTzRSUZeavyzWwTKn4GR0L7DNACpUGpDdW1ZwM3GVY0WHwQHb7UhHLUht1yYGh4tLSjGMwP\nggC0H1Lk6QbzAmQjJX7WnrmvXJZKfmJAAUbPn2vzUj0ebtPTNKNp3Gv3jhG8gkmSXjtF3bfRPn5gDbD1Xjfqgn8kUGWiDLfLRNDf\nN1F2dYLgFhviuRScEamvfkwfdKEa44f8LaBd2hCUaz1WDb8mmiFTqXhkACUY0mYPw65bYFm4Bb5kwSPM2aBeC6uYX7xcpJ3WZAeU\nB1vjhyHUE0YcTMpJvLUXPH5CBgd0GYS6vYhBrvj8JJxb6NAuH59iXBh33a8C6bDMHzASGxKBDP0ZbyWtRJvZYxpK5J7yaunr7GGj\n7ENz4F0pabhQBYbEHYSpZF5nx5nLuzx4tLScJdKN82i6JUdGLaqL3wyHXS4AFyMwa7HQ4a7xfjdaKMtCKqjC5jXeSV8N4N6KWKv6\nCBQXZTjWybG2gd9TvK5k5ZCa6yE8dm3XGb4UQTBR0A5z4MCnbbmPpc14pKqbXBjaJwBdeWpJm38HMiEDkc6VhN3Pdy8XzkZEirEr\ne2A3j23VNBdu7DcG6ZhC219xuv56dbW5fAXcq3fwb5XDAytaqBSNRV9dM6rUqZBECfWpBtvewCH7xDd9SRAT56YN6gHzxmxVchiZ\nwybf9Q83MuiRdCRCiQ8E1BcmPkP2Lf7Zxxc35j3LCg3ikpxuHgzQg6gqNqhPQY5zam4aR4DMK334uAbdJYSS9QKxf14Wjc5DfYxn\nkfwWUwVpgiycf6eiKrq8a1r3kgnxgEN87VcTYv1ynL5ikhEa5jp2iAfU7efey9w8xYGP9FvYUA1GCmSqjaEMCFWnJvZZHke8LfAK\nup5BDceSTVuuPYemRZ6W7yibFe0dRMKchMrjrzEchf4XUx5aw6jXqY48tYE5biMuU0UKZ8rYN4vCWvgaf84MTnc425TiS1rBWBgp\npHwewByv0i3ybDXExHCcNndLgSMk0LFCx6mbP3uP982LiKGv4tyqMuSmwWqyL9Kqh3EWmjxvSWFfwdCVdwMzG0Dtb57nhtyDQaSR\nqj6hPYdjXUPRbpE6Ga86BKbR3QUtMh273GNCQ23awZ7eWJjiXZ54ZFhYTjMEbWDvYSZGrSZ7ParwRmTijTC26v5W9dzSM42tqmSp\nzj4v9e0EBzrReTLPcAWZiXEUXD00FW9w135JNVeiKmkejjugNhBTR2ZrNYcVJpPVYXjAdMvpKySh2phqrhZ0q307ALAVkWman6Cz\n8nVBHhgXcp8AXwE8aUUhdE5T5VaivXrn2DFymKvY4WEKL0dank4YjznAEDPCPDrXuSnG1rk8rwvKbncQUUzAAnQh1Z70VeaYDdv7\nKaBfwy6jcF4SgAHSZ5CWBByttbZn1EEM7DzvgHNbv0D9pzFnVDBkEcnvAnSfGjAy6TAvN421Y6089VHb9uJ2X3ThhpW058TN7epk\n1XBABbL1mwmVLkTnUqERe0KFe2fXhAUjnEYjXLucpwQNmkf1gUCfYh1RK8uHuVrYKbEDLmBZGNp9vnG4X5ZHvmZHY1tJhTwPk5am\nD9HjQMiR5FvrEjJ3m5cUHD2CNdq6StnVQFxZDZcxG71rXepfgjyA4rcQDrZmnDNtmX6tVqPax4CnHrv5Mhg0cx9f38Lpc1xSgcu7\nhW9d03WVHeSnbug0SHKi3WAq0iFcNhtxW5e3XmkB3TX41VAVvnDnby2p47drK5xBEYtX4jB0KwyDg7BTvLPTdaByfjy6HufJ8HNt\nKXmhMZ0vyUB41UrHntYVCumW6LHcvt2mja2Kfi89AZJ6hCCRgYBxj4B54xRLbcin2NCpAAQvFcd57mwaJCpqxi1wx5HbNDDXuDCa\nEyT6RGgQYTfXzq5dKHGuJVMmPxEmbic9QPgVKBVgqBrgZGFGTvvpCQpWwp16UmECP7NcvQvkVDPqxdASUYpvNbVkxak5URvkb82G\nrxmpwS0HDyFumDd4QJLWdWNgJNwJCQDhuLwMfDeBQYSbACxxfPKthx9k79tfuH4EuLkAYBTMNXmgdHd1ji8nLSE9WjZT3rknWYkt\nMmE8kMqH1W7Ah8bE2b1K02HnjcxQXfc12TAfqWSBkApf8zzvVDZbqmpXRpXLmtkSC9MR6d5rfjHCux8J5ak4bHBnSS5C9LpWMPvm\nBrL9CPbNPAvcNRH6QzMdST4W96SKYr1mf6YWHhKfydzNj6ZYYBXD8emgTJWv8hA0cfeh9VfcFW3GjYGK0VYZDchPtLuzHLBJGvpy\ntKvLnNtEXZcUVwHLD0DwrHfbhDPVKA6LQzp9m9c8iLn5c3UyeVLfc9v0Zur5hy0VQDKLipBd7DK8A58HqEtHtuutCnSuap0bLRU9\n6am33nyXF7GLJQ9HDAwMU9eM5rg4w08n3zkkn7zE8RCuApiEr5AUEmnhQuiK9JLUdQ2CJrvrFUCk0reTkSRYa7S5UpwK5nLupDRc\njDt7BzfYuKm4e2FKrGWZ3RRAHbQdFDqXJGLcZvTpBhqqNjc4NALmeD1NyFxTmdFPqH4FJhyP1SBY5hmdC7VxWnhS9aSCAJ4cqNZX\n046GNThxFabYy5Ww7evnqbTdeVRG8p4nNM1HmGmzu0jX2U0AqNAZiD07qE1nHzTwAJy2z4Ec2bfM9gtTrYuTyr3bg4M3dqP34AB4\newefKc9rcn19WSzWutjMeHM5GTneXyW3MALDbVN2e1eD4gUuMiKMxnQ8A51a7yZpQT9GYiUCE2cS2wD7S5idyfXBNkVVZ4hBGiW0\ncWRPQpfP9YGZxvmvGd9aZfWQGUj2FY2MEQbF8PvGUd3bmW4dcr8ja0GLEFYgzjU5AXdfGjxz8ZdwSK1PuU75h7VvAmXeLg8KPmxc\nUFkNShRQQKaptdCXBfUmueYuMnDT9w7XW2jkjp6gTRJ0CbFPmknEuuXNbLWjTqUnYmgFJAbdU67qJUvApdwa057TQSPekf4X6S8a\nx6yvtGeCzq8138FqLwZ4DCNHS63mA2LMZAq0BDn1UdMyv2TLcDzTC7c7C1qntkfC978cDjXcqHqfyyHuw1eKEHxXn78vtAGhV9Ba\nEDvvH3ZX5z8a39n5qBnwYe5uNdMWrG3Z3RWSurZL2TKKgz2383Gdx1nwfQVd3jJinZBwKt3KRWDghSRtfcyFwLmhwhK9QHRwDn4N\nFG6adF1kPdxcnQ9rUk0b1jaemDjUwXJRycSSrmUPKiA6MTt8YVMx3Xf4NTZvmTugEE9pXSLyFeQQzEx36QZhdd7jC880YEdjzWbx\n`\n","import big from './other.js'\n\nexport default big.length\n"],"names":[],"mappings":";;;;;;;;uCAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDhB,CAAC;;wCCnDc,+BAAI,MAAM"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/other.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/index.js"],"sourcesContent":["export default `\nv8XyDjNBXwWR6pNaTwYLp5bfUJ1P8nN4Yigyk9c9S9Xt5JHt28veqF0SRPGEmShfRPTn2LnHWZbPWw5FDmaTfLPdX4NfEzJYzehn\nT6Qw1dW8tnJ3VJUHHE0QUch181CwhbSHbRvzCzwJ66gJ5PWLzpCit6mZ2ZaGuM3kg6Gmmj301bwKWvY0EhFLW26YiDJYyFeb8uR6\nNqBFFqm409pvFhfRdyZWWdBuEdd2TTdQxUgpBd6d147SKeRDj0HyrXKZNc0gd5Cj9pX8grD16fThjEE1uvkn3vPS8HkB7VXcC2Vq\nUebF0aQGxrMnWffrjvxme63giD0ZTxeVGtmC5ZqeLyPEeCb2Lm2zuBdRnGNSk3JTNgM71FA7xTGyZZunNFS4bNkcJi5RB9AiteZE\nNz718p8qXRG1iZKnQZ8em8dwn1kb5qgggB2qqywKBXupBz3ebCWVMvE15AeDUNZaMuWZvQFMvBykkACHF6keYBEHVJtAyHndnEdp\nTpihHzavvY0UEfqeRjQvQm0Y8FXWZqbEmz6j4EjBSX5KdARxhbALan4QCKSRYNxpxMk1UxZf4rakhFitehV2WE3NX7pPdbVhXdza\ngxTa9m7KazYVnR5E9NkuJDvPL1STLyhZeP96pGZcR0QRpqUN3r9AMMaSec4Hir5b4PJu4UKtwXZxvm6dZ7KFLn3Rf4fe4yCCrREa\nLpmSKuP2JpbqCgc3ewnhkD87TRu1rEaXfFFgvw6ZhwGHf2bAJKJ7GA9QGzGBmrmRPHprjUnfzGMaSxUCxHmftAPTm2L644neCXuj\n3f8z9EY7Bqa1nagKyPi9DpZyDAGe2i0NzugGhB8xbW3K7xAKCEmhf5wZJ6RnQZDa4mqiLSxSz8gqGBu8Q5ALg4ybkbK6McwgR5QV\nA0ag6Fb9dRV3Au8DPzKN1peK6G3bGEf5L03uxa6khMAjjN6zQbGi2HZTNv9wfYVn4QTbeBXTcWQgDnCZzE9WaBXhWcrS0GfiQD8m\nvbFQXik86nXtAhiNtu0g560xUCXZJbz5D9W31cg80UnReCDTLibP1D3JMbndT7J7ANSG82t8bjkNkaUi43xp6uinnMXQFhH1vk1c\n1rrhV0jLndXicquu3CDQBycRPV2ZSXtwgnaD2YWZdcpCTky7bAEq3NuxSYutTr0cD2YkeJJc9hQ1bDqVLf471XURanD9FJqKfkYb\nNeQNEYphDk3Y6cZ5TP2wfqGiKhbp7YMGSXnbNfi8nzbFhwHaRaC7HJiwD4eKGt26RBt9qPAR7Nt8FHXHgLdrWMViixakXKK8jyDa\nVtaR5XSfSV6w1UuzTA05kEgTyXtRmzpYfvtiEB2bedjAguhbHxqwvMSpva5KehiTX0jRuKJr1pStb4UdzDpuX712xLZEaZXEd3rp\nKgriyjYhAPfQvzjcYpW4b34iq3Yx2Mc2ALhVUtZkBiKcn0UwC2uX5T5USF77qYjpmf05f0rP6um9d5azE86QzU7zNFz9mC4PDuL6\ntTebfB9bF6FP0GB5YNQBF7rEEwMXwQnC0immdXiX3PXy4JjzDR7kZtbjNe3n3rUjF4SCdEzeGyBfzLiXNMCmyFYvdVkW610vr4HR\nK3YNPjA9auMgxUySKqW1MtJGyuCEKAvZ3bU3i4qEV0fvGwiqbqMyMkLhBcG7PaMtdX34CDBiUfJd0NgDax7brjEBT0wKSw4qacK8\nGuNmpt9jh1uZxxEMew5FRA0ERzaLQEw3VDX92iSdexrmVHLebH9N2p0DAyFpLc1fQHGekZBU7CA1VqhMc7AeLkf3pcwFr7TmdHzq\nc7V5E05XMduLxYbnGNmiVC55NA6C08aGkbxYD9Km7LTLXBEYKHmqKcW4Nf4UbSxQY1xvk1uS2ABrbGGVPf3rJZFVpLVvL2m1FCWW\n06BDSSmNhRn8ajqytB5eAVAg1SM3ZfTzRSUZeavyzWwTKn4GR0L7DNACpUGpDdW1ZwM3GVY0WHwQHb7UhHLUht1yYGh4tLSjGMwP\nggC0H1Lk6QbzAmQjJX7WnrmvXJZKfmJAAUbPn2vzUj0ebtPTNKNp3Gv3jhG8gkmSXjtF3bfRPn5gDbD1Xjfqgn8kUGWiDLfLRNDf\nN1F2dYLgFhviuRScEamvfkwfdKEa44f8LaBd2hCUaz1WDb8mmiFTqXhkACUY0mYPw65bYFm4Bb5kwSPM2aBeC6uYX7xcpJ3WZAeU\nB1vjhyHUE0YcTMpJvLUXPH5CBgd0GYS6vYhBrvj8JJxb6NAuH59iXBh33a8C6bDMHzASGxKBDP0ZbyWtRJvZYxpK5J7yaunr7GGj\n7ENz4F0pabhQBYbEHYSpZF5nx5nLuzx4tLScJdKN82i6JUdGLaqL3wyHXS4AFyMwa7HQ4a7xfjdaKMtCKqjC5jXeSV8N4N6KWKv6\nCBQXZTjWybG2gd9TvK5k5ZCa6yE8dm3XGb4UQTBR0A5z4MCnbbmPpc14pKqbXBjaJwBdeWpJm38HMiEDkc6VhN3Pdy8XzkZEirEr\ne2A3j23VNBdu7DcG6ZhC219xuv56dbW5fAXcq3fwb5XDAytaqBSNRV9dM6rUqZBECfWpBtvewCH7xDd9SRAT56YN6gHzxmxVchiZ\nwybf9Q83MuiRdCRCiQ8E1BcmPkP2Lf7Zxxc35j3LCg3ikpxuHgzQg6gqNqhPQY5zam4aR4DMK334uAbdJYSS9QKxf14Wjc5DfYxn\nkfwWUwVpgiycf6eiKrq8a1r3kgnxgEN87VcTYv1ynL5ikhEa5jp2iAfU7efey9w8xYGP9FvYUA1GCmSqjaEMCFWnJvZZHke8LfAK\nup5BDceSTVuuPYemRZ6W7yibFe0dRMKchMrjrzEchf4XUx5aw6jXqY48tYE5biMuU0UKZ8rYN4vCWvgaf84MTnc425TiS1rBWBgp\npHwewByv0i3ybDXExHCcNndLgSMk0LFCx6mbP3uP982LiKGv4tyqMuSmwWqyL9Kqh3EWmjxvSWFfwdCVdwMzG0Dtb57nhtyDQaSR\nqj6hPYdjXUPRbpE6Ga86BKbR3QUtMh273GNCQ23awZ7eWJjiXZ54ZFhYTjMEbWDvYSZGrSZ7ParwRmTijTC26v5W9dzSM42tqmSp\nzj4v9e0EBzrReTLPcAWZiXEUXD00FW9w135JNVeiKmkejjugNhBTR2ZrNYcVJpPVYXjAdMvpKySh2phqrhZ0q307ALAVkWman6Cz\n8nVBHhgXcp8AXwE8aUUhdE5T5VaivXrn2DFymKvY4WEKL0dank4YjznAEDPCPDrXuSnG1rk8rwvKbncQUUzAAnQh1Z70VeaYDdv7\nKaBfwy6jcF4SgAHSZ5CWBByttbZn1EEM7DzvgHNbv0D9pzFnVDBkEcnvAnSfGjAy6TAvN421Y6089VHb9uJ2X3ThhpW058TN7epk\n1XBABbL1mwmVLkTnUqERe0KFe2fXhAUjnEYjXLucpwQNmkf1gUCfYh1RK8uHuVrYKbEDLmBZGNp9vnG4X5ZHvmZHY1tJhTwPk5am\nD9HjQMiR5FvrEjJ3m5cUHD2CNdq6StnVQFxZDZcxG71rXepfgjyA4rcQDrZmnDNtmX6tVqPax4CnHrv5Mhg0cx9f38Lpc1xSgcu7\nhW9d03WVHeSnbug0SHKi3WAq0iFcNhtxW5e3XmkB3TX41VAVvnDnby2p47drK5xBEYtX4jB0KwyDg7BTvLPTdaByfjy6HufJ8HNt\nKXmhMZ0vyUB41UrHntYVCumW6LHcvt2mja2Kfi89AZJ6hCCRgYBxj4B54xRLbcin2NCpAAQvFcd57mwaJCpqxi1wx5HbNDDXuDCa\nEyT6RGgQYTfXzq5dKHGuJVMmPxEmbic9QPgVKBVgqBrgZGFGTvvpCQpWwp16UmECP7NcvQvkVDPqxdASUYpvNbVkxak5URvkb82G\nrxmpwS0HDyFumDd4QJLWdWNgJNwJCQDhuLwMfDeBQYSbACxxfPKthx9k79tfuH4EuLkAYBTMNXmgdHd1ji8nLSE9WjZT3rknWYkt\nMmE8kMqH1W7Ah8bE2b1K02HnjcxQXfc12TAfqWSBkApf8zzvVDZbqmpXRpXLmtkSC9MR6d5rfjHCux8J5ak4bHBnSS5C9LpWMPvm\nBrL9CPbNPAvcNRH6QzMdST4W96SKYr1mf6YWHhKfydzNj6ZYYBXD8emgTJWv8hA0cfeh9VfcFW3GjYGK0VYZDchPtLuzHLBJGvpy\ntKvLnNtEXZcUVwHLD0DwrHfbhDPVKA6LQzp9m9c8iLn5c3UyeVLfc9v0Zur5hy0VQDKLipBd7DK8A58HqEtHtuutCnSuap0bLRU9\n6am33nyXF7GLJQ9HDAwMU9eM5rg4w08n3zkkn7zE8RCuApiEr5AUEmnhQuiK9JLUdQ2CJrvrFUCk0reTkSRYa7S5UpwK5nLupDRc\njDt7BzfYuKm4e2FKrGWZ3RRAHbQdFDqXJGLcZvTpBhqqNjc4NALmeD1NyFxTmdFPqH4FJhyP1SBY5hmdC7VxWnhS9aSCAJ4cqNZX\n046GNThxFabYy5Ww7evnqbTdeVRG8p4nNM1HmGmzu0jX2U0AqNAZiD07qE1nHzTwAJy2z4Ec2bfM9gtTrYuTyr3bg4M3dqP34AB4\newefKc9rcn19WSzWutjMeHM5GTneXyW3MALDbVN2e1eD4gUuMiKMxnQ8A51a7yZpQT9GYiUCE2cS2wD7S5idyfXBNkVVZ4hBGiW0\ncWRPQpfP9YGZxvmvGd9aZfWQGUj2FY2MEQbF8PvGUd3bmW4dcr8ja0GLEFYgzjU5AXdfGjxz8ZdwSK1PuU75h7VvAmXeLg8KPmxc\nUFkNShRQQKaptdCXBfUmueYuMnDT9w7XW2jkjp6gTRJ0CbFPmknEuuXNbLWjTqUnYmgFJAbdU67qJUvApdwa057TQSPekf4X6S8a\nx6yvtGeCzq8138FqLwZ4DCNHS63mA2LMZAq0BDn1UdMyv2TLcDzTC7c7C1qntkfC978cDjXcqHqfyyHuw1eKEHxXn78vtAGhV9Ba\nEDvvH3ZX5z8a39n5qBnwYe5uNdMWrG3Z3RWSurZL2TKKgz2383Gdx1nwfQVd3jJinZBwKt3KRWDghSRtfcyFwLmhwhK9QHRwDn4N\nFG6adF1kPdxcnQ9rUk0b1jaemDjUwXJRycSSrmUPKiA6MTt8YVMx3Xf4NTZvmTugEE9pXSLyFeQQzEx36QZhdd7jC880YEdjzWbx\n`\n","import big from './other.js'\n\nexport default big.length\n"],"names":[],"mappings":";;;;;;;;uCAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDhB,CAAC;;wCCnDc,+BAAI,MAAM"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js index 5ba0604c9ca1..4ff7fe6e8b1f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$scope$2d$hoisting$2f$split$2d$shared$2f$input$2f$big$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/big/index.js [test] (ecmascript)"); ; console.log('x', __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$scope$2d$hoisting$2f$split$2d$shared$2f$input$2f$big$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"]); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js.map index bee8d7aee711..d4e59623ec04 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_x_inner_09sg0bzoy3w4q.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js"],"sourcesContent":["import big from '../big'\nconsole.log('x', big)\n"],"names":["console","log"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,KAAK,oOAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/x/inner.js"],"sourcesContent":["import big from '../big'\nconsole.log('x', big)\n"],"names":["console","log"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,KAAK,oOAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js index 95419b95f262..4138a79d2bd6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/middle.js [test] (ecmascript)"); @@ -11,7 +10,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; console.log('y', __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$scope$2d$hoisting$2f$split$2d$shared$2f$input$2f$big$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"]); ; -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js.map index 1745dd637381..a3d5440a5e88 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/output/1jsg_tests_snapshot_scope-hoisting_split-shared_input_y_middle_1inkhp472zkg3.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/inner.js"],"sourcesContent":["import big from '../big'\nconsole.log('y', big)\n"],"names":["console","log"],"mappings":";;;;;AAAA;;AACAA,QAAQC,GAAG,CAAC,KAAK,oOAAG"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/scope-hoisting/split-shared/input/y/inner.js"],"sourcesContent":["import big from '../big'\nconsole.log('y', big)\n"],"names":["console","log"],"mappings":";;;;;AAAA;;AACAA,QAAQC,GAAG,CAAC,KAAK,oOAAG"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js index 9510b80952b5..34a103800e29 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/index.js [test] (ecmascript)"); @@ -12,7 +11,6 @@ function runExternalSourceMapped(fn) { } ; runExternalSourceMapped(); -}), -]); +})]); //# sourceMappingURL=1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js.map index a0cf07775bec..f4c5ef297977 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/output/1jsg_tests_snapshot_source_maps_input-source-map-merged_input_index_13tze6n0d8xk2.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/sourcemapped.ts","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/index.js"],"sourcesContent":["// Compile with pnpm tsc turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/sourcemapped.ts --sourceMap --inlineSources --target esnext\n// tsc compile errors can be ignored\ntype Fn = () => T\nexport function runExternalSourceMapped(fn: Fn): T {\n return fn()\n}\n","import { runExternalSourceMapped } from './sourcemapped.js'\n\nrunExternalSourceMapped()\n"],"names":[],"mappings":";;;;;AAGM,SAAU,uBAAuB,CAAI,EAAS;IAClD,OAAO,EAAE,EAAE,CAAA;;;ACFb"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/sourcemapped.ts","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/index.js"],"sourcesContent":["// Compile with pnpm tsc turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/sourcemapped.ts --sourceMap --inlineSources --target esnext\n// tsc compile errors can be ignored\ntype Fn = () => T\nexport function runExternalSourceMapped(fn: Fn): T {\n return fn()\n}\n","import { runExternalSourceMapped } from './sourcemapped.js'\n\nrunExternalSourceMapped()\n"],"names":[],"mappings":";;;;;AAGM,SAAU,uBAAuB,CAAI,EAAS;IAClD,OAAO,EAAE,EAAE,CAAA;;;ACFb"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js index 4889b68e9fd5..be728d5b9e36 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js @@ -1,13 +1,11 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$source_maps$2f$input$2d$source$2d$map$2f$input$2f$sourcemapped$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.js [test] (ecmascript)"); ; (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$source_maps$2f$input$2d$source$2d$map$2f$input$2f$sourcemapped$2e$js__$5b$test$5d$__$28$ecmascript$29$__["runExternalSourceMapped"])(); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,7 +15,6 @@ __turbopack_context__.s([ function runExternalSourceMapped(fn) { return fn(); } -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js.map index bfee9b1a8548..9bc18788bacc 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/output/0_9x_turbopack-tests_tests_snapshot_source_maps_input-source-map_input_0n-g1xc4-d7nb._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/index.js"],"sourcesContent":["import { runExternalSourceMapped } from './sourcemapped.js'\n\nrunExternalSourceMapped()\n"],"names":[],"mappings":";AAAA;;AAEA,IAAA,qPAAuB"}}, - {"offset": {"line": 12, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.js","sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.ts"],"sourcesContent":["// Compile with pnpm tsc turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/sourcemapped.ts --sourceMap --inlineSources --target esnext\n// tsc compile errors can be ignored\ntype Fn = () => T\nexport function runExternalSourceMapped(fn: Fn): T {\n return fn()\n}\n"],"names":[],"mappings":";;;;AAGM,SAAU,uBAAuB,CAAI,EAAS;IAClD,OAAO,EAAE,EAAE,CAAA;AACb,CAAC"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/index.js"],"sourcesContent":["import { runExternalSourceMapped } from './sourcemapped.js'\n\nrunExternalSourceMapped()\n"],"names":[],"mappings":";AAAA;;AAEA,IAAA,qPAAuB"}}, + {"offset": {"line": 10, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.js","sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map/input/sourcemapped.ts"],"sourcesContent":["// Compile with pnpm tsc turbopack/crates/turbopack-tests/tests/snapshot/source_maps/input-source-map-merged/input/sourcemapped.ts --sourceMap --inlineSources --target esnext\n// tsc compile errors can be ignored\ntype Fn = () => T\nexport function runExternalSourceMapped(fn: Fn): T {\n return fn()\n}\n"],"names":[],"mappings":";;;;AAGM,SAAU,uBAAuB,CAAI,EAAS;IAClD,OAAO,EAAE,EAAE,CAAA;AACb,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js index 324d7e32d223..bdb7b6ea0099 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('test'); -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js.map index 2b04de5a04b5..106cb36f5935 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/output/0_9x_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_0319hru5pd3n9.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js"],"sourcesContent":["console.log('test')\n//# sourceMappingURL=index.js.map\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js"],"sourcesContent":["console.log('test')\n//# sourceMappingURL=index.js.map\n"],"names":["console","log"],"mappings":"AAAAA,QAAQC,GAAG,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js index 870b3c3bc293..b739c229ef1f 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js @@ -1,6 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js", -(()=>{"use strict";return[ -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/entry-base.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js",(()=>{"use strict";return["[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/entry-base.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([], "[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/entry-base.js [test] (ecmascript)"); @@ -21,23 +19,19 @@ const waitAtLeastOneReactRenderTask = 1; //import { waitAtLeastOneReactRenderTas // import './segment-value-encoding'; ; ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index1.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index1.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$source_maps$2f$merged$2d$unicode$2f$input$2f$entry$2d$base$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/entry-base.js [test] (ecmascript)"); ; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index2.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index2.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$source_maps$2f$merged$2d$unicode$2f$input$2f$entry$2d$base$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/entry-base.js [test] (ecmascript)"); ; -}), -]})(), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +})]})(),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { // "entry-base.js [app-rsc] (ecmascript) " with // ["reflect-utils.js [app-rsc] (ecmascript)", @@ -57,7 +51,6 @@ if (Date.now() > 0) { if (Date.now() > 0) { __turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index2.js [test] (ecmascript)"); } -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js.map index fd0e3747c614..07e942f7d76d 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/output/0_9x_turbopack-tests_tests_snapshot_source_maps_merged-unicode_input_1tq4mpj1076n4._.js.map @@ -2,8 +2,8 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/collect-segment-data.js"],"sourcesContent":["import { jsx as _jsx } from \"./jsx-runtime\";\n// eslint-disable-next-line import/no-extraneous-dependencies\nconst createFromReadableStream = 123; //import { createFromReadableStream } from 'react-server-dom-webpack/client.edge';\n// eslint-disable-next-line import/no-extraneous-dependencies\nconst prerender = 123; // import { prerender } from 'react-server-dom-webpack/static.edge';\nconst streamFromBuffer=1,streamToBuffer=1; // import { streamFromBuffer, streamToBuffer } from '../stream-utils/node-web-streams-helper';\nconst waitAtLeastOneReactRenderTask=1; //import { waitAtLeastOneReactRenderTask } from '../../lib/scheduler';\n// import './segment-value-encoding';\n"],"names":[],"mappings":";;;;;;;;;AACA,6DAA6D;AAC7D,MAAM,2BAA2B,KAAK,kFAAkF;AACxH,6DAA6D;AAC7D,MAAM,YAAY,KAAK,oEAAoE;AAC3F,MAAM,mBAAiB,GAAE,iBAAe,GAAG,8FAA8F;AACzI,MAAM,gCAA8B,GAAG,sEAAsE;CAC7G,sCAAsC"}}, - {"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index1.js"],"sourcesContent":["import \"./entry-base.js\";\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index2.js"],"sourcesContent":["import \"./entry-base.js\";\n"],"names":[],"mappings":";AAAA"}}, - {"offset": {"line": 41, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index.js"],"sourcesContent":["// \"entry-base.js [app-rsc] (ecmascript) \" with\n// [\"reflect-utils.js [app-rsc] (ecmascript)\",\n// \"params.js [app-rsc] (ecmascript)\",\n// \"segment-value-encoding.js [app-rsc] (ecmascript)\",\n// \"collect-segment-data.js [app-rsc] (ecmascript)\",\n// \"entry-base.js [app-rsc] (ecmascript) \"]\n\n// \"entry-base.js [test] (ecmascript) \" with\n// [\"reflect-utils.js [test] (ecmascript)\",\n// \"params.js [test] (ecmascript)\",\n// \"segment-value-encoding.js [test] (ecmascript)\",\n// \"collect-segment-data.js [test] (ecmascript)\",\n// \"entry-base.js [test] (ecmascript) \"]\n\nif (Date.now() > 0) {\n require('./index1.js')\n}\nif (Date.now() > 0) {\n require('./index2.js')\n}\n\n"],"names":["Date","now"],"mappings":"AAAA,kEAAkE;AAClE,8CAA8C;AAC9C,sCAAsC;AACtC,sDAAsD;AACtD,oDAAoD;AACpD,mDAAmD;AAEnD,+DAA+D;AAC/D,2CAA2C;AAC3C,mCAAmC;AACnC,mDAAmD;AACnD,kDAAkD;AAClD,iDAAiD;AAEjD,IAAIA,KAAKC,GAAG,KAAK,GAAG;;AAEpB;AACA,IAAID,KAAKC,GAAG,KAAK,GAAG;;AAEpB"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/collect-segment-data.js"],"sourcesContent":["import { jsx as _jsx } from \"./jsx-runtime\";\n// eslint-disable-next-line import/no-extraneous-dependencies\nconst createFromReadableStream = 123; //import { createFromReadableStream } from 'react-server-dom-webpack/client.edge';\n// eslint-disable-next-line import/no-extraneous-dependencies\nconst prerender = 123; // import { prerender } from 'react-server-dom-webpack/static.edge';\nconst streamFromBuffer=1,streamToBuffer=1; // import { streamFromBuffer, streamToBuffer } from '../stream-utils/node-web-streams-helper';\nconst waitAtLeastOneReactRenderTask=1; //import { waitAtLeastOneReactRenderTask } from '../../lib/scheduler';\n// import './segment-value-encoding';\n"],"names":[],"mappings":";;;;;;;;;AACA,6DAA6D;AAC7D,MAAM,2BAA2B,KAAK,kFAAkF;AACxH,6DAA6D;AAC7D,MAAM,YAAY,KAAK,oEAAoE;AAC3F,MAAM,mBAAiB,GAAE,iBAAe,GAAG,8FAA8F;AACzI,MAAM,gCAA8B,GAAG,sEAAsE;CAC7G,sCAAsC"}}, + {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index1.js"],"sourcesContent":["import \"./entry-base.js\";\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 30, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index2.js"],"sourcesContent":["import \"./entry-base.js\";\n"],"names":[],"mappings":";AAAA"}}, + {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/merged-unicode/input/index.js"],"sourcesContent":["// \"entry-base.js [app-rsc] (ecmascript) \" with\n// [\"reflect-utils.js [app-rsc] (ecmascript)\",\n// \"params.js [app-rsc] (ecmascript)\",\n// \"segment-value-encoding.js [app-rsc] (ecmascript)\",\n// \"collect-segment-data.js [app-rsc] (ecmascript)\",\n// \"entry-base.js [app-rsc] (ecmascript) \"]\n\n// \"entry-base.js [test] (ecmascript) \" with\n// [\"reflect-utils.js [test] (ecmascript)\",\n// \"params.js [test] (ecmascript)\",\n// \"segment-value-encoding.js [test] (ecmascript)\",\n// \"collect-segment-data.js [test] (ecmascript)\",\n// \"entry-base.js [test] (ecmascript) \"]\n\nif (Date.now() > 0) {\n require('./index1.js')\n}\nif (Date.now() > 0) {\n require('./index2.js')\n}\n\n"],"names":["Date","now"],"mappings":"AAAA,kEAAkE;AAClE,8CAA8C;AAC9C,sCAAsC;AACtC,sDAAsD;AACtD,oDAAoD;AACpD,mDAAmD;AAEnD,+DAA+D;AAC/D,2CAA2C;AAC3C,mCAAmC;AACnC,mDAAmD;AACnD,kDAAkD;AAClD,iDAAiD;AAEjD,IAAIA,KAAKC,GAAG,KAAK,GAAG;;AAEpB;AACA,IAAID,KAAKC,GAAG,KAAK,GAAG;;AAEpB"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js index 8b4db4e8eb19..b0c5d7c21186 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/compiler-runtime.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/compiler-runtime.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -9,8 +8,7 @@ __turbopack_context__.s([ function c() { return 'purposefully empty stub for react/compiler-runtime.js'; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -25,8 +23,7 @@ function jsx() { function useState() { return 'purposefully empty stub for react/index.js'; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/jsx-dev-runtime.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/jsx-dev-runtime.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -36,8 +33,7 @@ __turbopack_context__.s([ function jsxDEV() { return 'purposefully empty stub for react/jsx-dev-runtime.js'; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/Component.jsx [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/Component.jsx [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -104,15 +100,13 @@ function Counter(t0) { } return t4; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$source_maps$2f$react$2d$compiler$2f$input$2f$Component$2e$jsx__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/Component.jsx [test] (ecmascript)"); ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$source_maps$2f$react$2d$compiler$2f$input$2f$Component$2e$jsx__$5b$test$5d$__$28$ecmascript$29$__["Counter"]); -}), -]);})() +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js.map index 37377794ee1c..f9fb865c7a5b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/output/turbopack_crates_turbopack-tests_tests_snapshot_16i0hbsemtixh._.js.map @@ -2,9 +2,9 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/compiler-runtime.js"],"sourcesContent":["export function c() {\n return 'purposefully empty stub for react/compiler-runtime.js'\n}\n"],"names":["c"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, - {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/index.js"],"sourcesContent":["export function jsx() {\n return 'purposefully empty stub for react/index.js'\n}\n\nexport function useState() {\n return 'purposefully empty stub for react/index.js'\n}\n"],"names":["jsx","useState"],"mappings":";;;;;;AAAO,SAASA;IACd,OAAO;AACT;AAEO,SAASC;IACd,OAAO;AACT","ignoreList":[0]}}, - {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/jsx-dev-runtime.js"],"sourcesContent":["export function jsxDEV() {\n return 'purposefully empty stub for react/jsx-dev-runtime.js'\n}\n"],"names":["jsxDEV"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, - {"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/Component.jsx"],"sourcesContent":["import { useState } from 'react'\n\nexport function Counter({ initialCount }) {\n const [count, setCount] = useState(initialCount)\n const doubled = count * 2\n return (\n
\n

{count}

\n

{doubled}

\n \n
\n )\n}\n"],"names":[],"mappings":";;;;;;AAAA;;;;AAEO"}}, - {"offset": {"line": 110, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/index.js"],"sourcesContent":["import { Counter } from './Component.jsx'\n\nconsole.log(Counter)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8NAAO"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/compiler-runtime.js"],"sourcesContent":["export function c() {\n return 'purposefully empty stub for react/compiler-runtime.js'\n}\n"],"names":["c"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, + {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/index.js"],"sourcesContent":["export function jsx() {\n return 'purposefully empty stub for react/index.js'\n}\n\nexport function useState() {\n return 'purposefully empty stub for react/index.js'\n}\n"],"names":["jsx","useState"],"mappings":";;;;;;AAAO,SAASA;IACd,OAAO;AACT;AAEO,SAASC;IACd,OAAO;AACT","ignoreList":[0]}}, + {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/jsx-dev-runtime.js"],"sourcesContent":["export function jsxDEV() {\n return 'purposefully empty stub for react/jsx-dev-runtime.js'\n}\n"],"names":["jsxDEV"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, + {"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/Component.jsx"],"sourcesContent":["import { useState } from 'react'\n\nexport function Counter({ initialCount }) {\n const [count, setCount] = useState(initialCount)\n const doubled = count * 2\n return (\n
\n

{count}

\n

{doubled}

\n \n
\n )\n}\n"],"names":[],"mappings":";;;;;;AAAA;;;;AAEO"}}, + {"offset": {"line": 105, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/react-compiler/input/index.js"],"sourcesContent":["import { Counter } from './Component.jsx'\n\nconsole.log(Counter)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8NAAO"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js b/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js index 5f485c4f7664..c423e84ff341 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js @@ -1,10 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/styled-components/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { - -"purposefully empty stub"; -"styled-components/index.js"; -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -17,7 +11,10 @@ const MyButton = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$cr background: blue; `; console.log(MyButton); -}), -]); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/styled-components/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { + +"purposefully empty stub"; +"styled-components/index.js"; +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js.map index e7f741804841..b7dc6435833e 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/output/turbopack_crates_turbopack-tests_tests_snapshot_0ie4tr8hvhqe-._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/styled-components/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"styled-components/index.js\"\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}}, - {"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/input/index.js"],"sourcesContent":["import styled from 'styled-components'\n\nconst MyButton = styled.button`\n background: blue;\n`\n\nconsole.log(MyButton)\n"],"names":["MyButton","button","console","log"],"mappings":";AAAA;;AAEA,MAAMA,WAAW,oNAAM,CAACC,MAAM;;;EAAA,CAAC;;AAE/B,CAAC;AAEDC,QAAQC,GAAG,CAACH"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/input/index.js"],"sourcesContent":["import styled from 'styled-components'\n\nconst MyButton = styled.button`\n background: blue;\n`\n\nconsole.log(MyButton)\n"],"names":["MyButton","button","console","log"],"mappings":";AAAA;;AAEA,MAAMA,WAAW,oNAAM,CAACC,MAAM;;;EAAA,CAAC;;AAE/B,CAAC;AAEDC,QAAQC,GAAG,CAACH"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/styled-components/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"styled-components/index.js\"\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js index 75def08c2163..ea0ba5825dff 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js @@ -1,5 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@swc/helpers/_/_class_call_check.js [test] (ecmascript)", (function(__turbopack_context__){ +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@swc/helpers/_/_class_call_check.js [test] (ecmascript)",(function(__turbopack_context__){ "use strict"; __turbopack_context__.s([ @@ -9,8 +8,7 @@ __turbopack_context__.s([ function _() { return 'purposefully empty stub for @swc/helpers/_/_class_call_check.js'; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/input/index.js [test] (ecmascript)", (function(__turbopack_context__){ +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/input/index.js [test] (ecmascript)",(function(__turbopack_context__){ "use strict"; __turbopack_context__.s([ @@ -25,7 +23,6 @@ var Foo = function Foo() { }; console.log(Foo, [].includes('foo')); var __TURBOPACK__default__export__ = 123; -}), -]); +})]); //# sourceMappingURL=turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js.map index acc530cca87e..2c999d869740 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/output/turbopack_crates_turbopack-tests_tests_snapshot_1v9rcb0xkvvrg._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@swc/helpers/_/_class_call_check.js"],"sourcesContent":["export function _() {\n return 'purposefully empty stub for @swc/helpers/_/_class_call_check.js'\n}\n"],"names":["_"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, - {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/input/index.js"],"sourcesContent":["class Foo {}\n\nconsole.log(Foo, [].includes('foo'))\n\nexport default 123\n"],"names":["Foo","console","log","includes"],"mappings":";;;;;;AAAA,IAAA,AAAMA,MAAN,SAAMA;;2OAAAA;;AAENC,QAAQC,GAAG,CAACF,KAAK,EAAE,CAACG,QAAQ,CAAC;qCAEd"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@swc/helpers/_/_class_call_check.js"],"sourcesContent":["export function _() {\n return 'purposefully empty stub for @swc/helpers/_/_class_call_check.js'\n}\n"],"names":["_"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, + {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/input/index.js"],"sourcesContent":["class Foo {}\n\nconsole.log(Foo, [].includes('foo'))\n\nexport default 123\n"],"names":["Foo","console","log","includes"],"mappings":";;;;;;AAAA,IAAA,AAAMA,MAAN,SAAMA;;2OAAAA;;AAENC,QAAQC,GAAG,CAACF,KAAK,EAAE,CAACG,QAAQ,CAAC;qCAEd"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js index de50feb68a3d..d3d67720bcee 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Parser.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Parser.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -11,8 +10,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo function comment() { console.log((0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$swc_transforms$2f$preset_env_modern$2f$input$2f$Tokenizer$2e$js__$5b$test$5d$__$28$ecmascript$29$__["char"])()); } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Tokenizer.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Tokenizer.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -22,15 +20,13 @@ __turbopack_context__.s([ function char() { return 0; } -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$swc_transforms$2f$preset_env_modern$2f$input$2f$Parser$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Parser.js [test] (ecmascript)"); ; console.log((0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$swc_transforms$2f$preset_env_modern$2f$input$2f$Parser$2e$js__$5b$test$5d$__$28$ecmascript$29$__["comment"])()); -}), -]);})() +})]); //# sourceMappingURL=1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js.map index 017f2466868a..2c9864a86da5 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/output/1jsg_tests_snapshot_swc_transforms_preset_env_modern_input_1utkugv09yioo._.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Parser.js"],"sourcesContent":["import { char } from './Tokenizer.js'\n\nexport function comment() {\n console.log(char())\n}\n"],"names":["comment","console","log"],"mappings":";;;;AAAA;;AAEO,SAASA;IACdC,QAAQC,GAAG,CAAC,IAAA,6NAAI;AAClB"}}, - {"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Tokenizer.js"],"sourcesContent":["export function char() {\n return 0\n}\n"],"names":["char"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT"}}, - {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/index.js"],"sourcesContent":["import { comment } from './Parser.js'\n\nconsole.log(comment())\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,IAAA,6NAAO"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Parser.js"],"sourcesContent":["import { char } from './Tokenizer.js'\n\nexport function comment() {\n console.log(char())\n}\n"],"names":["comment","console","log"],"mappings":";;;;AAAA;;AAEO,SAASA;IACdC,QAAQC,GAAG,CAAC,IAAA,6NAAI;AAClB"}}, + {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/Tokenizer.js"],"sourcesContent":["export function char() {\n return 0\n}\n"],"names":["char"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT"}}, + {"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env_modern/input/index.js"],"sourcesContent":["import { comment } from './Parser.js'\n\nconsole.log(comment())\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,IAAA,6NAAO"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js b/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js index 6eecd395e68e..f0173f31af76 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js @@ -1,12 +1,10 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); ; if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable ; -}), -]); +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js.map index 7a4b8c50a0b4..08efff874b3a 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/output/0_9x_turbopack-tests_tests_snapshot_tree-shaking_dce_input_index_17is659p06x2o.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/input/index.js"],"sourcesContent":["import { baz } from './module'\n\nif (1 + 1 == 3) {\n baz()\n}\n"],"names":[],"mappings":";;AAEA"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/input/index.js"],"sourcesContent":["import { baz } from './module'\n\nif (1 + 1 == 3) {\n baz()\n}\n"],"names":[],"mappings":";;AAEA"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js b/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js index aabcc00735d5..370777c77c59 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js @@ -1,5 +1,4 @@ -(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/index.js [test] (ecmascript)", ((__turbopack_context__) => { +"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/index.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([]); @@ -8,8 +7,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ; ; console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$typescript$2f$jsconfig$2d$baseurl$2f$input$2f$prop$2e$js__$5b$test$5d$__$28$ecmascript$29$__["prop"], __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$typescript$2f$jsconfig$2d$baseurl$2f$input$2f$prop$2e$js__$5b$test$5d$__$28$ecmascript$29$__["prop"], __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$typescript$2f$jsconfig$2d$baseurl$2f$input$2f$prop$2e$js__$5b$test$5d$__$28$ecmascript$29$__["prop"]); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/prop.js [test] (ecmascript)", ((__turbopack_context__) => { +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/prop.js [test] (ecmascript)",((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ @@ -17,7 +15,6 @@ __turbopack_context__.s([ ()=>prop ]); const prop = 1; -}), -]);})() +})]); //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js.map index 1061e83367dc..7f7d9c548ed4 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/output/0_9x_turbopack-tests_tests_snapshot_typescript_jsconfig-baseurl_input_0qbibqfoqauyh._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/index.js"],"sourcesContent":["import { prop as globalFoo } from 'foo'\nimport { prop as localFoo } from './foo'\nimport { prop as atFoo } from '@/foo'\n\nconsole.log(globalFoo, localFoo, atFoo)\n"],"names":["console","log"],"mappings":";AAAA;;;;AAIAA,QAAQC,GAAG,CAAC,sNAAS,EAAE,sNAAQ,EAAE,sNAAK"}}, - {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/prop.js"],"sourcesContent":["export const prop = 1\n"],"names":["prop"],"mappings":";;;;AAAO,MAAMA,OAAO"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/index.js"],"sourcesContent":["import { prop as globalFoo } from 'foo'\nimport { prop as localFoo } from './foo'\nimport { prop as atFoo } from '@/foo'\n\nconsole.log(globalFoo, localFoo, atFoo)\n"],"names":["console","log"],"mappings":";AAAA;;;;AAIAA,QAAQC,GAAG,CAAC,sNAAS,EAAE,sNAAQ,EAAE,sNAAK"}}, + {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/jsconfig-baseurl/input/prop.js"],"sourcesContent":["export const prop = 1\n"],"names":["prop"],"mappings":";;;;AAAO,MAAMA,OAAO"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js index acd513b96834..b61a05844c91 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js @@ -1,9 +1,7 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { console.log('worker.js'); self.postMessage('hello'); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js.map index e6653f5c1703..57ba380e8278 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js"],"sourcesContent":["console.log('worker.js')\nself.postMessage('hello')\n"],"names":["console","log","self","postMessage"],"mappings":"AAAAA,QAAQC,GAAG,CAAC;AACZC,KAAKC,WAAW,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js"],"sourcesContent":["console.log('worker.js')\nself.postMessage('hello')\n"],"names":["console","log","self","postMessage"],"mappings":"AAAAA,QAAQC,GAAG,CAAC;AACZC,KAAKC,WAAW,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js index 5c9e63efcd15..1d9790e8c824 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js @@ -1,30 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/[root-of-the-server]__07l1lihsce94l._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { - -var __TURBOPACK__import$2e$meta__ = { - get url () { - return __turbopack_context__.F("turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/index.js"); - }, - env: { - DEV: true, - PROD: false, - MODE: "development", - BASE_URL: "/", - SSR: false - } -}; -console.log('index.js'); -const url = new __turbopack_context__.U(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js (static in ecmascript)")); -__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js [test] (ecmascript, worker loader)")(Worker); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js (static in ecmascript)", ((__turbopack_context__) => { - -__turbopack_context__.q("/static/worker.2-qnq-strt8dn.js");}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js [test] (ecmascript, worker loader)", ((__turbopack_context__) => { - -__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)")["default"]("output/0uxq_crates_turbopack-tests_tests_snapshot_workers_basic_output_0uy0mninb8pht._.js", ["output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js","output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0lqk-upqfi2y2.js"])); -}), -"[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/[root-of-the-server]__07l1lihsce94l._.js","[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // Embedded worker-runtime helper. This file is bundled as a regular module and @@ -89,7 +63,28 @@ __turbopack_context__.s([ function generateCreateWorker(entrypoint, moduleChunks) { return (WorkerConstructor, workerOptions)=>createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions); } -}), -]); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { + +var __TURBOPACK__import$2e$meta__ = { + get url () { + return __turbopack_context__.F("turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/index.js"); + }, + env: { + DEV: true, + PROD: false, + MODE: "development", + BASE_URL: "/", + SSR: false + } +}; +console.log('index.js'); +const url = new __turbopack_context__.U(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js (static in ecmascript)")); +__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js [test] (ecmascript, worker loader)")(Worker); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js (static in ecmascript)",((__turbopack_context__) => { + +__turbopack_context__.q("/static/worker.2-qnq-strt8dn.js");}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/worker.js [test] (ecmascript, worker loader)",((__turbopack_context__) => { + +__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)")["default"]("output/0uxq_crates_turbopack-tests_tests_snapshot_workers_basic_output_0uy0mninb8pht._.js", ["output/1do3_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_11ygioomdle70.js","output/1i9t_crates_turbopack-tests_tests_snapshot_workers_basic_input_worker_0lqk-upqfi2y2.js"])); +})]); //# sourceMappingURL=%5Broot-of-the-server%5D__07l1lihsce94l._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js.map index 53e422d6f809..dcc399cc214c 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/output/[root-of-the-server]__07l1lihsce94l._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/index.js"],"sourcesContent":["console.log('index.js')\nconst url = new URL('./worker.js', import.meta.url)\nnew Worker(url)\n"],"names":["console","log","url","Worker"],"mappings":";;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC;AACZ,MAAMC;AACN,sJAAIC"}}, - {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-ecmascript]/worker/browser/createWorker.ts"],"sourcesContent":["// Embedded worker-runtime helper. This file is bundled as a regular module and\n// `__turbopack_require__`d by the generated web-worker loader code.\n//\n// The chunk-URL builder, the chunk base path and the asset suffix are read from\n// the shared `__turbopack_chunk_relative_url__` / `__turbopack_chunk_base_path__`\n// / `__turbopack_chunk_asset_suffix__` runtime primitives. The worker base-path\n// override and forwarded-global names are baked into this module at build time by\n// `turbopack-ecmascript` replacing the `_TURBOPACK_WORKER_BASE_PATH_` /\n// `_TURBOPACK_WORKER_FORWARDED_GLOBALS_` free variables, and the forwarded-global\n// values are read from `globalThis`.\ndeclare const __turbopack_chunk_relative_url__: (\n chunkPath: string,\n basePath?: string\n) => string\n\ndeclare const __turbopack_chunk_base_path__: string\ndeclare const __turbopack_chunk_asset_suffix__: string\n\ndeclare const _TURBOPACK_WORKER_FORWARDED_GLOBALS_: string[]\ndeclare const _TURBOPACK_WORKER_BASE_PATH_: string | null\n\ntype WorkerConstructor = new (url: URL, options?: object) => Worker\n\n// Mirrors the runtime's `ChunkData`.\ntype WorkerChunkData = string | { path: string }\n\n/**\n * Creates a web worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, WORKER_CHUNK_BASE_PATH, ...workerForwardedGlobals values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: WorkerConstructor,\n entrypoint: string,\n moduleChunks: WorkerChunkData[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath =\n _TURBOPACK_WORKER_BASE_PATH_ ?? __turbopack_chunk_base_path__\n\n const chunkUrls = moduleChunks\n .map((chunk) =>\n __turbopack_chunk_relative_url__(\n typeof chunk === 'string' ? chunk : chunk.path,\n workerBasePath\n )\n )\n .reverse()\n const params: unknown[] = [\n chunkUrls,\n __turbopack_chunk_asset_suffix__,\n workerBasePath,\n ]\n const globals = _TURBOPACK_WORKER_FORWARDED_GLOBALS_\n for (let i = 0; i < globals.length; i++) {\n params.push((globalThis as Record)[globals[i]])\n }\n\n const url = new URL(\n __turbopack_chunk_relative_url__(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\n\n/**\n * Returns a function, that when called with the constructor + any options calls `createWorker()`.\n * The worker configuration (`entrypoint`, `moduleChunks`) is passed by `turbopack-ecmascript`\n * at build time, leaving the runtime caller to only supply the constructor and options.\n */\nexport default function generateCreateWorker(\n entrypoint: string,\n moduleChunks: WorkerChunkData[]\n) {\n return (\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n workerOptions?: object\n ) => createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions)\n}\n"],"names":["createWorker","WorkerConstructor","entrypoint","moduleChunks","workerOptions","isSharedWorker","name","workerBasePath","chunkUrls","map","chunk","path","reverse","params","globals","i","length","push","globalThis","url","URL","location","origin","paramsJson","JSON","stringify","searchParams","set","hash","encodeURIComponent","options","type","undefined","generateCreateWorker"],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,wEAAwE;AACxE,kFAAkF;AAClF,qCAAqC;;;;;AAiBrC;;;;;;;;;;;;;;CAcC,GACD,SAASA,aACPC,iBAAoC,EACpCC,UAAkB,EAClBC,YAA+B,EAC/BC,aAAsB;IAEtB,MAAMC,iBAAiBJ,kBAAkBK,IAAI,KAAK;IAElD,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAMC,iBACJ;IAEF,MAAMC,YAAYL,aACfM,GAAG,CAAC,CAACC,QACJ,yDACE,OAAOA,UAAU,WAAWA,QAAQA,MAAMC,IAAI,EAC9CJ,iBAGHK,OAAO;IACV,MAAMC,SAAoB;QACxBL;;QAEAD;KACD;IACD,MAAMO;IACN,IAAK,IAAIC,IAAI,GAAGA,IAAID,QAAQE,MAAM,EAAED,IAAK;QACvCF,OAAOI,IAAI,CAAC,AAACC,UAAsC,CAACJ,OAAO,CAACC,EAAE,CAAC;IACjE;IAEA,MAAMI,MAAM,IAAIC,IACd,yDAAiClB,YAAYK,iBAC7Cc,SAASC,MAAM;IAEjB,MAAMC,aAAaC,KAAKC,SAAS,CAACZ;IAClC,IAAIR,gBAAgB;QAClBc,IAAIO,YAAY,CAACC,GAAG,CAAC,UAAUJ;IACjC,OAAO;QACLJ,IAAIS,IAAI,GAAG,aAAaC,mBAAmBN;IAC7C;IAEA,iFAAiF;IACjF,MAAMO,UAAU1B,gBACZ;QAAE,GAAGA,aAAa;QAAE2B,MAAMC;IAAU,IACpCA;IACJ,OAAO,IAAI/B,kBAAkBkB,KAAKW;AACpC;AAOe,SAASG,qBACtB/B,UAAkB,EAClBC,YAA+B;IAE/B,OAAO,CACLF,mBACAG,gBACGJ,aAAaC,mBAAmBC,YAAYC,cAAcC;AACjE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-ecmascript]/worker/browser/createWorker.ts"],"sourcesContent":["// Embedded worker-runtime helper. This file is bundled as a regular module and\n// `__turbopack_require__`d by the generated web-worker loader code.\n//\n// The chunk-URL builder, the chunk base path and the asset suffix are read from\n// the shared `__turbopack_chunk_relative_url__` / `__turbopack_chunk_base_path__`\n// / `__turbopack_chunk_asset_suffix__` runtime primitives. The worker base-path\n// override and forwarded-global names are baked into this module at build time by\n// `turbopack-ecmascript` replacing the `_TURBOPACK_WORKER_BASE_PATH_` /\n// `_TURBOPACK_WORKER_FORWARDED_GLOBALS_` free variables, and the forwarded-global\n// values are read from `globalThis`.\ndeclare const __turbopack_chunk_relative_url__: (\n chunkPath: string,\n basePath?: string\n) => string\n\ndeclare const __turbopack_chunk_base_path__: string\ndeclare const __turbopack_chunk_asset_suffix__: string\n\ndeclare const _TURBOPACK_WORKER_FORWARDED_GLOBALS_: string[]\ndeclare const _TURBOPACK_WORKER_BASE_PATH_: string | null\n\ntype WorkerConstructor = new (url: URL, options?: object) => Worker\n\n// Mirrors the runtime's `ChunkData`.\ntype WorkerChunkData = string | { path: string }\n\n/**\n * Creates a web worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, WORKER_CHUNK_BASE_PATH, ...workerForwardedGlobals values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: WorkerConstructor,\n entrypoint: string,\n moduleChunks: WorkerChunkData[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath =\n _TURBOPACK_WORKER_BASE_PATH_ ?? __turbopack_chunk_base_path__\n\n const chunkUrls = moduleChunks\n .map((chunk) =>\n __turbopack_chunk_relative_url__(\n typeof chunk === 'string' ? chunk : chunk.path,\n workerBasePath\n )\n )\n .reverse()\n const params: unknown[] = [\n chunkUrls,\n __turbopack_chunk_asset_suffix__,\n workerBasePath,\n ]\n const globals = _TURBOPACK_WORKER_FORWARDED_GLOBALS_\n for (let i = 0; i < globals.length; i++) {\n params.push((globalThis as Record)[globals[i]])\n }\n\n const url = new URL(\n __turbopack_chunk_relative_url__(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\n\n/**\n * Returns a function, that when called with the constructor + any options calls `createWorker()`.\n * The worker configuration (`entrypoint`, `moduleChunks`) is passed by `turbopack-ecmascript`\n * at build time, leaving the runtime caller to only supply the constructor and options.\n */\nexport default function generateCreateWorker(\n entrypoint: string,\n moduleChunks: WorkerChunkData[]\n) {\n return (\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n workerOptions?: object\n ) => createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions)\n}\n"],"names":["createWorker","WorkerConstructor","entrypoint","moduleChunks","workerOptions","isSharedWorker","name","workerBasePath","chunkUrls","map","chunk","path","reverse","params","globals","i","length","push","globalThis","url","URL","location","origin","paramsJson","JSON","stringify","searchParams","set","hash","encodeURIComponent","options","type","undefined","generateCreateWorker"],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,wEAAwE;AACxE,kFAAkF;AAClF,qCAAqC;;;;;AAiBrC;;;;;;;;;;;;;;CAcC,GACD,SAASA,aACPC,iBAAoC,EACpCC,UAAkB,EAClBC,YAA+B,EAC/BC,aAAsB;IAEtB,MAAMC,iBAAiBJ,kBAAkBK,IAAI,KAAK;IAElD,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAMC,iBACJ;IAEF,MAAMC,YAAYL,aACfM,GAAG,CAAC,CAACC,QACJ,yDACE,OAAOA,UAAU,WAAWA,QAAQA,MAAMC,IAAI,EAC9CJ,iBAGHK,OAAO;IACV,MAAMC,SAAoB;QACxBL;;QAEAD;KACD;IACD,MAAMO;IACN,IAAK,IAAIC,IAAI,GAAGA,IAAID,QAAQE,MAAM,EAAED,IAAK;QACvCF,OAAOI,IAAI,CAAC,AAACC,UAAsC,CAACJ,OAAO,CAACC,EAAE,CAAC;IACjE;IAEA,MAAMI,MAAM,IAAIC,IACd,yDAAiClB,YAAYK,iBAC7Cc,SAASC,MAAM;IAEjB,MAAMC,aAAaC,KAAKC,SAAS,CAACZ;IAClC,IAAIR,gBAAgB;QAClBc,IAAIO,YAAY,CAACC,GAAG,CAAC,UAAUJ;IACjC,OAAO;QACLJ,IAAIS,IAAI,GAAG,aAAaC,mBAAmBN;IAC7C;IAEA,iFAAiF;IACjF,MAAMO,UAAU1B,gBACZ;QAAE,GAAGA,aAAa;QAAE2B,MAAMC;IAAU,IACpCA;IACJ,OAAO,IAAI/B,kBAAkBkB,KAAKW;AACpC;AAOe,SAASG,qBACtB/B,UAAkB,EAClBC,YAA+B;IAE/B,OAAO,CACLF,mBACAG,gBACGJ,aAAaC,mBAAmBC,YAAYC,cAAcC;AACjE"}}, + {"offset": {"line": 67, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/basic/input/index.js"],"sourcesContent":["console.log('index.js')\nconst url = new URL('./worker.js', import.meta.url)\nnew Worker(url)\n"],"names":["console","log","url","Worker"],"mappings":";;;;;;;;;;;;AAAAA,QAAQC,GAAG,CAAC;AACZ,MAAMC;AACN,sJAAIC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js index ee43aceaa008..94d1f53444cb 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js @@ -1,8 +1,6 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js","[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { self.onconnect = (e)=>e.ports[0].postMessage('hello'); -}), -]); +})]); //# sourceMappingURL=1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js.map index 4c9a7f2f98b3..87ce0c96ee7b 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js.map @@ -2,5 +2,5 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js"],"sourcesContent":["self.onconnect = (e) => e.ports[0].postMessage('hello')\n"],"names":["self","onconnect","e","ports","postMessage"],"mappings":"AAAAA,KAAKC,SAAS,GAAG,CAACC,IAAMA,EAAEC,KAAK,CAAC,EAAE,CAACC,WAAW,CAAC"}}] + {"offset": {"line": 2, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js"],"sourcesContent":["self.onconnect = (e) => e.ports[0].postMessage('hello')\n"],"names":["self","onconnect","e","ports","postMessage"],"mappings":"AAAAA,KAAKC,SAAS,GAAG,CAACC,IAAMA,EAAEC,KAAK,CAAC,EAAE,CAACC,WAAW,CAAC"}}] } \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js index 11d76ab8b0d0..3d3a87cae2f6 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js @@ -1,29 +1,4 @@ -(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/[root-of-the-server]__0kx1kaj2uwzi1._.js", -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { - -var __TURBOPACK__import$2e$meta__ = { - get url () { - return __turbopack_context__.F("turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/index.js"); - }, - env: { - DEV: true, - PROD: false, - MODE: "development", - BASE_URL: "/", - SSR: false - } -}; -const url = new __turbopack_context__.U(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js (static in ecmascript)")); -__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js [test] (ecmascript, worker loader)")(SharedWorker); -}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js (static in ecmascript)", ((__turbopack_context__) => { - -__turbopack_context__.q("/static/worker.1n36e5vaxakik.js");}), -"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js [test] (ecmascript, worker loader)", ((__turbopack_context__) => { - -__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)")["default"]("output/0uxq_crates_turbopack-tests_tests_snapshot_workers_shared_output_0uy0mninb8pht._.js", ["output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js","output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1im1g730qzysb.js"])); -}), -"[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)", ((__turbopack_context__) => { +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["output/[root-of-the-server]__0kx1kaj2uwzi1._.js","[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)",((__turbopack_context__) => { "use strict"; // Embedded worker-runtime helper. This file is bundled as a regular module and @@ -88,7 +63,27 @@ __turbopack_context__.s([ function generateCreateWorker(entrypoint, moduleChunks) { return (WorkerConstructor, workerOptions)=>createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions); } -}), -]); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/index.js [test] (ecmascript)",((__turbopack_context__, module, exports) => { + +var __TURBOPACK__import$2e$meta__ = { + get url () { + return __turbopack_context__.F("turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/index.js"); + }, + env: { + DEV: true, + PROD: false, + MODE: "development", + BASE_URL: "/", + SSR: false + } +}; +const url = new __turbopack_context__.U(__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js (static in ecmascript)")); +__turbopack_context__.r("[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js [test] (ecmascript, worker loader)")(SharedWorker); +}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js (static in ecmascript)",((__turbopack_context__) => { + +__turbopack_context__.q("/static/worker.1n36e5vaxakik.js");}),"[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/worker.js [test] (ecmascript, worker loader)",((__turbopack_context__) => { + +__turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/browser/createWorker.ts [test] (ecmascript)")["default"]("output/0uxq_crates_turbopack-tests_tests_snapshot_workers_shared_output_0uy0mninb8pht._.js", ["output/1do3_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1u1i0a127q7ym.js","output/1i9t_crates_turbopack-tests_tests_snapshot_workers_shared_input_worker_1im1g730qzysb.js"])); +})]); //# sourceMappingURL=%5Broot-of-the-server%5D__0kx1kaj2uwzi1._.js.map \ No newline at end of file diff --git a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js.map b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js.map index 04325d693323..024be967d1e2 100644 --- a/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js.map +++ b/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/output/[root-of-the-server]__0kx1kaj2uwzi1._.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/index.js"],"sourcesContent":["const url = new URL('./worker.js', import.meta.url)\nnew SharedWorker(url)\n"],"names":["url","SharedWorker"],"mappings":";;;;;;;;;;;;AAAA,MAAMA;AACN,uJAAIC"}}, - {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-ecmascript]/worker/browser/createWorker.ts"],"sourcesContent":["// Embedded worker-runtime helper. This file is bundled as a regular module and\n// `__turbopack_require__`d by the generated web-worker loader code.\n//\n// The chunk-URL builder, the chunk base path and the asset suffix are read from\n// the shared `__turbopack_chunk_relative_url__` / `__turbopack_chunk_base_path__`\n// / `__turbopack_chunk_asset_suffix__` runtime primitives. The worker base-path\n// override and forwarded-global names are baked into this module at build time by\n// `turbopack-ecmascript` replacing the `_TURBOPACK_WORKER_BASE_PATH_` /\n// `_TURBOPACK_WORKER_FORWARDED_GLOBALS_` free variables, and the forwarded-global\n// values are read from `globalThis`.\ndeclare const __turbopack_chunk_relative_url__: (\n chunkPath: string,\n basePath?: string\n) => string\n\ndeclare const __turbopack_chunk_base_path__: string\ndeclare const __turbopack_chunk_asset_suffix__: string\n\ndeclare const _TURBOPACK_WORKER_FORWARDED_GLOBALS_: string[]\ndeclare const _TURBOPACK_WORKER_BASE_PATH_: string | null\n\ntype WorkerConstructor = new (url: URL, options?: object) => Worker\n\n// Mirrors the runtime's `ChunkData`.\ntype WorkerChunkData = string | { path: string }\n\n/**\n * Creates a web worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, WORKER_CHUNK_BASE_PATH, ...workerForwardedGlobals values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: WorkerConstructor,\n entrypoint: string,\n moduleChunks: WorkerChunkData[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath =\n _TURBOPACK_WORKER_BASE_PATH_ ?? __turbopack_chunk_base_path__\n\n const chunkUrls = moduleChunks\n .map((chunk) =>\n __turbopack_chunk_relative_url__(\n typeof chunk === 'string' ? chunk : chunk.path,\n workerBasePath\n )\n )\n .reverse()\n const params: unknown[] = [\n chunkUrls,\n __turbopack_chunk_asset_suffix__,\n workerBasePath,\n ]\n const globals = _TURBOPACK_WORKER_FORWARDED_GLOBALS_\n for (let i = 0; i < globals.length; i++) {\n params.push((globalThis as Record)[globals[i]])\n }\n\n const url = new URL(\n __turbopack_chunk_relative_url__(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\n\n/**\n * Returns a function, that when called with the constructor + any options calls `createWorker()`.\n * The worker configuration (`entrypoint`, `moduleChunks`) is passed by `turbopack-ecmascript`\n * at build time, leaving the runtime caller to only supply the constructor and options.\n */\nexport default function generateCreateWorker(\n entrypoint: string,\n moduleChunks: WorkerChunkData[]\n) {\n return (\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n workerOptions?: object\n ) => createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions)\n}\n"],"names":["createWorker","WorkerConstructor","entrypoint","moduleChunks","workerOptions","isSharedWorker","name","workerBasePath","chunkUrls","map","chunk","path","reverse","params","globals","i","length","push","globalThis","url","URL","location","origin","paramsJson","JSON","stringify","searchParams","set","hash","encodeURIComponent","options","type","undefined","generateCreateWorker"],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,wEAAwE;AACxE,kFAAkF;AAClF,qCAAqC;;;;;AAiBrC;;;;;;;;;;;;;;CAcC,GACD,SAASA,aACPC,iBAAoC,EACpCC,UAAkB,EAClBC,YAA+B,EAC/BC,aAAsB;IAEtB,MAAMC,iBAAiBJ,kBAAkBK,IAAI,KAAK;IAElD,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAMC,iBACJ;IAEF,MAAMC,YAAYL,aACfM,GAAG,CAAC,CAACC,QACJ,yDACE,OAAOA,UAAU,WAAWA,QAAQA,MAAMC,IAAI,EAC9CJ,iBAGHK,OAAO;IACV,MAAMC,SAAoB;QACxBL;;QAEAD;KACD;IACD,MAAMO;IACN,IAAK,IAAIC,IAAI,GAAGA,IAAID,QAAQE,MAAM,EAAED,IAAK;QACvCF,OAAOI,IAAI,CAAC,AAACC,UAAsC,CAACJ,OAAO,CAACC,EAAE,CAAC;IACjE;IAEA,MAAMI,MAAM,IAAIC,IACd,yDAAiClB,YAAYK,iBAC7Cc,SAASC,MAAM;IAEjB,MAAMC,aAAaC,KAAKC,SAAS,CAACZ;IAClC,IAAIR,gBAAgB;QAClBc,IAAIO,YAAY,CAACC,GAAG,CAAC,UAAUJ;IACjC,OAAO;QACLJ,IAAIS,IAAI,GAAG,aAAaC,mBAAmBN;IAC7C;IAEA,iFAAiF;IACjF,MAAMO,UAAU1B,gBACZ;QAAE,GAAGA,aAAa;QAAE2B,MAAMC;IAAU,IACpCA;IACJ,OAAO,IAAI/B,kBAAkBkB,KAAKW;AACpC;AAOe,SAASG,qBACtB/B,UAAkB,EAClBC,YAA+B;IAE/B,OAAO,CACLF,mBACAG,gBACGJ,aAAaC,mBAAmBC,YAAYC,cAAcC;AACjE"}}] + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-ecmascript]/worker/browser/createWorker.ts"],"sourcesContent":["// Embedded worker-runtime helper. This file is bundled as a regular module and\n// `__turbopack_require__`d by the generated web-worker loader code.\n//\n// The chunk-URL builder, the chunk base path and the asset suffix are read from\n// the shared `__turbopack_chunk_relative_url__` / `__turbopack_chunk_base_path__`\n// / `__turbopack_chunk_asset_suffix__` runtime primitives. The worker base-path\n// override and forwarded-global names are baked into this module at build time by\n// `turbopack-ecmascript` replacing the `_TURBOPACK_WORKER_BASE_PATH_` /\n// `_TURBOPACK_WORKER_FORWARDED_GLOBALS_` free variables, and the forwarded-global\n// values are read from `globalThis`.\ndeclare const __turbopack_chunk_relative_url__: (\n chunkPath: string,\n basePath?: string\n) => string\n\ndeclare const __turbopack_chunk_base_path__: string\ndeclare const __turbopack_chunk_asset_suffix__: string\n\ndeclare const _TURBOPACK_WORKER_FORWARDED_GLOBALS_: string[]\ndeclare const _TURBOPACK_WORKER_BASE_PATH_: string | null\n\ntype WorkerConstructor = new (url: URL, options?: object) => Worker\n\n// Mirrors the runtime's `ChunkData`.\ntype WorkerChunkData = string | { path: string }\n\n/**\n * Creates a web worker by instantiating the given WorkerConstructor with the\n * appropriate URL and options.\n *\n * The entrypoint is a pre-compiled worker runtime file. The params configure\n * which module chunks to load and which module to run as the entry point.\n *\n * The params are a JSON array of the following structure:\n * `[TURBOPACK_NEXT_CHUNK_URLS, ASSET_SUFFIX, WORKER_CHUNK_BASE_PATH, ...workerForwardedGlobals values]`\n *\n * @param WorkerConstructor The Worker or SharedWorker constructor\n * @param entrypoint path to the worker entrypoint chunk\n * @param moduleChunks list of module chunk paths to load\n * @param workerOptions options to pass to the Worker constructor (optional)\n */\nfunction createWorker(\n WorkerConstructor: WorkerConstructor,\n entrypoint: string,\n moduleChunks: WorkerChunkData[],\n workerOptions?: object\n): Worker {\n const isSharedWorker = WorkerConstructor.name === 'SharedWorker'\n\n // `WORKER_BASE_PATH` overrides `CHUNK_BASE_PATH` for the entrypoint and the\n // module chunks loaded inside the worker, keeping them same-origin to each\n // other when `CHUNK_BASE_PATH` (= `assetPrefix`) is a cross-origin CDN.\n // `null` falls back; an empty string is treated as a literal empty prefix.\n const workerBasePath =\n _TURBOPACK_WORKER_BASE_PATH_ ?? __turbopack_chunk_base_path__\n\n const chunkUrls = moduleChunks\n .map((chunk) =>\n __turbopack_chunk_relative_url__(\n typeof chunk === 'string' ? chunk : chunk.path,\n workerBasePath\n )\n )\n .reverse()\n const params: unknown[] = [\n chunkUrls,\n __turbopack_chunk_asset_suffix__,\n workerBasePath,\n ]\n const globals = _TURBOPACK_WORKER_FORWARDED_GLOBALS_\n for (let i = 0; i < globals.length; i++) {\n params.push((globalThis as Record)[globals[i]])\n }\n\n const url = new URL(\n __turbopack_chunk_relative_url__(entrypoint, workerBasePath),\n location.origin\n )\n const paramsJson = JSON.stringify(params)\n if (isSharedWorker) {\n url.searchParams.set('params', paramsJson)\n } else {\n url.hash = '#params=' + encodeURIComponent(paramsJson)\n }\n\n // Remove type: \"module\" from options since our worker entrypoint is not a module\n const options = workerOptions\n ? { ...workerOptions, type: undefined }\n : undefined\n return new WorkerConstructor(url, options)\n}\n\n/**\n * Returns a function, that when called with the constructor + any options calls `createWorker()`.\n * The worker configuration (`entrypoint`, `moduleChunks`) is passed by `turbopack-ecmascript`\n * at build time, leaving the runtime caller to only supply the constructor and options.\n */\nexport default function generateCreateWorker(\n entrypoint: string,\n moduleChunks: WorkerChunkData[]\n) {\n return (\n WorkerConstructor: { new (url: URL, options?: object): Worker },\n workerOptions?: object\n ) => createWorker(WorkerConstructor, entrypoint, moduleChunks, workerOptions)\n}\n"],"names":["createWorker","WorkerConstructor","entrypoint","moduleChunks","workerOptions","isSharedWorker","name","workerBasePath","chunkUrls","map","chunk","path","reverse","params","globals","i","length","push","globalThis","url","URL","location","origin","paramsJson","JSON","stringify","searchParams","set","hash","encodeURIComponent","options","type","undefined","generateCreateWorker"],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,wEAAwE;AACxE,kFAAkF;AAClF,qCAAqC;;;;;AAiBrC;;;;;;;;;;;;;;CAcC,GACD,SAASA,aACPC,iBAAoC,EACpCC,UAAkB,EAClBC,YAA+B,EAC/BC,aAAsB;IAEtB,MAAMC,iBAAiBJ,kBAAkBK,IAAI,KAAK;IAElD,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAMC,iBACJ;IAEF,MAAMC,YAAYL,aACfM,GAAG,CAAC,CAACC,QACJ,yDACE,OAAOA,UAAU,WAAWA,QAAQA,MAAMC,IAAI,EAC9CJ,iBAGHK,OAAO;IACV,MAAMC,SAAoB;QACxBL;;QAEAD;KACD;IACD,MAAMO;IACN,IAAK,IAAIC,IAAI,GAAGA,IAAID,QAAQE,MAAM,EAAED,IAAK;QACvCF,OAAOI,IAAI,CAAC,AAACC,UAAsC,CAACJ,OAAO,CAACC,EAAE,CAAC;IACjE;IAEA,MAAMI,MAAM,IAAIC,IACd,yDAAiClB,YAAYK,iBAC7Cc,SAASC,MAAM;IAEjB,MAAMC,aAAaC,KAAKC,SAAS,CAACZ;IAClC,IAAIR,gBAAgB;QAClBc,IAAIO,YAAY,CAACC,GAAG,CAAC,UAAUJ;IACjC,OAAO;QACLJ,IAAIS,IAAI,GAAG,aAAaC,mBAAmBN;IAC7C;IAEA,iFAAiF;IACjF,MAAMO,UAAU1B,gBACZ;QAAE,GAAGA,aAAa;QAAE2B,MAAMC;IAAU,IACpCA;IACJ,OAAO,IAAI/B,kBAAkBkB,KAAKW;AACpC;AAOe,SAASG,qBACtB/B,UAAkB,EAClBC,YAA+B;IAE/B,OAAO,CACLF,mBACAG,gBACGJ,aAAaC,mBAAmBC,YAAYC,cAAcC;AACjE"}}, + {"offset": {"line": 67, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/workers/shared/input/index.js"],"sourcesContent":["const url = new URL('./worker.js', import.meta.url)\nnew SharedWorker(url)\n"],"names":["url","SharedWorker"],"mappings":";;;;;;;;;;;;AAAA,MAAMA;AACN,uJAAIC"}}] } \ No newline at end of file