Unverified Commit baad064f authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turboopack: put import attributes behind a pointer, 23% faster analyze (#91347)

The JS analyze microbenchmark got 23% faster:

Only a tiny fraction of imports have annotations, be it `import ... with {...}` or `require(/*webpackIgnore: true*/...)`, so a `Option<Pointer<Struct>>` mkes sense here.
```
canary:
references/jsonwebtoken.js/full
                        time:   [63.250 ms 63.918 ms 64.752 ms]
                        change: [-5.2380% -3.0074% -0.8753%] (p = 0.01 < 0.05)
                        Change within noise threshold.
Found 12 outliers among 100 measurements (12.00%)
  5 (5.00%) high mild
  7 (7.00%) high severe


now:
references/jsonwebtoken.js/full
                        time:   [49.070 ms 49.166 ms 49.273 ms]
                        change: [-24.097% -23.079% -22.237%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) high mild
  3 (3.00%) high severe
````

This came up in https://github.com/vercel/next.js/pull/91278#issuecomment-4058275943, which added another (tiny) field to ImportAttributes. But it caused a 6% regression in the microbenchmark anyway.
parent cd49df2d
use std::{borrow::Cow, collections::BTreeMap, fmt::Display}; use std::{borrow::Cow, collections::BTreeMap, fmt::Display, sync::Arc};
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use rustc_hash::{FxHashMap, FxHashSet}; use rustc_hash::{FxHashMap, FxHashSet};
...@@ -60,10 +60,8 @@ static ANNOTATION_CHUNKING_TYPE: Lazy<Wtf8Atom> = ...@@ -60,10 +60,8 @@ static ANNOTATION_CHUNKING_TYPE: Lazy<Wtf8Atom> =
static ATTRIBUTE_MODULE_TYPE: Lazy<Wtf8Atom> = Lazy::new(|| atom!("type").into()); static ATTRIBUTE_MODULE_TYPE: Lazy<Wtf8Atom> = Lazy::new(|| atom!("type").into());
impl ImportAnnotations { impl ImportAnnotations {
pub fn parse(with: Option<&ObjectLit>) -> ImportAnnotations { pub fn parse(with: Option<&ObjectLit>) -> Option<ImportAnnotations> {
let Some(with) = with else { let with = with?;
return ImportAnnotations::default();
};
let mut map = BTreeMap::new(); let mut map = BTreeMap::new();
let mut turbopack_loader_name: Option<RcStr> = None; let mut turbopack_loader_name: Option<RcStr> = None;
...@@ -148,11 +146,19 @@ impl ImportAnnotations { ...@@ -148,11 +146,19 @@ impl ImportAnnotations {
options: turbopack_loader_options, options: turbopack_loader_options,
}); });
ImportAnnotations { if !map.is_empty()
map, || turbopack_loader.is_some()
turbopack_loader, || turbopack_rename_as.is_some()
turbopack_rename_as, || turbopack_module_type.is_some()
turbopack_module_type, {
Some(ImportAnnotations {
map,
turbopack_loader,
turbopack_rename_as,
turbopack_module_type,
})
} else {
None
} }
} }
...@@ -181,12 +187,16 @@ impl ImportAnnotations { ...@@ -181,12 +187,16 @@ impl ImportAnnotations {
); );
} }
Some(ImportAnnotations { if !map.is_empty() {
map, Some(ImportAnnotations {
turbopack_loader: None, map,
turbopack_rename_as: None, turbopack_loader: None,
turbopack_module_type: None, turbopack_rename_as: None,
}) turbopack_module_type: None,
})
} else {
None
}
} }
/// Returns the content on the transition annotation /// Returns the content on the transition annotation
...@@ -395,7 +405,7 @@ pub(crate) enum ImportedSymbol { ...@@ -395,7 +405,7 @@ pub(crate) enum ImportedSymbol {
pub(crate) struct ImportMapReference { pub(crate) struct ImportMapReference {
pub module_path: Wtf8Atom, pub module_path: Wtf8Atom,
pub imported_symbol: ImportedSymbol, pub imported_symbol: ImportedSymbol,
pub annotations: ImportAnnotations, pub annotations: Option<Arc<ImportAnnotations>>,
pub issue_source: Option<IssueSource>, pub issue_source: Option<IssueSource>,
} }
...@@ -581,7 +591,7 @@ impl Analyzer<'_> { ...@@ -581,7 +591,7 @@ impl Analyzer<'_> {
span: Span, span: Span,
module_path: Wtf8Atom, module_path: Wtf8Atom,
imported_symbol: ImportedSymbol, imported_symbol: ImportedSymbol,
annotations: ImportAnnotations, annotations: Option<ImportAnnotations>,
) -> Option<usize> { ) -> Option<usize> {
let issue_source = self let issue_source = self
.source .source
...@@ -591,7 +601,7 @@ impl Analyzer<'_> { ...@@ -591,7 +601,7 @@ impl Analyzer<'_> {
module_path, module_path,
imported_symbol, imported_symbol,
issue_source, issue_source,
annotations, annotations: annotations.map(Arc::new),
}; };
if let Some(i) = self.data.references.get_index_of(&r) { if let Some(i) = self.data.references.get_index_of(&r) {
Some(i) Some(i)
...@@ -897,11 +907,11 @@ impl Visit for Analyzer<'_> { ...@@ -897,11 +907,11 @@ impl Visit for Analyzer<'_> {
_ => None, _ => None,
}; };
let attributes = parse_directives(comments, n.args.first()); if let Some(callee_span) = callee_span
&& let Some(attributes) = parse_directives(comments, n.args.first())
if let Some((callee_span, attributes)) = callee_span.zip(attributes) { {
self.data.attributes.insert(callee_span.lo, attributes); self.data.attributes.insert(callee_span.lo, attributes);
}; }
} }
n.visit_children_with(self); n.visit_children_with(self);
...@@ -915,11 +925,11 @@ impl Visit for Analyzer<'_> { ...@@ -915,11 +925,11 @@ impl Visit for Analyzer<'_> {
_ => None, _ => None,
}; };
let attributes = parse_directives(comments, n.args.iter().flatten().next()); if let Some(callee_span) = callee_span
&& let Some(attributes) = parse_directives(comments, n.args.iter().flatten().next())
if let Some((callee_span, attributes)) = callee_span.zip(attributes) { {
self.data.attributes.insert(callee_span.lo, attributes); self.data.attributes.insert(callee_span.lo, attributes);
}; }
} }
n.visit_children_with(self); n.visit_children_with(self);
...@@ -1069,7 +1079,7 @@ mod tests { ...@@ -1069,7 +1079,7 @@ mod tests {
props: vec![kv_prop(ident_key("turbopackLoader"), str_lit("raw-loader"))], props: vec![kv_prop(ident_key("turbopackLoader"), str_lit("raw-loader"))],
}; };
let annotations = ImportAnnotations::parse(Some(&with)); let annotations = ImportAnnotations::parse(Some(&with)).unwrap();
assert!(annotations.has_turbopack_loader()); assert!(annotations.has_turbopack_loader());
let loader = annotations.turbopack_loader().unwrap(); let loader = annotations.turbopack_loader().unwrap();
...@@ -1091,7 +1101,7 @@ mod tests { ...@@ -1091,7 +1101,7 @@ mod tests {
], ],
}; };
let annotations = ImportAnnotations::parse(Some(&with)); let annotations = ImportAnnotations::parse(Some(&with)).unwrap();
assert!(annotations.has_turbopack_loader()); assert!(annotations.has_turbopack_loader());
let loader = annotations.turbopack_loader().unwrap(); let loader = annotations.turbopack_loader().unwrap();
...@@ -1107,7 +1117,7 @@ mod tests { ...@@ -1107,7 +1117,7 @@ mod tests {
props: vec![kv_prop(ident_key("type"), str_lit("json"))], props: vec![kv_prop(ident_key("type"), str_lit("json"))],
}; };
let annotations = ImportAnnotations::parse(Some(&with)); let annotations = ImportAnnotations::parse(Some(&with)).unwrap();
assert!(!annotations.has_turbopack_loader()); assert!(!annotations.has_turbopack_loader());
assert!(annotations.module_type().is_some()); assert!(annotations.module_type().is_some());
} }
...@@ -1115,7 +1125,6 @@ mod tests { ...@@ -1115,7 +1125,6 @@ mod tests {
#[test] #[test]
fn test_parse_empty_with() { fn test_parse_empty_with() {
let annotations = ImportAnnotations::parse(None); let annotations = ImportAnnotations::parse(None);
assert!(!annotations.has_turbopack_loader()); assert!(annotations.is_none());
assert!(annotations.module_type().is_none());
} }
} }
...@@ -9,6 +9,7 @@ use std::{ ...@@ -9,6 +9,7 @@ use std::{
}; };
use anyhow::{Result, bail}; use anyhow::{Result, bail};
use either::Either;
use num_bigint::BigInt; use num_bigint::BigInt;
use num_traits::identities::Zero; use num_traits::identities::Zero;
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
...@@ -268,7 +269,7 @@ impl Display for ConstantValue { ...@@ -268,7 +269,7 @@ impl Display for ConstantValue {
#[derive(Debug, Clone, Hash, PartialEq, Eq)] #[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct ModuleValue { pub struct ModuleValue {
pub module: Wtf8Atom, pub module: Wtf8Atom,
pub annotations: ImportAnnotations, pub annotations: Option<Arc<ImportAnnotations>>,
} }
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)] #[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
...@@ -799,7 +800,16 @@ impl Display for JsValue { ...@@ -799,7 +800,16 @@ impl Display for JsValue {
module: name, module: name,
annotations, annotations,
}) => { }) => {
write!(f, "Module({}, {annotations})", name.to_string_lossy()) write!(
f,
"Module({}, {})",
name.to_string_lossy(),
if let Some(annotations) = annotations {
Either::Left(annotations)
} else {
Either::Right("{}")
}
)
} }
JsValue::Unknown { .. } => write!(f, "???"), JsValue::Unknown { .. } => write!(f, "???"),
JsValue::WellKnownObject(obj) => write!(f, "WellKnownObject({obj:?})"), JsValue::WellKnownObject(obj) => write!(f, "WellKnownObject({obj:?})"),
...@@ -1618,7 +1628,15 @@ impl JsValue { ...@@ -1618,7 +1628,15 @@ impl JsValue {
module: name, module: name,
annotations, annotations,
}) => { }) => {
format!("module<{}, {annotations}>", name.to_string_lossy()) format!(
"module<{}, {}>",
name.to_string_lossy(),
if let Some(annotations) = annotations {
Either::Left(annotations)
} else {
Either::Right("{}")
}
)
} }
JsValue::Unknown { JsValue::Unknown {
original_value: inner, original_value: inner,
...@@ -3527,9 +3545,7 @@ pub mod test_utils { ...@@ -3527,9 +3545,7 @@ pub mod test_utils {
}; };
use crate::{ use crate::{
analyzer::{ analyzer::{
RequireContextValue, RequireContextValue, builtin::replace_builtin, imports::ImportAttributes,
builtin::replace_builtin,
imports::{ImportAnnotations, ImportAttributes},
parse_require_context, parse_require_context,
}, },
utils::module_value_to_well_known_object, utils::module_value_to_well_known_object,
...@@ -3557,7 +3573,7 @@ pub mod test_utils { ...@@ -3557,7 +3573,7 @@ pub mod test_utils {
JsValue::Constant(ConstantValue::Str(v)) => { JsValue::Constant(ConstantValue::Str(v)) => {
JsValue::promise(JsValue::Module(ModuleValue { JsValue::promise(JsValue::Module(ModuleValue {
module: v.as_atom().into_owned().into(), module: v.as_atom().into_owned().into(),
annotations: ImportAnnotations::default(), annotations: None,
})) }))
} }
_ => v.into_unknown(true, "import() non constant"), _ => v.into_unknown(true, "import() non constant"),
......
...@@ -7,8 +7,7 @@ use turbopack_core::compile_time_info::CompileTimeInfo; ...@@ -7,8 +7,7 @@ use turbopack_core::compile_time_info::CompileTimeInfo;
use url::Url; use url::Url;
use super::{ use super::{
ConstantValue, JsValue, JsValueUrlKind, ModuleValue, WellKnownFunctionKind, ConstantValue, JsValue, JsValueUrlKind, ModuleValue, WellKnownFunctionKind, WellKnownObjectKind,
WellKnownObjectKind, imports::ImportAnnotations,
}; };
use crate::analyzer::RequireContextValue; use crate::analyzer::RequireContextValue;
...@@ -359,7 +358,7 @@ pub fn import(args: Vec<JsValue>) -> JsValue { ...@@ -359,7 +358,7 @@ pub fn import(args: Vec<JsValue>) -> JsValue {
[JsValue::Constant(ConstantValue::Str(v))] => { [JsValue::Constant(ConstantValue::Str(v))] => {
JsValue::promise(JsValue::Module(ModuleValue { JsValue::promise(JsValue::Module(ModuleValue {
module: v.as_atom().into_owned().into(), module: v.as_atom().into_owned().into(),
annotations: ImportAnnotations::default(), annotations: None,
})) }))
} }
_ => JsValue::unknown( _ => JsValue::unknown(
...@@ -380,7 +379,7 @@ fn require(args: Vec<JsValue>) -> JsValue { ...@@ -380,7 +379,7 @@ fn require(args: Vec<JsValue>) -> JsValue {
if let Some(s) = args[0].as_str() { if let Some(s) = args[0].as_str() {
JsValue::Module(ModuleValue { JsValue::Module(ModuleValue {
module: s.into(), module: s.into(),
annotations: ImportAnnotations::default(), annotations: None,
}) })
} else { } else {
JsValue::unknown( JsValue::unknown(
...@@ -448,7 +447,7 @@ fn require_context_require(val: RequireContextValue, args: Vec<JsValue>) -> Resu ...@@ -448,7 +447,7 @@ fn require_context_require(val: RequireContextValue, args: Vec<JsValue>) -> Resu
Ok(JsValue::Module(ModuleValue { Ok(JsValue::Module(ModuleValue {
module: m.to_string().into(), module: m.to_string().into(),
annotations: ImportAnnotations::default(), annotations: None,
})) }))
} }
......
...@@ -322,13 +322,13 @@ impl EsmAssetReferences { ...@@ -322,13 +322,13 @@ impl EsmAssetReferences {
#[turbo_tasks::value(shared)] #[turbo_tasks::value(shared)]
#[derive(Hash, Debug, ValueToString)] #[derive(Hash, Debug, ValueToString)]
#[value_to_string("import {request} with {annotations}")] #[value_to_string("import {request}")]
pub struct EsmAssetReference { pub struct EsmAssetReference {
pub module: ResolvedVc<EcmascriptModuleAsset>, pub module: ResolvedVc<EcmascriptModuleAsset>,
pub origin: ResolvedVc<Box<dyn ResolveOrigin>>, pub origin: ResolvedVc<Box<dyn ResolveOrigin>>,
// Request is a string to avoid eagerly parsing into a `Request` VC // Request is a string to avoid eagerly parsing into a `Request` VC
pub request: RcStr, pub request: RcStr,
pub annotations: ImportAnnotations, pub annotations: Option<ImportAnnotations>,
pub issue_source: IssueSource, pub issue_source: IssueSource,
pub export_name: Option<ModulePart>, pub export_name: Option<ModulePart>,
pub import_usage: ImportUsage, pub import_usage: ImportUsage,
...@@ -339,7 +339,7 @@ pub struct EsmAssetReference { ...@@ -339,7 +339,7 @@ pub struct EsmAssetReference {
impl EsmAssetReference { impl EsmAssetReference {
fn get_origin(&self) -> Vc<Box<dyn ResolveOrigin>> { fn get_origin(&self) -> Vc<Box<dyn ResolveOrigin>> {
if let Some(transition) = self.annotations.transition() { if let Some(transition) = self.annotations.as_ref().and_then(|a| a.transition()) {
self.origin.with_transition(transition.into()) self.origin.with_transition(transition.into())
} else { } else {
*self.origin *self.origin
...@@ -353,7 +353,7 @@ impl EsmAssetReference { ...@@ -353,7 +353,7 @@ impl EsmAssetReference {
origin: ResolvedVc<Box<dyn ResolveOrigin>>, origin: ResolvedVc<Box<dyn ResolveOrigin>>,
request: RcStr, request: RcStr,
issue_source: IssueSource, issue_source: IssueSource,
annotations: ImportAnnotations, annotations: Option<ImportAnnotations>,
export_name: Option<ModulePart>, export_name: Option<ModulePart>,
import_usage: ImportUsage, import_usage: ImportUsage,
import_externals: bool, import_externals: bool,
...@@ -378,7 +378,7 @@ impl EsmAssetReference { ...@@ -378,7 +378,7 @@ impl EsmAssetReference {
origin: ResolvedVc<Box<dyn ResolveOrigin>>, origin: ResolvedVc<Box<dyn ResolveOrigin>>,
request: RcStr, request: RcStr,
issue_source: IssueSource, issue_source: IssueSource,
annotations: ImportAnnotations, annotations: Option<ImportAnnotations>,
export_name: Option<ModulePart>, export_name: Option<ModulePart>,
import_usage: ImportUsage, import_usage: ImportUsage,
import_externals: bool, import_externals: bool,
...@@ -406,7 +406,8 @@ impl EsmAssetReference { ...@@ -406,7 +406,8 @@ impl EsmAssetReference {
impl ModuleReference for EsmAssetReference { impl ModuleReference for EsmAssetReference {
#[turbo_tasks::function] #[turbo_tasks::function]
async fn resolve_reference(&self) -> Result<Vc<ModuleResolveResult>> { async fn resolve_reference(&self) -> Result<Vc<ModuleResolveResult>> {
let ty = if let Some(loader) = self.annotations.turbopack_loader() { let ty = if let Some(loader) = self.annotations.as_ref().and_then(|a| a.turbopack_loader())
{
// Resolve the loader path relative to the importing file // Resolve the loader path relative to the importing file
let origin = self.get_origin(); let origin = self.get_origin();
let origin_path = origin.origin_path().await?; let origin_path = origin.origin_path().await?;
...@@ -428,10 +429,18 @@ impl ModuleReference for EsmAssetReference { ...@@ -428,10 +429,18 @@ impl ModuleReference for EsmAssetReference {
loader: loader_fs_path, loader: loader_fs_path,
options: loader.options.clone(), options: loader.options.clone(),
}, },
rename_as: self.annotations.turbopack_rename_as().cloned(), rename_as: self
module_type: self.annotations.turbopack_module_type().cloned(), .annotations
.as_ref()
.and_then(|a| a.turbopack_rename_as())
.cloned(),
module_type: self
.annotations
.as_ref()
.and_then(|a| a.turbopack_module_type())
.cloned(),
} }
} else if let Some(module_type) = self.annotations.module_type() { } else if let Some(module_type) = self.annotations.as_ref().and_then(|a| a.module_type()) {
EcmaScriptModulesReferenceSubType::ImportWithType(RcStr::from( EcmaScriptModulesReferenceSubType::ImportWithType(RcStr::from(
&*module_type.to_string_lossy(), &*module_type.to_string_lossy(),
)) ))
...@@ -498,7 +507,8 @@ impl ModuleReference for EsmAssetReference { ...@@ -498,7 +507,8 @@ impl ModuleReference for EsmAssetReference {
fn chunking_type(&self) -> Option<ChunkingType> { fn chunking_type(&self) -> Option<ChunkingType> {
self.annotations self.annotations
.chunking_type() .as_ref()
.and_then(|a| a.chunking_type())
.unwrap_or(Some(ChunkingType::Parallel { .unwrap_or(Some(ChunkingType::Parallel {
inherit_async: true, inherit_async: true,
hoisted: true, hoisted: true,
...@@ -534,7 +544,10 @@ impl EsmAssetReference { ...@@ -534,7 +544,10 @@ impl EsmAssetReference {
} }
// only chunked references can be imported // only chunked references can be imported
if !matches!(this.annotations.chunking_type(), Some(None)) { if !matches!(
this.annotations.as_ref().and_then(|a| a.chunking_type()),
Some(None)
) {
let import_externals = this.import_externals; let import_externals = this.import_externals;
let referenced_asset = self.get_referenced_asset().await?; let referenced_asset = self.get_referenced_asset().await?;
......
...@@ -820,7 +820,7 @@ async fn analyze_ecmascript_module_internal( ...@@ -820,7 +820,7 @@ async fn analyze_ecmascript_module_internal(
RcStr::from(&*r.module_path.to_string_lossy()), RcStr::from(&*r.module_path.to_string_lossy()),
r.issue_source r.issue_source
.unwrap_or_else(|| IssueSource::from_source_only(source)), .unwrap_or_else(|| IssueSource::from_source_only(source)),
r.annotations.clone(), r.annotations.as_ref().map(|a| (**a).clone()),
match &r.imported_symbol { match &r.imported_symbol {
ImportedSymbol::ModuleEvaluation => { ImportedSymbol::ModuleEvaluation => {
should_add_evaluation = true; should_add_evaluation = true;
...@@ -1510,12 +1510,15 @@ async fn analyze_ecmascript_module_internal( ...@@ -1510,12 +1510,15 @@ async fn analyze_ecmascript_module_internal(
}; };
if let Some("__turbopack_module_id__") = export.as_deref() { if let Some("__turbopack_module_id__") = export.as_deref() {
let chunking_type = r.await?.annotations.chunking_type().unwrap_or(Some( let chunking_type = r
ChunkingType::Parallel { .await?
.annotations
.as_ref()
.and_then(|a| a.chunking_type())
.unwrap_or(Some(ChunkingType::Parallel {
inherit_async: true, inherit_async: true,
hoisted: true, hoisted: true,
}, }));
));
analysis.add_reference_code_gen( analysis.add_reference_code_gen(
EsmModuleIdAssetReference::new(*r, chunking_type), EsmModuleIdAssetReference::new(*r, chunking_type),
ast_path.into(), ast_path.into(),
...@@ -4264,7 +4267,7 @@ pub static TURBOPACK_HELPER_WTF8: Lazy<Wtf8Atom> = ...@@ -4264,7 +4267,7 @@ pub static TURBOPACK_HELPER_WTF8: Lazy<Wtf8Atom> =
pub fn is_turbopack_helper_import(import: &ImportDecl) -> bool { pub fn is_turbopack_helper_import(import: &ImportDecl) -> bool {
let annotations = ImportAnnotations::parse(import.with.as_deref()); let annotations = ImportAnnotations::parse(import.with.as_deref());
annotations.get(&TURBOPACK_HELPER_WTF8).is_some() annotations.is_some_and(|a| a.get(&TURBOPACK_HELPER_WTF8).is_some())
} }
pub fn is_swc_helper_import(import: &ImportDecl) -> bool { pub fn is_swc_helper_import(import: &ImportDecl) -> bool {
......
...@@ -121,12 +121,7 @@ ...@@ -121,12 +121,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./module.js", module: "./module.js",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -95,12 +95,7 @@ ...@@ -95,12 +95,7 @@
obj: Module( obj: Module(
ModuleValue { ModuleValue {
module: "node:module", module: "node:module",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
prop: Constant( prop: Constant(
...@@ -308,12 +303,7 @@ ...@@ -308,12 +303,7 @@
obj: Module( obj: Module(
ModuleValue { ModuleValue {
module: "node:module", module: "node:module",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
prop: Constant( prop: Constant(
......
...@@ -58,12 +58,7 @@ ...@@ -58,12 +58,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "node:module", module: "node:module",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -58,12 +58,7 @@ ...@@ -58,12 +58,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./module.js", module: "./module.js",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -102,12 +97,7 @@ ...@@ -102,12 +97,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./module.js", module: "./module.js",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -6,12 +6,7 @@ ...@@ -6,12 +6,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "x2", module: "x2",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -30,12 +25,7 @@ ...@@ -30,12 +25,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "x1", module: "x1",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -52,12 +42,7 @@ ...@@ -52,12 +42,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "x3", module: "x3",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
), ),
......
...@@ -71,12 +71,7 @@ ...@@ -71,12 +71,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "react", module: "react",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -579,12 +574,7 @@ ...@@ -579,12 +574,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "https://esm.sh/preact/jsx-runtime", module: "https://esm.sh/preact/jsx-runtime",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -958,12 +948,7 @@ ...@@ -958,12 +948,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./external", module: "./external",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -1084,12 +1069,7 @@ ...@@ -1084,12 +1069,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./external", module: "./external",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -70,12 +70,7 @@ ...@@ -70,12 +70,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "https://esm.sh/preact/jsx-runtime", module: "https://esm.sh/preact/jsx-runtime",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -151,12 +146,7 @@ ...@@ -151,12 +146,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "react", module: "react",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -83,12 +83,7 @@ ...@@ -83,12 +83,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./assert", module: "./assert",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -374,12 +369,7 @@ ...@@ -374,12 +369,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./assert", module: "./assert",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -526,12 +516,7 @@ ...@@ -526,12 +516,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "./assert", module: "./assert",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -40,12 +40,7 @@ ...@@ -40,12 +40,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "@upstash/redis", module: "@upstash/redis",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -1028,12 +1028,7 @@ ...@@ -1028,12 +1028,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "path", module: "path",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -81,12 +81,7 @@ ...@@ -81,12 +81,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "path", module: "path",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -113,12 +108,7 @@ ...@@ -113,12 +108,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "path", module: "path",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
...@@ -60,12 +60,7 @@ ...@@ -60,12 +60,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "foo", module: "foo",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -230,12 +225,7 @@ ...@@ -230,12 +225,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "foo", module: "foo",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -365,12 +355,7 @@ ...@@ -365,12 +355,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "foo", module: "foo",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -549,12 +534,7 @@ ...@@ -549,12 +534,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "foo", module: "foo",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -684,12 +664,7 @@ ...@@ -684,12 +664,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "foo", module: "foo",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
...@@ -868,12 +843,7 @@ ...@@ -868,12 +843,7 @@
Module( Module(
ModuleValue { ModuleValue {
module: "foo", module: "foo",
annotations: ImportAnnotations { annotations: None,
map: {},
turbopack_loader: None,
turbopack_rename_as: None,
turbopack_module_type: None,
},
}, },
), ),
Constant( Constant(
......
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