Unverified Commit 06b48972 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Turbopack: respect max_chunk_size while merging production chunks

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent 4e0848bf
...@@ -47,7 +47,7 @@ use crate::{ ...@@ -47,7 +47,7 @@ use crate::{
runtime_entry::{RuntimeEntries, RuntimeEntry}, runtime_entry::{RuntimeEntries, RuntimeEntry},
transforms::get_next_client_transforms_rules, transforms::get_next_client_transforms_rules,
}, },
next_config::NextConfig, next_config::{ChunkingConfigOptionNames, NextConfig, warn_on_adjusted_chunking_config},
next_import_map::{ next_import_map::{
get_next_client_fallback_import_map, get_next_client_import_map, get_next_client_fallback_import_map, get_next_client_import_map,
get_next_client_resolved_map, get_next_client_resolved_map,
...@@ -574,7 +574,7 @@ pub async fn get_client_chunking_context( ...@@ -574,7 +574,7 @@ pub async fn get_client_chunking_context(
let service_worker_scope_base_path = service_worker_scope_base_path.owned().await?; let service_worker_scope_base_path = service_worker_scope_base_path.owned().await?;
let cross_origin_loading = *cross_origin.await?; let cross_origin_loading = *cross_origin.await?;
let mut builder = BrowserChunkingContext::builder( let mut builder = BrowserChunkingContext::builder(
root_path, root_path.clone(),
client_root.clone(), client_root.clone(),
client_root_to_root_path, client_root_to_root_path,
client_root.clone(), client_root.clone(),
...@@ -632,23 +632,34 @@ pub async fn get_client_chunking_context( ...@@ -632,23 +632,34 @@ pub async fn get_client_chunking_context(
// A manifest chunk keeps a lazily compiled import's URL stable across activation. // A manifest chunk keeps a lazily compiled import's URL stable across activation.
.manifest_chunks(*lazy_dynamic_imports.await?); .manifest_chunks(*lazy_dynamic_imports.await?);
} else { } else {
let ecmascript_chunking_config = ChunkingConfig {
min_chunk_size: chunking_min_chunk_size.unwrap_or(50_000),
max_chunk_count_per_group: chunking_max_chunk_count_per_group.unwrap_or(40),
max_merge_chunk_size: chunking_max_merge_chunk_size.unwrap_or(200_000),
max_chunk_size: chunking_max_chunk_size,
first_page_load_priority: chunking_first_page_load_priority,
priority_boost_percent: chunking_priority_boost_percent,
request_cost: chunking_request_cost,
// Generate component chunks alongside the merged chunk so that the browser
// runtime can fetch an already-cached one instead of the whole merged chunk.
generate_component_chunks: *generate_component_chunks.await?,
min_component_chunk_size: chunking_min_component_chunk_size.unwrap_or(20_000),
..Default::default()
};
warn_on_adjusted_chunking_config(
&ecmascript_chunking_config,
&ChunkingConfigOptionNames {
chunks: "client",
max_chunk_size: "maxChunkSize",
min_chunk_size: Some("minChunkSize"),
max_merge_chunk_size: Some("maxMergeChunkSize"),
},
root_path.clone(),
);
builder = builder builder = builder
.chunking_config( .chunking_config(
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ecmascript_chunking_config,
min_chunk_size: chunking_min_chunk_size.unwrap_or(50_000),
max_chunk_count_per_group: chunking_max_chunk_count_per_group.unwrap_or(40),
max_merge_chunk_size: chunking_max_merge_chunk_size.unwrap_or(200_000),
max_chunk_size: chunking_max_chunk_size,
first_page_load_priority: chunking_first_page_load_priority,
priority_boost_percent: chunking_priority_boost_percent,
request_cost: chunking_request_cost,
// Generate component chunks alongside the merged chunk so that the browser
// runtime can fetch an already-cached one instead of the whole merged chunk.
generate_component_chunks: *generate_component_chunks.await?,
min_component_chunk_size: chunking_min_component_chunk_size.unwrap_or(20_000),
..Default::default()
},
) )
.chunking_config( .chunking_config(
Vc::<CssChunkType>::default().to_resolved().await?, Vc::<CssChunkType>::default().to_resolved().await?,
......
...@@ -24,7 +24,7 @@ use turbopack::module_options::{ ...@@ -24,7 +24,7 @@ use turbopack::module_options::{
WebpackRules, module_options_context::MdxTransformOptions, WebpackRules, module_options_context::MdxTransformOptions,
}; };
use turbopack_core::{ use turbopack_core::{
chunk::{CrossOrigin, SourceMapsType}, chunk::{ChunkingConfig, CrossOrigin, SourceMapsType},
issue::{ issue::{
IgnoreIssue, IgnoreIssuePattern, Issue, IssueExt, IssueSeverity, IssueStage, StyledString, IgnoreIssue, IgnoreIssuePattern, Issue, IssueExt, IssueSeverity, IssueStage, StyledString,
}, },
...@@ -966,13 +966,14 @@ pub struct TurbopackChunkingConfig { ...@@ -966,13 +966,14 @@ pub struct TurbopackChunkingConfig {
/// chunks. This keeps code in big chunks from being duplicated across multiple chunks. /// chunks. This keeps code in big chunks from being duplicated across multiple chunks.
max_merge_chunk_size: Option<usize>, max_merge_chunk_size: Option<usize>,
/// Best-effort maximum estimated size of a client JavaScript chunk, in bytes of /// Best-effort maximum estimated size of a client JavaScript chunk, in bytes of
/// uncompressed, unminified code (default `1000000`). Bigger chunks are split /// uncompressed, unminified code (default `1000000`). Chunks are never merged into bigger
/// deterministically into smaller chunks, which may be smaller than `min_chunk_size` or /// chunks, and chunks that are bigger on their own are split deterministically into smaller
/// exceed `max_chunk_count_per_group`. Split merged chunks do not emit component chunks. `0` /// chunks, which may be smaller than `min_chunk_size` or exceed `max_chunk_count_per_group`.
/// disables splitting. /// Inconsistent values (smaller than 3 times `min_chunk_size`, or than `max_merge_chunk_size`)
/// are adjusted with a warning. `0` disables the limit.
max_chunk_size: Option<usize>, max_chunk_size: Option<usize>,
/// Like `max_chunk_size`, but for Node.js server and edge JavaScript chunks (default /// Like `max_chunk_size`, but for Node.js server and edge JavaScript chunks (default
/// `10000000`). `0` disables splitting. /// `10000000`). `0` disables the limit.
max_server_chunk_size: Option<usize>, max_server_chunk_size: Option<usize>,
/// Emit each merged production chunk's constituent component chunks alongside it, so the /// Emit each merged production chunk's constituent component chunks alongside it, so the
/// browser runtime can load only the chunks it doesn't already have (default `false`). /// browser runtime can load only the chunks it doesn't already have (default `false`).
...@@ -1564,6 +1565,139 @@ fn turbopack_config_documentation_link() -> RcStr { ...@@ -1564,6 +1565,139 @@ fn turbopack_config_documentation_link() -> RcStr {
) )
} }
/// How the size limits of a production JS chunking config map to Next.js config options, for
/// [`warn_on_adjusted_chunking_config`].
pub struct ChunkingConfigOptionNames {
/// The kind of chunks the config is for, e.g. `client`.
pub chunks: &'static str,
/// The option for `max_chunk_size`.
pub max_chunk_size: &'static str,
/// The option for `min_chunk_size`, or `None` when it is not configurable.
pub min_chunk_size: Option<&'static str>,
/// The option for `max_merge_chunk_size`, or `None` when it is not configurable.
pub max_merge_chunk_size: Option<&'static str>,
}
/// [`ChunkingConfigOptionNames`] of Node.js server chunks.
pub const SERVER_CHUNKING_CONFIG_OPTION_NAMES: ChunkingConfigOptionNames =
ChunkingConfigOptionNames {
chunks: "server",
max_chunk_size: "maxServerChunkSize",
min_chunk_size: None,
max_merge_chunk_size: None,
};
/// [`ChunkingConfigOptionNames`] of edge server chunks.
pub const EDGE_CHUNKING_CONFIG_OPTION_NAMES: ChunkingConfigOptionNames =
ChunkingConfigOptionNames {
chunks: "edge server",
max_chunk_size: "maxServerChunkSize",
min_chunk_size: None,
max_merge_chunk_size: None,
};
/// Turbopack normalizes the size limits of a chunking config (see [`ChunkingConfig::normalized`]).
/// Emits a warning when that adjusts the values of `config`, so that the user can fix the
/// `experimental.turbopackChunking` options.
pub fn warn_on_adjusted_chunking_config(
config: &ChunkingConfig,
names: &ChunkingConfigOptionNames,
file_path: FileSystemPath,
) {
let normalized = config.normalized();
let option = |name: Option<&str>, fallback: &str| match name {
Some(name) => format!("`experimental.turbopackChunking.{name}`"),
None => fallback.to_string(),
};
let max_chunk_size = option(Some(names.max_chunk_size), "");
let mut adjustments = Vec::new();
if normalized.max_chunk_size != config.max_chunk_size {
adjustments.push(format!(
"{max_chunk_size} ({}) was increased to {} (3 times {} of {}).",
config.max_chunk_size,
normalized.max_chunk_size,
option(
names.min_chunk_size,
&format!("the minimum {} chunk size", names.chunks)
),
config.min_chunk_size,
));
}
if normalized.max_merge_chunk_size != config.max_merge_chunk_size {
adjustments.push(format!(
"{} ({}) was decreased to {}, the maximum chunk size from {max_chunk_size}.",
option(
names.max_merge_chunk_size,
&format!("The maximum merge size of {} chunks", names.chunks)
),
if config.max_merge_chunk_size == 0 {
"unlimited".to_string()
} else {
config.max_merge_chunk_size.to_string()
},
normalized.max_merge_chunk_size,
));
}
if adjustments.is_empty() {
return;
}
AdjustedChunkingConfigIssue {
file_path,
chunks: names.chunks.into(),
adjustments: adjustments.into_iter().map(RcStr::from).collect(),
}
.resolved_cell()
.emit();
}
#[turbo_tasks::value(shared)]
struct AdjustedChunkingConfigIssue {
file_path: FileSystemPath,
chunks: RcStr,
adjustments: Vec<RcStr>,
}
#[async_trait]
#[turbo_tasks::value_impl]
impl Issue for AdjustedChunkingConfigIssue {
fn severity(&self) -> IssueSeverity {
IssueSeverity::Warning
}
async fn file_path(&self) -> Result<FileSystemPath> {
Ok(self.file_path.clone())
}
fn stage(&self) -> IssueStage {
IssueStage::Config
}
async fn title(&self) -> Result<StyledString> {
Ok(StyledString::Text(
format!(
"Inconsistent chunk size limits for {} chunks were adjusted",
self.chunks
)
.into(),
))
}
async fn description(&self) -> Result<Option<StyledString>> {
Ok(Some(StyledString::Stack(
std::iter::once(StyledString::Text(rcstr!(
"The maximum chunk size must be at least 3 times the minimum chunk size, and \
chunks bigger than the maximum chunk size are never merged:"
)))
.chain(
self.adjustments
.iter()
.map(|adjustment| StyledString::Text(adjustment.clone())),
)
.collect(),
)))
}
}
#[turbo_tasks::value(shared)] #[turbo_tasks::value(shared)]
struct InvalidLoaderRuleRenameAsIssue { struct InvalidLoaderRuleRenameAsIssue {
glob: RcStr, glob: RcStr,
......
...@@ -26,7 +26,9 @@ use turbopack_resolve::resolve_options_context::{ResolveOptionsContext, TsConfig ...@@ -26,7 +26,9 @@ use turbopack_resolve::resolve_options_context::{ResolveOptionsContext, TsConfig
use crate::{ use crate::{
app_structure::CollectedRootParams, app_structure::CollectedRootParams,
mode::NextMode, mode::NextMode,
next_config::NextConfig, next_config::{
EDGE_CHUNKING_CONFIG_OPTION_NAMES, NextConfig, warn_on_adjusted_chunking_config,
},
next_import_map::{get_next_edge_and_server_fallback_import_map, get_next_edge_import_map}, next_import_map::{get_next_edge_and_server_fallback_import_map, get_next_edge_import_map},
next_server::context::ServerContextType, next_server::context::ServerContextType,
next_shared::resolve::NextSharedRuntimeResolvePlugin, next_shared::resolve::NextSharedRuntimeResolvePlugin,
...@@ -225,6 +227,7 @@ pub async fn get_edge_chunking_context_with_client_assets( ...@@ -225,6 +227,7 @@ pub async fn get_edge_chunking_context_with_client_assets(
style_groups_algorithm, style_groups_algorithm,
chunking_max_chunk_size, chunking_max_chunk_size,
} = options; } = options;
let issue_file_path = root_path.clone();
let cross_origin_loading = *cross_origin.await?; let cross_origin_loading = *cross_origin.await?;
let output_root = node_root.join("server/edge")?; let output_root = node_root.join("server/edge")?;
let next_mode = mode.await?; let next_mode = mode.await?;
...@@ -272,14 +275,24 @@ pub async fn get_edge_chunking_context_with_client_assets( ...@@ -272,14 +275,24 @@ pub async fn get_edge_chunking_context_with_client_assets(
.worker_forwarded_globals(worker_forwarded_globals()); .worker_forwarded_globals(worker_forwarded_globals());
if !next_mode.is_development() { if !next_mode.is_development() {
let mut ecmascript_chunking_config = ChunkingConfig {
min_chunk_size: 20_000,
max_chunk_size: chunking_max_chunk_size,
..Default::default()
};
// Edge chunks have no explicit merge limit, so use the effective maximum chunk size.
// Chunks bigger than that are never merged anyway.
ecmascript_chunking_config.max_merge_chunk_size =
ecmascript_chunking_config.normalized().max_merge_chunk_size;
warn_on_adjusted_chunking_config(
&ecmascript_chunking_config,
&EDGE_CHUNKING_CONFIG_OPTION_NAMES,
issue_file_path,
);
builder = builder builder = builder
.chunking_config( .chunking_config(
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ecmascript_chunking_config,
min_chunk_size: 20_000,
max_chunk_size: chunking_max_chunk_size,
..Default::default()
},
) )
.chunking_config( .chunking_config(
Vc::<CssChunkType>::default().to_resolved().await?, Vc::<CssChunkType>::default().to_resolved().await?,
...@@ -323,6 +336,7 @@ pub async fn get_edge_chunking_context( ...@@ -323,6 +336,7 @@ pub async fn get_edge_chunking_context(
style_groups_algorithm, style_groups_algorithm,
chunking_max_chunk_size, chunking_max_chunk_size,
} = options; } = options;
let issue_file_path = root_path.clone();
let cross_origin = *cross_origin.await?; let cross_origin = *cross_origin.await?;
let css_url_suffix = css_url_suffix.to_resolved().await?; let css_url_suffix = css_url_suffix.to_resolved().await?;
let output_root = node_root.join("server/edge")?; let output_root = node_root.join("server/edge")?;
...@@ -387,14 +401,24 @@ pub async fn get_edge_chunking_context( ...@@ -387,14 +401,24 @@ pub async fn get_edge_chunking_context(
.worker_forwarded_globals(worker_forwarded_globals()); .worker_forwarded_globals(worker_forwarded_globals());
if !next_mode.is_development() { if !next_mode.is_development() {
let mut ecmascript_chunking_config = ChunkingConfig {
min_chunk_size: 20_000,
max_chunk_size: chunking_max_chunk_size,
..Default::default()
};
// Edge chunks have no explicit merge limit, so use the effective maximum chunk size.
// Chunks bigger than that are never merged anyway.
ecmascript_chunking_config.max_merge_chunk_size =
ecmascript_chunking_config.normalized().max_merge_chunk_size;
warn_on_adjusted_chunking_config(
&ecmascript_chunking_config,
&EDGE_CHUNKING_CONFIG_OPTION_NAMES,
issue_file_path,
);
builder = builder builder = builder
.chunking_config( .chunking_config(
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ecmascript_chunking_config,
min_chunk_size: 20_000,
max_chunk_size: chunking_max_chunk_size,
..Default::default()
},
) )
.chunking_config( .chunking_config(
Vc::<CssChunkType>::default().to_resolved().await?, Vc::<CssChunkType>::default().to_resolved().await?,
......
...@@ -46,7 +46,9 @@ use crate::{ ...@@ -46,7 +46,9 @@ use crate::{
app_structure::CollectedRootParams, app_structure::CollectedRootParams,
mode::NextMode, mode::NextMode,
next_build::get_postcss_package_mapping, next_build::get_postcss_package_mapping,
next_config::NextConfig, next_config::{
NextConfig, SERVER_CHUNKING_CONFIG_OPTION_NAMES, warn_on_adjusted_chunking_config,
},
next_import_map::{get_next_edge_and_server_fallback_import_map, get_next_server_import_map}, next_import_map::{get_next_edge_and_server_fallback_import_map, get_next_server_import_map},
next_server::{ next_server::{
resolve::{ExternalCjsModulesResolvePlugin, ExternalPredicate}, resolve::{ExternalCjsModulesResolvePlugin, ExternalPredicate},
...@@ -1075,6 +1077,7 @@ pub async fn get_server_chunking_context_with_client_assets( ...@@ -1075,6 +1077,7 @@ pub async fn get_server_chunking_context_with_client_assets(
chunking_max_merge_chunk_size, chunking_max_merge_chunk_size,
chunking_max_chunk_size, chunking_max_chunk_size,
} = options; } = options;
let issue_file_path = root_path.clone();
let css_url_suffix = css_url_suffix.to_resolved().await?; let css_url_suffix = css_url_suffix.to_resolved().await?;
let next_mode = mode.await?; let next_mode = mode.await?;
...@@ -1132,18 +1135,24 @@ pub async fn get_server_chunking_context_with_client_assets( ...@@ -1132,18 +1135,24 @@ pub async fn get_server_chunking_context_with_client_assets(
SourceMapSourceType::RelativeUri SourceMapSourceType::RelativeUri
}); });
if next_mode.is_production() { if next_mode.is_production() {
let ecmascript_chunking_config = ChunkingConfig {
// Server chunks are loaded with require(), not fetched over the network.
min_chunk_size: chunking_min_chunk_size.unwrap_or(4_000),
max_chunk_count_per_group: 0,
max_merge_chunk_size: chunking_max_merge_chunk_size.unwrap_or(100_000),
max_chunk_size: chunking_max_chunk_size,
request_cost: Some(10_000),
..Default::default()
};
warn_on_adjusted_chunking_config(
&ecmascript_chunking_config,
&SERVER_CHUNKING_CONFIG_OPTION_NAMES,
issue_file_path,
);
builder = builder builder = builder
.chunking_config( .chunking_config(
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ecmascript_chunking_config,
// Server chunks are loaded with require(), not fetched over the network.
min_chunk_size: chunking_min_chunk_size.unwrap_or(4_000),
max_chunk_count_per_group: 0,
max_merge_chunk_size: chunking_max_merge_chunk_size.unwrap_or(100_000),
max_chunk_size: chunking_max_chunk_size,
request_cost: Some(10_000),
..Default::default()
},
) )
.chunking_config( .chunking_config(
Vc::<CssChunkType>::default().to_resolved().await?, Vc::<CssChunkType>::default().to_resolved().await?,
...@@ -1191,6 +1200,7 @@ pub async fn get_server_chunking_context( ...@@ -1191,6 +1200,7 @@ pub async fn get_server_chunking_context(
chunking_max_merge_chunk_size, chunking_max_merge_chunk_size,
chunking_max_chunk_size, chunking_max_chunk_size,
} = options; } = options;
let issue_file_path = root_path.clone();
let css_url_suffix = css_url_suffix.to_resolved().await?; let css_url_suffix = css_url_suffix.to_resolved().await?;
let next_mode = mode.await?; let next_mode = mode.await?;
// TODO(alexkirsz) This should return a trait that can be implemented by the // TODO(alexkirsz) This should return a trait that can be implemented by the
...@@ -1248,19 +1258,25 @@ pub async fn get_server_chunking_context( ...@@ -1248,19 +1258,25 @@ pub async fn get_server_chunking_context(
if next_mode.is_development() { if next_mode.is_development() {
builder = builder.source_map_source_type(SourceMapSourceType::AbsoluteFileUri); builder = builder.source_map_source_type(SourceMapSourceType::AbsoluteFileUri);
} else { } else {
let ecmascript_chunking_config = ChunkingConfig {
// Server chunks are loaded with require(), not fetched over the network.
min_chunk_size: chunking_min_chunk_size.unwrap_or(4_000),
max_chunk_count_per_group: 0,
max_merge_chunk_size: chunking_max_merge_chunk_size.unwrap_or(100_000),
max_chunk_size: chunking_max_chunk_size,
request_cost: Some(10_000),
..Default::default()
};
warn_on_adjusted_chunking_config(
&ecmascript_chunking_config,
&SERVER_CHUNKING_CONFIG_OPTION_NAMES,
issue_file_path,
);
builder = builder builder = builder
.source_map_source_type(SourceMapSourceType::RelativeUri) .source_map_source_type(SourceMapSourceType::RelativeUri)
.chunking_config( .chunking_config(
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ecmascript_chunking_config,
// Server chunks are loaded with require(), not fetched over the network.
min_chunk_size: chunking_min_chunk_size.unwrap_or(4_000),
max_chunk_count_per_group: 0,
max_merge_chunk_size: chunking_max_merge_chunk_size.unwrap_or(100_000),
max_chunk_size: chunking_max_chunk_size,
request_cost: Some(10_000),
..Default::default()
},
) )
.chunking_config( .chunking_config(
Vc::<CssChunkType>::default().to_resolved().await?, Vc::<CssChunkType>::default().to_resolved().await?,
......
...@@ -126,16 +126,22 @@ the size of the compressed, minified output). ...@@ -126,16 +126,22 @@ the size of the compressed, minified output).
larger than this size with other chunks. This keeps the code in large chunks larger than this size with other chunks. This keeps the code in large chunks
from being duplicated across multiple large output chunks. from being duplicated across multiple large output chunks.
- **`maxChunkSize`** (default `1000000`): a best-effort maximum estimated - **`maxChunkSize`** (default `1000000`): a best-effort maximum estimated
chunk size. After merging, Turbopack splits client JavaScript chunks bigger client JavaScript chunk size. Turbopack never merges chunks into chunks bigger
than this into smaller chunks. It sorts their modules by identifier and prefers than this, and splits chunks that are bigger on their own into smaller chunks.
splitting where paths differ most (e.g. between two packages), which keeps It sorts their modules by identifier and prefers splitting where paths differ
splits deterministic and helps avoid unrelated chunk changes. To stay under most (e.g. between two packages), which keeps splits deterministic and helps
the limit, it may create chunks smaller than `minChunkSize` or more chunks avoid unrelated chunk changes. To stay under the limit, it may create chunks
than `maxChunkCountPerGroup`. A single module bigger than this size still smaller than `minChunkSize` or more chunks than `maxChunkCountPerGroup`. A
produces a bigger chunk. Set it to `0` to disable splitting. single module bigger than this size still produces a bigger chunk. It must be
at least 3 times `minChunkSize`, and `maxMergeChunkSize` must not be bigger.
Otherwise, Turbopack increases `maxChunkSize` or decreases
`maxMergeChunkSize` accordingly, and shows a warning. Set it to `0` to disable
the limit.
- **`maxServerChunkSize`** (default `10000000`): like `maxChunkSize`, but for - **`maxServerChunkSize`** (default `10000000`): like `maxChunkSize`, but for
server (Node.js and edge) JavaScript chunks instead of client chunks. Set it server (Node.js and edge) JavaScript chunks instead of client chunks. Server
to `0` to disable splitting. chunks use a fixed minimum chunk size (4 KB for Node.js, 20 KB for edge) and
a fixed `maxMergeChunkSize` of 100 KB for Node.js, which are adjusted the same
way. Set it to `0` to disable the limit.
When merging chunks, the trade-off being made is an improvement to performance on initial page When merging chunks, the trade-off being made is an improvement to performance on initial page
loads at the cost of navigation performance. This is because each additional network request loads at the cost of navigation performance. This is because each additional network request
...@@ -186,9 +192,6 @@ This avoids re-downloading JavaScript the browser already has when navigating. ...@@ -186,9 +192,6 @@ This avoids re-downloading JavaScript the browser already has when navigating.
this size are folded into a single component instead of being emitted on their own, this size are folded into a single component instead of being emitted on their own,
to avoid producing many tiny chunks. to avoid producing many tiny chunks.
When `maxChunkSize` splits a merged chunk, Turbopack emits the split chunks without
component chunks.
</AppOnly> </AppOnly>
## Heuristics ## Heuristics
......
...@@ -954,15 +954,18 @@ export interface ExperimentalConfig { ...@@ -954,15 +954,18 @@ export interface ExperimentalConfig {
maxMergeChunkSize?: number maxMergeChunkSize?: number
/** /**
* Best-effort maximum estimated size of a client JavaScript chunk, in bytes of uncompressed, * Best-effort maximum estimated size of a client JavaScript chunk, in bytes of uncompressed,
* unminified code. Bigger chunks are split deterministically (by module identifier) into * unminified code. Chunks are never merged into bigger chunks, and chunks that are bigger on
* smaller chunks. Splitting can create chunks smaller than `minChunkSize` or exceed * their own are split deterministically (by module identifier) into smaller chunks. This can
* `maxChunkCountPerGroup`. Split merged chunks do not emit component chunks. Set to `0` to * create chunks smaller than `minChunkSize` or exceed `maxChunkCountPerGroup`. Must be at
* disable splitting. Defaults to `1000000` (1 MB). * least 3 times `minChunkSize`, and not smaller than `maxMergeChunkSize`; otherwise the values
* are adjusted with a warning. Set to `0` to disable the limit. Defaults to `1000000` (1 MB).
*/ */
maxChunkSize?: number maxChunkSize?: number
/** /**
* Like `maxChunkSize`, but for server (Node.js and edge) JavaScript chunks. Set to `0` to * Like `maxChunkSize`, but for server (Node.js and edge) JavaScript chunks. Server chunks have
* disable splitting. Defaults to `10000000` (10 MB). * fixed minimum chunk sizes. Node.js server chunks also have a fixed `maxMergeChunkSize`, while
* edge chunks use the effective maximum chunk size as their merge limit. Set to `0` to disable
* the limit. Defaults to `10000000` (10 MB).
*/ */
maxServerChunkSize?: number maxServerChunkSize?: number
/** /**
......
...@@ -19,7 +19,7 @@ import { join, relative } from 'path' ...@@ -19,7 +19,7 @@ import { join, relative } from 'path'
'next.config.js', 'next.config.js',
`module.exports = ${JSON.stringify({ experimental }, null, 2)}` `module.exports = ${JSON.stringify({ experimental }, null, 2)}`
) )
const { exitCode } = await next.build() const { exitCode, cliOutput } = await next.build()
expect(exitCode).toBe(0) expect(exitCode).toBe(0)
} }
...@@ -32,7 +32,7 @@ import { join, relative } from 'path' ...@@ -32,7 +32,7 @@ import { join, relative } from 'path'
const serverChunks = ( const serverChunks = (
await recursiveReadDir(join(distDir, 'server', 'chunks')) await recursiveReadDir(join(distDir, 'server', 'chunks'))
).filter((name) => name.endsWith('.js')) ).filter((name) => name.endsWith('.js'))
return { clientChunks, serverChunks } return { clientChunks, serverChunks, cliOutput }
} }
// Lists the Node.js server JS chunks of the last build. The server size // Lists the Node.js server JS chunks of the last build. The server size
...@@ -45,18 +45,23 @@ import { join, relative } from 'path' ...@@ -45,18 +45,23 @@ import { join, relative } from 'path'
} }
// Force the chunker to merge as much as possible into as few chunks as // Force the chunker to merge as much as possible into as few chunks as
// possible. // possible. `maxChunkSize` is disabled, since it must be at least 3 times
// `minChunkSize`.
const mergeAll = { const mergeAll = {
minChunkSize: 100_000_000, minChunkSize: 100_000_000,
maxMergeChunkSize: 100_000_000, maxMergeChunkSize: 100_000_000,
maxChunkCountPerGroup: 1, maxChunkCountPerGroup: 1,
maxChunkSize: 0,
} }
// Disable merging entirely, so every chunk group emits its own chunks. // Disable merging entirely, so every chunk group emits its own chunks.
// `maxChunkSize` is disabled, since a maximum would also limit the unlimited
// `maxMergeChunkSize`.
const noMerge = { const noMerge = {
minChunkSize: 0, minChunkSize: 0,
maxChunkCountPerGroup: 0, maxChunkCountPerGroup: 0,
maxMergeChunkSize: 0, maxMergeChunkSize: 0,
maxChunkSize: 0,
} }
// Server-side equivalent of `mergeAll`. // Server-side equivalent of `mergeAll`.
...@@ -72,16 +77,27 @@ import { join, relative } from 'path' ...@@ -72,16 +77,27 @@ import { join, relative } from 'path'
let mergeAllWithMaxChunkSizeOutput: BuildOutput let mergeAllWithMaxChunkSizeOutput: BuildOutput
let mergeAllWithMaxServerChunkSizeOutput: BuildOutput let mergeAllWithMaxServerChunkSizeOutput: BuildOutput
// Merge everything, but split client chunks bigger than a small maximum size again. // Merge as much as possible, but never into client chunks bigger than a small maximum size, and
// split chunks bigger than that.
const mergeAllWithMaxChunkSize = { const mergeAllWithMaxChunkSize = {
...mergeAll, ...mergeAll,
minChunkSize: 5_000,
maxMergeChunkSize: 20_000,
maxChunkSize: 20_000, maxChunkSize: 20_000,
} }
// Merge everything, but split server chunks bigger than a small maximum size again. // Merge everything, but split server chunks bigger than a small maximum size. Node.js server
// chunks have a fixed `maxMergeChunkSize` of 100 KB, so a smaller maximum size would be adjusted.
const mergeAllWithMaxServerChunkSize = { const mergeAllWithMaxServerChunkSize = {
...mergeAll, ...mergeAll,
maxServerChunkSize: 20_000, maxServerChunkSize: 100_000,
}
// Component chunks of merged chunks must still work when merging respects a maximum size.
const mergeAllWithMaxChunkSizeAndComponentChunks = {
...mergeAllWithMaxChunkSize,
generateComponentChunks: true,
minComponentChunkSize: 0,
} }
beforeAll(async () => { beforeAll(async () => {
...@@ -155,8 +171,7 @@ import { join, relative } from 'path' ...@@ -155,8 +171,7 @@ import { join, relative } from 'path'
}) })
it('splits client chunks bigger than maxChunkSize', () => { it('splits client chunks bigger than maxChunkSize', () => {
// With the same merge settings, a small maxChunkSize splits the big merged chunks into // With smaller merge and size limits, Turbopack emits more, smaller client chunks.
// more, smaller chunks.
expect( expect(
mergeAllWithMaxChunkSizeOutput.clientChunks.length mergeAllWithMaxChunkSizeOutput.clientChunks.length
).toBeGreaterThan(mergeAllOutput.clientChunks.length) ).toBeGreaterThan(mergeAllOutput.clientChunks.length)
...@@ -176,9 +191,56 @@ import { join, relative } from 'path' ...@@ -176,9 +191,56 @@ import { join, relative } from 'path'
) )
}) })
it('does not warn about consistent chunk size limits', () => {
for (const output of [
mergeAllOutput,
noMergeOutput,
mergeAllWithMaxChunkSizeOutput,
mergeAllWithMaxServerChunkSizeOutput,
]) {
expect(output.cliOutput).not.toContain('Inconsistent chunk size limits')
}
})
it('warns about and adjusts inconsistent chunk size limits', async () => {
// `maxChunkSize` is smaller than 3 times `minChunkSize` (10 KB), and smaller than
// `maxMergeChunkSize`.
const { cliOutput, clientChunks } = await buildWith({
minChunkSize: 10_000,
maxMergeChunkSize: 100_000,
maxChunkSize: 20_000,
})
expect(cliOutput).toContain(
'Inconsistent chunk size limits for client chunks were adjusted'
)
expect(cliOutput).toContain(
'`experimental.turbopackChunking.maxChunkSize` (20000) was increased to 30000'
)
expect(cliOutput).toContain(
'`experimental.turbopackChunking.maxMergeChunkSize` (100000) was decreased to 30000'
)
expect(clientChunks.length).toBeGreaterThan(0)
})
it('warns when an enabled maxChunkSize limits an unlimited maxMergeChunkSize', async () => {
const { cliOutput } = await buildWith({
minChunkSize: 0,
maxChunkCountPerGroup: 0,
maxMergeChunkSize: 0,
maxChunkSize: 20_000,
})
expect(cliOutput).toContain(
'`experimental.turbopackChunking.maxMergeChunkSize` (unlimited) was decreased to 20000'
)
})
it.each([ it.each([
['custom chunking', mergeAll], ['custom chunking', mergeAll],
['maxChunkSize', mergeAllWithMaxChunkSize], ['maxChunkSize', mergeAllWithMaxChunkSize],
[
'maxChunkSize and component chunks',
mergeAllWithMaxChunkSizeAndComponentChunks,
],
['maxServerChunkSize', mergeAllWithMaxServerChunkSize], ['maxServerChunkSize', mergeAllWithMaxServerChunkSize],
])('renders and navigates correctly with %s', async (_, chunking) => { ])('renders and navigates correctly with %s', async (_, chunking) => {
await build({ ...chunking, ...serverMergeAll }) await build({ ...chunking, ...serverMergeAll })
......
...@@ -328,13 +328,17 @@ pub async fn make_chunks( ...@@ -328,13 +328,17 @@ pub async fn make_chunks(
let ty_name = ty.to_string().await?; let ty_name = ty.to_string().await?;
let span = tracing::trace_span!("make chunks for type", name = display(&ty_name)); let span = tracing::trace_span!("make chunks for type", name = display(&ty_name));
async { async {
let chunking_config = chunking_configs.get(&ty);
let mut split_context = SplitContext { let mut split_context = SplitContext {
ty, ty,
chunking_context, chunking_context,
chunks: &mut chunks, chunks: &mut chunks,
min_component_chunk_size: chunking_config
.filter(|config| config.generate_component_chunks)
.map(|config| config.min_component_chunk_size),
}; };
if let Some(chunking_config) = chunking_configs.get(&ty) { if let Some(chunking_config) = chunking_config {
// Production chunking // Production chunking
if *ty.is_style().await? { if *ty.is_style().await? {
make_style_production_chunks( make_style_production_chunks(
...@@ -401,6 +405,9 @@ struct SplitContext<'a> { ...@@ -401,6 +405,9 @@ struct SplitContext<'a> {
// resolution of `chunks` is deferred so it can be done with `try_join` at the end, letting as // resolution of `chunks` is deferred so it can be done with `try_join` at the end, letting as
// much work happen in parallel as possible. // much work happen in parallel as possible.
chunks: &'a mut Vec<Vc<Box<dyn Chunk>>>, chunks: &'a mut Vec<Vc<Box<dyn Chunk>>>,
/// When set, merged chunks also emit their constituent component chunks (see
/// [`make_chunk`]), with this minimum size for a component chunk to be emitted on its own.
min_component_chunk_size: Option<usize>,
} }
fn build_chunk( fn build_chunk(
...@@ -433,15 +440,74 @@ type ComponentChunkItems<'l> = ( ...@@ -433,15 +440,74 @@ type ComponentChunkItems<'l> = (
Vec<ResolvedVc<ChunkItemBatchGroup>>, Vec<ResolvedVc<ChunkItemBatchGroup>>,
); );
/// One original (pre-merge) chunk that is part of a (merged) chunk. A merged chunk can also expose
/// them as individual component chunks for cache-aware loading at runtime.
struct ChunkComponent<'l> {
size: usize,
chunk_items: Vec<&'l ChunkItemOrBatchWithInfo>,
batch_groups: SmallVec<[ResolvedVc<ChunkItemBatchGroup>; 1]>,
}
/// Groups the `components` of a merged chunk into component chunks. Components smaller than
/// `min_component_chunk_size` are folded into a single remainder component chunk. Returns `None`
/// when there would be less than two component chunks, since that has no benefit.
fn split_into_component_chunks<'l>(
components: Vec<ChunkComponent<'l>>,
min_component_chunk_size: usize,
) -> Option<Vec<ComponentChunkItems<'l>>> {
// A single original part can't benefit from splitting.
if components.len() <= 1 {
return None;
}
let mut component_chunks: Vec<ComponentChunkItems<'l>> = Vec::new();
let mut remainder_items: Vec<&'l ChunkItemOrBatchWithInfo> = Vec::new();
let mut remainder_batch_groups = FxIndexSet::default();
for part in components {
if part.size >= min_component_chunk_size {
component_chunks.push((part.chunk_items, part.batch_groups.into_vec()));
} else {
// we create a "remainder" chunk with smaller component chunks so that
// an entire chunk can be loaded by loading all of its component chunks
remainder_items.extend(part.chunk_items);
remainder_batch_groups.extend(part.batch_groups);
}
}
// TODO (@sampoder): handle the case where there are many the component chunks
// that are only slightly smaller than the min_component_chunk_size. this may
// mean that there is no benefit to component chunking.
if !remainder_items.is_empty() {
component_chunks.push((
remainder_items,
remainder_batch_groups.into_iter().collect(),
));
}
// A split is only worthwhile if it yields more than one component chunk.
if component_chunks.len() <= 1 {
None
} else {
Some(component_chunks)
}
}
/// Creates a chunk with the given `chunk_items. `key` should be unique. /// Creates a chunk with the given `chunk_items. `key` should be unique.
///
/// `components` are the original chunks a merged chunk was created from. When component chunks are
/// enabled in the `split_context`, they are also emitted as component chunks of the chunk.
#[tracing::instrument(level = Level::TRACE, skip_all, fields(key = display(key)))] #[tracing::instrument(level = Level::TRACE, skip_all, fields(key = display(key)))]
async fn make_chunk( async fn make_chunk(
chunk_items: Vec<&'_ ChunkItemOrBatchWithInfo>, chunk_items: Vec<&'_ ChunkItemOrBatchWithInfo>,
batch_groups: Vec<ResolvedVc<ChunkItemBatchGroup>>, batch_groups: Vec<ResolvedVc<ChunkItemBatchGroup>>,
components: Vec<ComponentChunkItems<'_>>, components: Vec<ChunkComponent<'_>>,
key: &mut String, key: &mut String,
split_context: &mut SplitContext<'_>, split_context: &mut SplitContext<'_>,
) -> Result<()> { ) -> Result<()> {
let components = split_context
.min_component_chunk_size
.and_then(|min_component_chunk_size| {
split_into_component_chunks(components, min_component_chunk_size)
})
.unwrap_or_default();
let mut component_chunks = Vec::with_capacity(components.len()); let mut component_chunks = Vec::with_capacity(components.len());
for (component_items, component_batch_groups) in components { for (component_items, component_batch_groups) in components {
component_chunks.push( component_chunks.push(
......
...@@ -248,14 +248,22 @@ pub struct ChunkingConfig { ...@@ -248,14 +248,22 @@ pub struct ChunkingConfig {
/// Never merges chunks bigger than this size with other chunks. /// Never merges chunks bigger than this size with other chunks.
/// This makes sure that code in big chunks is not duplicated in multiple chunks. /// This makes sure that code in big chunks is not duplicated in multiple chunks.
/// `0` means no limit. When `max_chunk_size` is set, this is limited to `max_chunk_size` (see
/// [`ChunkingConfig::normalized`]).
pub max_merge_chunk_size: usize, pub max_merge_chunk_size: usize,
/// Best-effort upper bound on the estimated size of a chunk. After merging, chunks bigger than /// Best-effort upper bound on the estimated size of a chunk. `0` disables the limit. Not used
/// this are split deterministically (by sorting their chunk items by module identifier) into /// for style chunk types.
/// chunks that are not bigger than this size. Splitting may create chunks smaller than ///
/// `min_chunk_size` and more chunks than `max_chunk_count_per_group`. Split merged chunks do /// Merging never creates chunks bigger than this size, and chunks bigger than this size are
/// not emit component chunks. Only a single chunk item bigger than this size can still /// never merged. Chunks that are too big on their own are split deterministically (by sorting
/// produce a bigger chunk. `0` disables splitting. Not used for style chunk types. /// their chunk items by module identifier) into chunks that are not bigger than this size,
/// preferring chunks of at least `min_chunk_size`. To stay below the limit, chunks may be
/// smaller than `min_chunk_size` and there may be more chunks than
/// `max_chunk_count_per_group`. Only a single chunk item bigger than this size can still
/// produce a bigger chunk.
///
/// This is raised to at least `3 * min_chunk_size` (see [`ChunkingConfig::normalized`]).
pub max_chunk_size: usize, pub max_chunk_size: usize,
/// When enabled, a merged chunk also emits its constituent component chunks (referenced, /// When enabled, a merged chunk also emits its constituent component chunks (referenced,
...@@ -292,6 +300,32 @@ pub struct ChunkingConfig { ...@@ -292,6 +300,32 @@ pub struct ChunkingConfig {
#[turbo_tasks::value(transparent)] #[turbo_tasks::value(transparent)]
pub struct ChunkingConfigs(FxHashMap<ResolvedVc<Box<dyn ChunkType>>, ChunkingConfig>); pub struct ChunkingConfigs(FxHashMap<ResolvedVc<Box<dyn ChunkType>>, ChunkingConfig>);
impl ChunkingConfig {
/// Returns this config with consistent size limits. When `max_chunk_size` is set (not `0`):
///
/// 1. `max_chunk_size` is raised to `3 * min_chunk_size` if it is smaller, so that chunks can
/// be split into chunks of at least `min_chunk_size`.
/// 2. `max_merge_chunk_size` is lowered to `max_chunk_size` if it is bigger or `0` (no limit),
/// since chunks bigger than `max_chunk_size` are never merged anyway.
///
/// The production chunking algorithm always uses the normalized config. Compare with the
/// original config to find out whether anything was adjusted.
pub fn normalized(&self) -> Self {
let mut config = self.clone();
if config.max_chunk_size != 0 {
config.max_chunk_size = config
.max_chunk_size
.max(config.min_chunk_size.saturating_mul(3));
if config.max_merge_chunk_size == 0
|| config.max_merge_chunk_size > config.max_chunk_size
{
config.max_merge_chunk_size = config.max_chunk_size;
}
}
config
}
}
/// turbopack-browser needs to know the original /// turbopack-browser needs to know the original
/// source of the hmr chunk list to properly map to a /// source of the hmr chunk list to properly map to a
/// EcmascriptDevChunkListSource and provide the correct /// EcmascriptDevChunkListSource and provide the correct
...@@ -897,3 +931,62 @@ fn chunk_group_assets( ...@@ -897,3 +931,62 @@ fn chunk_group_assets(
) )
.output_assets_with_referenced() .output_assets_with_referenced()
} }
#[cfg(test)]
mod tests {
use super::ChunkingConfig;
fn config(min: usize, merge: usize, max: usize) -> ChunkingConfig {
ChunkingConfig {
min_chunk_size: min,
max_merge_chunk_size: merge,
max_chunk_size: max,
..Default::default()
}
}
fn limits(config: &ChunkingConfig) -> (usize, usize, usize) {
(
config.min_chunk_size,
config.max_merge_chunk_size,
config.max_chunk_size,
)
}
#[test]
fn normalized_keeps_valid_configs() {
let valid = config(50_000, 200_000, 1_000_000);
assert_eq!(valid.normalized(), valid);
// Exactly at the limits.
let valid = config(100, 300, 300);
assert_eq!(valid.normalized(), valid);
}
#[test]
fn normalized_ignores_disabled_max_chunk_size() {
let disabled = config(50_000, 0, 0);
assert_eq!(disabled.normalized(), disabled);
let disabled = config(50_000, 200_000, 0);
assert_eq!(disabled.normalized(), disabled);
}
#[test]
fn normalized_raises_max_chunk_size() {
assert_eq!(limits(&config(100, 200, 200).normalized()), (100, 200, 300));
}
#[test]
fn normalized_lowers_max_merge_chunk_size() {
assert_eq!(limits(&config(10, 500, 200).normalized()), (10, 200, 200));
// `0` means no limit, which is bigger than any `max_chunk_size`.
assert_eq!(limits(&config(10, 0, 200).normalized()), (10, 200, 200));
}
#[test]
fn normalized_lowers_max_merge_chunk_size_to_raised_max_chunk_size() {
assert_eq!(
limits(&config(100, 1_000, 200).normalized()),
(100, 300, 300)
);
}
}
...@@ -300,6 +300,9 @@ struct TestOptions { ...@@ -300,6 +300,9 @@ struct TestOptions {
/// `max_chunk_size` of the ecmascript chunking config when `production_chunking` is enabled. /// `max_chunk_size` of the ecmascript chunking config when `production_chunking` is enabled.
#[serde(default)] #[serde(default)]
max_chunk_size: usize, max_chunk_size: usize,
/// Overrides `min_chunk_size` (default `2000`) when `production_chunking` is enabled.
#[serde(default)]
min_chunk_size: Option<usize>,
#[serde(default)] #[serde(default)]
global_module_ids: bool, global_module_ids: bool,
/// Assign numeric module ids, as production builds do, instead of the /// Assign numeric module ids, as production builds do, instead of the
...@@ -338,6 +341,7 @@ impl Default for TestOptions { ...@@ -338,6 +341,7 @@ impl Default for TestOptions {
minify: false, minify: false,
production_chunking: false, production_chunking: false,
max_chunk_size: 0, max_chunk_size: 0,
min_chunk_size: None,
global_module_ids: false, global_module_ids: false,
numeric_module_ids: false, numeric_module_ids: false,
side_effect_free_packages: Vec::new(), side_effect_free_packages: Vec::new(),
...@@ -665,7 +669,7 @@ async fn run_test_operation(prepared_test: ResolvedVc<PreparedTest>) -> Result<V ...@@ -665,7 +669,7 @@ async fn run_test_operation(prepared_test: ResolvedVc<PreparedTest>) -> Result<V
.chunking_config( .chunking_config(
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ChunkingConfig {
min_chunk_size: 2_000, min_chunk_size: options.min_chunk_size.unwrap_or(2_000),
max_chunk_count_per_group: 40, max_chunk_count_per_group: 40,
max_merge_chunk_size: 200_000, max_merge_chunk_size: 200_000,
max_chunk_size: options.max_chunk_size, max_chunk_size: options.max_chunk_size,
......
{ {
"productionChunking": true, "productionChunking": true,
"minChunkSize": 800,
"maxChunkSize": 2500, "maxChunkSize": 2500,
"scopeHoisting": false "scopeHoisting": false
} }
...@@ -114,6 +114,10 @@ struct SnapshotOptions { ...@@ -114,6 +114,10 @@ struct SnapshotOptions {
/// Overrides `min_chunk_size` (default `2000`) when `production_chunking` is enabled. /// Overrides `min_chunk_size` (default `2000`) when `production_chunking` is enabled.
#[serde(default)] #[serde(default)]
min_chunk_size: Option<usize>, min_chunk_size: Option<usize>,
/// `request_cost` of the ecmascript chunking config when `production_chunking` is enabled.
/// A tiny request cost makes merging chunks of different chunk groups unbeneficial.
#[serde(default)]
request_cost: Option<u64>,
/// Overrides `max_chunk_count_per_group` (default `40`) when `production_chunking` is enabled. /// Overrides `max_chunk_count_per_group` (default `40`) when `production_chunking` is enabled.
#[serde(default)] #[serde(default)]
max_chunk_count_per_group: Option<usize>, max_chunk_count_per_group: Option<usize>,
...@@ -172,6 +176,7 @@ impl Default for SnapshotOptions { ...@@ -172,6 +176,7 @@ impl Default for SnapshotOptions {
production_chunking: false, production_chunking: false,
max_chunk_size: 0, max_chunk_size: 0,
min_chunk_size: None, min_chunk_size: None,
request_cost: None,
max_chunk_count_per_group: None, max_chunk_count_per_group: None,
generate_component_chunks: false, generate_component_chunks: false,
min_component_chunk_size: 0, min_component_chunk_size: 0,
...@@ -594,6 +599,7 @@ async fn run_test_operation(resource: RcStr) -> Result<Vc<FileSystemPath>> { ...@@ -594,6 +599,7 @@ async fn run_test_operation(resource: RcStr) -> Result<Vc<FileSystemPath>> {
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ChunkingConfig {
min_chunk_size: options.min_chunk_size.unwrap_or(2_000), min_chunk_size: options.min_chunk_size.unwrap_or(2_000),
request_cost: options.request_cost,
max_chunk_count_per_group: options max_chunk_count_per_group: options
.max_chunk_count_per_group .max_chunk_count_per_group
.unwrap_or(40), .unwrap_or(40),
...@@ -646,6 +652,7 @@ async fn run_test_operation(resource: RcStr) -> Result<Vc<FileSystemPath>> { ...@@ -646,6 +652,7 @@ async fn run_test_operation(resource: RcStr) -> Result<Vc<FileSystemPath>> {
Vc::<EcmascriptChunkType>::default().to_resolved().await?, Vc::<EcmascriptChunkType>::default().to_resolved().await?,
ChunkingConfig { ChunkingConfig {
min_chunk_size: options.min_chunk_size.unwrap_or(2_000), min_chunk_size: options.min_chunk_size.unwrap_or(2_000),
request_cost: options.request_cost,
max_chunk_count_per_group: options max_chunk_count_per_group: options
.max_chunk_count_per_group .max_chunk_count_per_group
.unwrap_or(40), .unwrap_or(40),
......
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"minifyType": "NoMinify", "minifyType": "NoMinify",
"runtime": "NodeJs", "runtime": "NodeJs",
"productionChunking": true, "productionChunking": true,
"minChunkSize": 800,
"maxChunkSize": 2500 "maxChunkSize": 2500
} }
// Each shared module is used by a different pair of pages, so each one ends up in its own small // Each shared module is used by a different pair of pages, so each one ends up in its own small
// chunk that gets merged with the others. The merged chunk is bigger than `maxChunkSize` and is // chunk that gets merged with the other one of that page. The merged chunk is not bigger than
// split again, without component chunks. // `maxChunkSize`, and emits its components as component chunks.
import('./pages/p1.js').then(({ p1 }) => console.log(p1)) import('./pages/p1.js').then(({ p1 }) => console.log(p1))
import('./pages/p2.js').then(({ p2 }) => console.log(p2)) import('./pages/p2.js').then(({ p2 }) => console.log(p2))
import('./pages/p3.js').then(({ p3 }) => console.log(p3)) import('./pages/p3.js').then(({ p3 }) => console.log(p3))
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
"productionChunking": true, "productionChunking": true,
"generateComponentChunks": true, "generateComponentChunks": true,
"minComponentChunkSize": 0, "minComponentChunkSize": 0,
"maxChunkSize": 1000 "minChunkSize": 600,
"maxChunkSize": 1800
} }
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([
"output/1ece_tests_snapshot_basic_max_chunk_size_component_chunks_input_index_0bkzse36kpcm6.js", "output/1ece_tests_snapshot_basic_max_chunk_size_component_chunks_input_index_1wd7fw682v4sl.js",
{"otherChunks":["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_index_0s5d05z3do_gt.js","output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_pages_0tayzpyex8jzl._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/index.js [test] (ecmascript)"]} {"otherChunks":["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_pages_1h0h8os30v5o1._.js","output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_index_0s5d05z3do_gt.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/index.js [test] (ecmascript)"]}
]); ]);
// Dummy runtime // Dummy runtime
\ No newline at end of file
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => {
// Each shared module is used by a different pair of pages, so each one ends up in its own small // Each shared module is used by a different pair of pages, so each one ends up in its own small
// chunk that gets merged with the others. The merged chunk is bigger than `maxChunkSize` and is // chunk that gets merged with the other one of that page. The merged chunk is not bigger than
// split again, without component chunks. // `maxChunkSize`, and emits its components as component chunks.
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p1.js [test] (ecmascript, async loader)").then(({ p1 })=>console.log(p1)); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p1.js [test] (ecmascript, async loader)").then(({ p1 })=>console.log(p1));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p2.js [test] (ecmascript, async loader)").then(({ p2 })=>console.log(p2)); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p2.js [test] (ecmascript, async loader)").then(({ p2 })=>console.log(p2));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p3.js [test] (ecmascript, async loader)").then(({ p3 })=>console.log(p3)); __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p3.js [test] (ecmascript, async loader)").then(({ p3 })=>console.log(p3));
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/index.js"],"sourcesContent":["// Each shared module is used by a different pair of pages, so each one ends up in its own small\n// chunk that gets merged with the others. The merged chunk is bigger than `maxChunkSize` and is\n// split again, without component chunks.\nimport('./pages/p1.js').then(({ p1 }) => console.log(p1))\nimport('./pages/p2.js').then(({ p2 }) => console.log(p2))\nimport('./pages/p3.js').then(({ p3 }) => console.log(p3))\n"],"names":["then","p1","console","log","p2","p3"],"mappings":"AAAA,gGAAgG;AAChG,gGAAgG;AAChG,yCAAyC;AACzC,+KAAwBA,IAAI,CAAC,CAAC,EAAEC,EAAE,EAAE,GAAKC,QAAQC,GAAG,CAACF;AACrD,+KAAwBD,IAAI,CAAC,CAAC,EAAEI,EAAE,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACrD,+KAAwBJ,IAAI,CAAC,CAAC,EAAEK,EAAE,EAAE,GAAKH,QAAQC,GAAG,CAACE"}}] {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/index.js"],"sourcesContent":["// Each shared module is used by a different pair of pages, so each one ends up in its own small\n// chunk that gets merged with the other one of that page. The merged chunk is not bigger than\n// `maxChunkSize`, and emits its components as component chunks.\nimport('./pages/p1.js').then(({ p1 }) => console.log(p1))\nimport('./pages/p2.js').then(({ p2 }) => console.log(p2))\nimport('./pages/p3.js').then(({ p3 }) => console.log(p3))\n"],"names":["then","p1","console","log","p2","p3"],"mappings":"AAAA,gGAAgG;AAChG,8FAA8F;AAC9F,gEAAgE;AAChE,+KAAwBA,IAAI,CAAC,CAAC,EAAEC,EAAE,EAAE,GAAKC,QAAQC,GAAG,CAACF;AACrD,+KAAwBD,IAAI,CAAC,CAAC,EAAEI,EAAE,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACrD,+KAAwBJ,IAAI,CAAC,CAAC,EAAEK,EAAE,EAAE,GAAKH,QAAQC,GAAG,CAACE"}}]
} }
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_pages_0tayzpyex8jzl._.js", (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_pages_1h0h8os30v5o1._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p1.js [test] (ecmascript, async loader)", ((__turbopack_context__) => { "[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p1.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => { __turbopack_context__.v((parentImport) => {
return Promise.all([ return Promise.all([
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_pages_p1_060cu0zm-5axk.js", "output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_pages_p1_060cu0zm-5axk.js",
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_x_0g1-ao1noy0o6.js", {
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_y_1kkyfx9emckum.js" "path": "output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_0g3h0wl7t247t._.js",
"moduleChunks": [
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_x_0g1-ao1noy0o6.js",
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_y_1kkyfx9emckum.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => { ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p1.js [test] (ecmascript)"); return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p1.js [test] (ecmascript)");
}); });
...@@ -16,8 +21,13 @@ __turbopack_context__.v((parentImport) => { ...@@ -16,8 +21,13 @@ __turbopack_context__.v((parentImport) => {
__turbopack_context__.v((parentImport) => { __turbopack_context__.v((parentImport) => {
return Promise.all([ return Promise.all([
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_pages_p2_0i-hrlg8q0opu.js", "output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_pages_p2_0i-hrlg8q0opu.js",
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_x_0g1-ao1noy0o6.js", {
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_z_11lj79hlokc-g.js" "path": "output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_1yn2c4hd-xgwn._.js",
"moduleChunks": [
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_x_0g1-ao1noy0o6.js",
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_z_11lj79hlokc-g.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => { ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p2.js [test] (ecmascript)"); return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p2.js [test] (ecmascript)");
}); });
...@@ -28,8 +38,13 @@ __turbopack_context__.v((parentImport) => { ...@@ -28,8 +38,13 @@ __turbopack_context__.v((parentImport) => {
__turbopack_context__.v((parentImport) => { __turbopack_context__.v((parentImport) => {
return Promise.all([ return Promise.all([
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_pages_p3_19pgvrw3i3jnq.js", "output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_pages_p3_19pgvrw3i3jnq.js",
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_y_1kkyfx9emckum.js", {
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_z_11lj79hlokc-g.js" "path": "output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_1y_pfj1ekiq7p._.js",
"moduleChunks": [
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_y_1kkyfx9emckum.js",
"output/0p5q_snapshot_basic_max_chunk_size_component_chunks_input_shared_z_11lj79hlokc-g.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => { ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p3.js [test] (ecmascript)"); return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/pages/p3.js [test] (ecmascript)");
}); });
......
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_0g3h0wl7t247t._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/x.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// Padding so that the shared modules together are bigger than `maxChunkSize`.
__turbopack_context__.s([
"x",
()=>x
]);
const x = 'x: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' + 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' + 'mollit anim id est laborum.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/y.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// Padding so that the shared modules together are bigger than `maxChunkSize`.
__turbopack_context__.s([
"y",
()=>y
]);
const y = 'y: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' + 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' + 'mollit anim id est laborum.';
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_0g3h0wl7t247t._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/x.js"],"sourcesContent":["// Padding so that the shared modules together are bigger than `maxChunkSize`.\nexport const x =\n 'x: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' +\n 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' +\n 'mollit anim id est laborum.'\n"],"names":["x"],"mappings":"AAAA,8EAA8E;;;;;AACvE,MAAMA,IACX,uFACA,wFACA,2FACA,4FACA,wFACA"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/y.js"],"sourcesContent":["// Padding so that the shared modules together are bigger than `maxChunkSize`.\nexport const y =\n 'y: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' +\n 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' +\n 'mollit anim id est laborum.'\n"],"names":["y"],"mappings":"AAAA,8EAA8E;;;;;AACvE,MAAMA,IACX,uFACA,wFACA,2FACA,4FACA,wFACA"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_1y_pfj1ekiq7p._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/y.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// Padding so that the shared modules together are bigger than `maxChunkSize`.
__turbopack_context__.s([
"y",
()=>y
]);
const y = 'y: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' + 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' + 'mollit anim id est laborum.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/z.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// Padding so that the shared modules together are bigger than `maxChunkSize`.
__turbopack_context__.s([
"z",
()=>z
]);
const z = 'z: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' + 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' + 'mollit anim id est laborum.';
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_1y_pfj1ekiq7p._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/y.js"],"sourcesContent":["// Padding so that the shared modules together are bigger than `maxChunkSize`.\nexport const y =\n 'y: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' +\n 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' +\n 'mollit anim id est laborum.'\n"],"names":["y"],"mappings":"AAAA,8EAA8E;;;;;AACvE,MAAMA,IACX,uFACA,wFACA,2FACA,4FACA,wFACA"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/z.js"],"sourcesContent":["// Padding so that the shared modules together are bigger than `maxChunkSize`.\nexport const z =\n 'z: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' +\n 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' +\n 'mollit anim id est laborum.'\n"],"names":["z"],"mappings":"AAAA,8EAA8E;;;;;AACvE,MAAMA,IACX,uFACA,wFACA,2FACA,4FACA,wFACA"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_1yn2c4hd-xgwn._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/x.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// Padding so that the shared modules together are bigger than `maxChunkSize`.
__turbopack_context__.s([
"x",
()=>x
]);
const x = 'x: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' + 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' + 'mollit anim id est laborum.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/z.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// Padding so that the shared modules together are bigger than `maxChunkSize`.
__turbopack_context__.s([
"z",
()=>z
]);
const z = 'z: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' + 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' + 'mollit anim id est laborum.';
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_component_chunks_input_shared_1yn2c4hd-xgwn._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/x.js"],"sourcesContent":["// Padding so that the shared modules together are bigger than `maxChunkSize`.\nexport const x =\n 'x: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' +\n 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' +\n 'mollit anim id est laborum.'\n"],"names":["x"],"mappings":"AAAA,8EAA8E;;;;;AACvE,MAAMA,IACX,uFACA,wFACA,2FACA,4FACA,wFACA"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_component_chunks/input/shared/z.js"],"sourcesContent":["// Padding so that the shared modules together are bigger than `maxChunkSize`.\nexport const z =\n 'z: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' +\n 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt ' +\n 'mollit anim id est laborum.'\n"],"names":["z"],"mappings":"AAAA,8EAA8E;;;;;AACvE,MAAMA,IACX,uFACA,wFACA,2FACA,4FACA,wFACA"}}]
}
\ No newline at end of file
export const a1 =
'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +
'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +
'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
export const a2 =
'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +
'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +
'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
export const a3 =
'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +
'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +
'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
export const b1 =
'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +
'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +
'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
export const b2 =
'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +
'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +
'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
export const b3 =
'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +
'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +
'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +
'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
// `page.js` uses all shared modules, and each shared module is also used by one other page. So each
// shared module is its own small chunk in the chunk group of `page.js`, which is not merged with the
// others (merging is not beneficial with the tiny request cost). They all end up in the remained
// chunk, but together they are bigger than `maxChunkSize`, so they form multiple remained chunks
// instead, split between the `a` and `b` directories. Each remained chunk is a merged chunk and
// emits its components as component chunks.
import('./page.js').then(({ page }) => console.log(page))
import('./other/a1.js').then(({ other }) => console.log(other))
import('./other/a2.js').then(({ other }) => console.log(other))
import('./other/a3.js').then(({ other }) => console.log(other))
import('./other/b1.js').then(({ other }) => console.log(other))
import('./other/b2.js').then(({ other }) => console.log(other))
import('./other/b3.js').then(({ other }) => console.log(other))
import { a1 } from './a/a1.js'
import { a2 } from './a/a2.js'
import { a3 } from './a/a3.js'
import { b1 } from './b/b1.js'
import { b2 } from './b/b2.js'
import { b3 } from './b/b3.js'
export const page = [a1, a2, a3, b1, b2, b3]
{
"minifyType": "NoMinify",
"productionChunking": true,
"generateComponentChunks": true,
"minComponentChunkSize": 0,
"requestCost": 1,
"minChunkSize": 600,
"maxChunkSize": 1800
}
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([
"output/1ece_tests_snapshot_basic_max_chunk_size_remainder_input_index_1cm__pg6sinpy.js",
{"otherChunks":["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_0p5un9tqr6bdk._.js","output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_index_09chyqc0c2tyl.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/index.js [test] (ecmascript)"]}
]);
// Dummy runtime
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_09bb5-3441wrw._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a2",
()=>a2
]);
const a2 = 'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a2"];
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_09bb5-3441wrw._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js"],"sourcesContent":["export const a2 =\n 'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a2"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js"],"sourcesContent":["import { a2 } from '../a/a2.js'\n\nexport const other = a2\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_0jl0q31fvtmk5._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a1",
()=>a1
]);
const a1 = 'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a1"];
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_0jl0q31fvtmk5._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js"],"sourcesContent":["export const a1 =\n 'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a1"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js"],"sourcesContent":["import { a1 } from '../a/a1.js'\n\nexport const other = a1\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_0p5un9tqr6bdk._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_0jl0q31fvtmk5._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a1_1g5f-knw7kgy1.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a1_0les6wf8lnk12.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js [test] (ecmascript)");
});
});
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_09bb5-3441wrw._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a2_1oqvu1_z68nde.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a2_08yvjkj2t6wfl.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js [test] (ecmascript)");
});
});
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1wywpo0-r260m._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a3_12dz688w30tp8.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a3_0-0t96g_64lfv.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js [test] (ecmascript)");
});
});
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1fp0dcti1pdfk._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b1_1qz_3i--zs4w8.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b1_1h-07lcqoz1d7.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js [test] (ecmascript)");
});
});
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1kzpyo05wr6ja._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b2_1pi9ma63yuz-w.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b2_13fdqcd9gzg78.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js [test] (ecmascript)");
});
});
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_18v0oqdeu7xj1._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b3_0-_uwy580c_zk.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b3_0lf80qd958q5p.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js [test] (ecmascript)");
});
});
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/page.js [test] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_1y49iszuenp5m._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a1_1g5f-knw7kgy1.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a2_1oqvu1_z68nde.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a3_12dz688w30tp8.js"
]
},
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_page_0rqm75iukhb5l.js",
{
"path": "output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_0g458p-23ifnz._.js",
"moduleChunks": [
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b1_1qz_3i--zs4w8.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b2_1pi9ma63yuz-w.js",
"output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b3_0-_uwy580c_zk.js"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/page.js [test] (ecmascript)");
});
});
}),
]);
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_18v0oqdeu7xj1._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b3",
()=>b3
]);
const b3 = 'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b3$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b3$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b3"];
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_18v0oqdeu7xj1._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js"],"sourcesContent":["export const b3 =\n 'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b3"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js"],"sourcesContent":["import { b3 } from '../b/b3.js'\n\nexport const other = b3\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1fp0dcti1pdfk._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b1",
()=>b1
]);
const b1 = 'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b1"];
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1fp0dcti1pdfk._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js"],"sourcesContent":["export const b1 =\n 'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b1"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js"],"sourcesContent":["import { b1 } from '../b/b1.js'\n\nexport const other = b1\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1kzpyo05wr6ja._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b2",
()=>b2
]);
const b2 = 'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b2"];
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1kzpyo05wr6ja._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js"],"sourcesContent":["export const b2 =\n 'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b2"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js"],"sourcesContent":["import { b2 } from '../b/b2.js'\n\nexport const other = b2\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1wywpo0-r260m._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a3",
()=>a3
]);
const a3 = 'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a3$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a3$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a3"];
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_1wywpo0-r260m._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js"],"sourcesContent":["export const a3 =\n 'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a3"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js"],"sourcesContent":["import { a3 } from '../a/a3.js'\n\nexport const other = a3\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_1y49iszuenp5m._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a1",
()=>a1
]);
const a1 = 'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a2",
()=>a2
]);
const a2 = 'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a3",
()=>a3
]);
const a3 = 'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_1y49iszuenp5m._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js"],"sourcesContent":["export const a1 =\n 'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a1"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js"],"sourcesContent":["export const a2 =\n 'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a2"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js"],"sourcesContent":["export const a3 =\n 'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a3"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a1_1g5f-knw7kgy1.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a1",
()=>a1
]);
const a1 = 'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a1_1g5f-knw7kgy1.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js"],"sourcesContent":["export const a1 =\n 'a1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a1"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a2_1oqvu1_z68nde.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a2",
()=>a2
]);
const a2 = 'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a2_1oqvu1_z68nde.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js"],"sourcesContent":["export const a2 =\n 'a2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a2"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a3_12dz688w30tp8.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"a3",
()=>a3
]);
const a3 = 'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_a_a3_12dz688w30tp8.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js"],"sourcesContent":["export const a3 =\n 'a3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["a3"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_0g458p-23ifnz._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b1",
()=>b1
]);
const b1 = 'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b2",
()=>b2
]);
const b2 = 'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b3",
()=>b3
]);
const b3 = 'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_0g458p-23ifnz._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js"],"sourcesContent":["export const b1 =\n 'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b1"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js"],"sourcesContent":["export const b2 =\n 'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b2"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js"],"sourcesContent":["export const b3 =\n 'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b3"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b1_1qz_3i--zs4w8.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b1",
()=>b1
]);
const b1 = 'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b1_1qz_3i--zs4w8.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js"],"sourcesContent":["export const b1 =\n 'b1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b1"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b2_1pi9ma63yuz-w.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b2",
()=>b2
]);
const b2 = 'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b2_1pi9ma63yuz-w.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js"],"sourcesContent":["export const b2 =\n 'b2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b2"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b3_0-_uwy580c_zk.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"b3",
()=>b3
]);
const b3 = 'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' + 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' + 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' + 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_b_b3_0-_uwy580c_zk.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js"],"sourcesContent":["export const b3 =\n 'b3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ' +\n 'incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ' +\n 'exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure ' +\n 'dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'\n"],"names":["b3"],"mappings":";;;;AAAO,MAAMA,KACX,wFACA,wFACA,2FACA"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_index_09chyqc0c2tyl.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/index.js [test] (ecmascript)", ((__turbopack_context__, module, exports) => {
// `page.js` uses all shared modules, and each shared module is also used by one other page. So each
// shared module is its own small chunk in the chunk group of `page.js`, which is not merged with the
// others (merging is not beneficial with the tiny request cost). They all end up in the remained
// chunk, but together they are bigger than `maxChunkSize`, so they form multiple remained chunks
// instead, split between the `a` and `b` directories. Each remained chunk is a merged chunk and
// emits its components as component chunks.
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/page.js [test] (ecmascript, async loader)").then(({ page })=>console.log(page));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js [test] (ecmascript, async loader)").then(({ other })=>console.log(other));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js [test] (ecmascript, async loader)").then(({ other })=>console.log(other));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js [test] (ecmascript, async loader)").then(({ other })=>console.log(other));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js [test] (ecmascript, async loader)").then(({ other })=>console.log(other));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js [test] (ecmascript, async loader)").then(({ other })=>console.log(other));
__turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js [test] (ecmascript, async loader)").then(({ other })=>console.log(other));
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_index_09chyqc0c2tyl.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/index.js"],"sourcesContent":["// `page.js` uses all shared modules, and each shared module is also used by one other page. So each\n// shared module is its own small chunk in the chunk group of `page.js`, which is not merged with the\n// others (merging is not beneficial with the tiny request cost). They all end up in the remained\n// chunk, but together they are bigger than `maxChunkSize`, so they form multiple remained chunks\n// instead, split between the `a` and `b` directories. Each remained chunk is a merged chunk and\n// emits its components as component chunks.\nimport('./page.js').then(({ page }) => console.log(page))\nimport('./other/a1.js').then(({ other }) => console.log(other))\nimport('./other/a2.js').then(({ other }) => console.log(other))\nimport('./other/a3.js').then(({ other }) => console.log(other))\nimport('./other/b1.js').then(({ other }) => console.log(other))\nimport('./other/b2.js').then(({ other }) => console.log(other))\nimport('./other/b3.js').then(({ other }) => console.log(other))\n"],"names":["then","page","console","log","other"],"mappings":"AAAA,oGAAoG;AACpG,qGAAqG;AACrG,iGAAiG;AACjG,iGAAiG;AACjG,gGAAgG;AAChG,4CAA4C;AAC5C,oKAAoBA,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE,GAAKC,QAAQC,GAAG,CAACF;AACnD,wKAAwBD,IAAI,CAAC,CAAC,EAAEI,KAAK,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACxD,wKAAwBJ,IAAI,CAAC,CAAC,EAAEI,KAAK,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACxD,wKAAwBJ,IAAI,CAAC,CAAC,EAAEI,KAAK,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACxD,wKAAwBJ,IAAI,CAAC,CAAC,EAAEI,KAAK,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACxD,wKAAwBJ,IAAI,CAAC,CAAC,EAAEI,KAAK,EAAE,GAAKF,QAAQC,GAAG,CAACC;AACxD,wKAAwBJ,IAAI,CAAC,CAAC,EAAEI,KAAK,EAAE,GAAKF,QAAQC,GAAG,CAACC"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a1_0les6wf8lnk12.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a1"];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a1_0les6wf8lnk12.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a1.js"],"sourcesContent":["import { a1 } from '../a/a1.js'\n\nexport const other = a1\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a2_08yvjkj2t6wfl.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a2"];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a2_08yvjkj2t6wfl.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a2.js"],"sourcesContent":["import { a2 } from '../a/a2.js'\n\nexport const other = a2\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a3_0-0t96g_64lfv.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a3$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a3$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a3"];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_a3_0-0t96g_64lfv.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/a3.js"],"sourcesContent":["import { a3 } from '../a/a3.js'\n\nexport const other = a3\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b1_1h-07lcqoz1d7.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b1"];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b1_1h-07lcqoz1d7.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b1.js"],"sourcesContent":["import { b1 } from '../b/b1.js'\n\nexport const other = b1\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b2_13fdqcd9gzg78.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b2"];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b2_13fdqcd9gzg78.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b2.js"],"sourcesContent":["import { b2 } from '../b/b2.js'\n\nexport const other = b2\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b3_0lf80qd958q5p.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"other",
()=>other
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b3$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js [test] (ecmascript)");
;
const other = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b3$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b3"];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_other_b3_0lf80qd958q5p.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/other/b3.js"],"sourcesContent":["import { b3 } from '../b/b3.js'\n\nexport const other = b3\n"],"names":["other"],"mappings":";;;;AAAA;;AAEO,MAAMA,QAAQ,uNAAE"}}]
}
\ No newline at end of file
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_page_0rqm75iukhb5l.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/page.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.s([
"page",
()=>page
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a1.js [test] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a2.js [test] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a3$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/a/a3.js [test] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b1.js [test] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b2.js [test] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b3$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/b/b3.js [test] (ecmascript)");
;
;
;
;
;
;
const page = [
__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a1"],
__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a2"],
__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$a$2f$a3$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a3"],
__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b1$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b1"],
__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b2$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b2"],
__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$max_chunk_size_remainder$2f$input$2f$b$2f$b3$2e$js__$5b$test$5d$__$28$ecmascript$29$__["b3"]
];
}),
]);
//# sourceMappingURL=1jsg_tests_snapshot_basic_max_chunk_size_remainder_input_page_0rqm75iukhb5l.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/max_chunk_size_remainder/input/page.js"],"sourcesContent":["import { a1 } from './a/a1.js'\nimport { a2 } from './a/a2.js'\nimport { a3 } from './a/a3.js'\nimport { b1 } from './b/b1.js'\nimport { b2 } from './b/b2.js'\nimport { b3 } from './b/b3.js'\n\nexport const page = [a1, a2, a3, b1, b2, b3]\n"],"names":["page"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAEO,MAAMA,OAAO;IAAC,uNAAE;IAAE,uNAAE;IAAE,uNAAE;IAAE,uNAAE;IAAE,uNAAE;IAAE,uNAAE;CAAC"}}]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment