Unverified Commit fd27e588 authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

perf(turbopack): Update rustc-hash from 1.1.0 to 2.1.0 (#75531)

> Replace hash with faster and better finalized hash. This replaces the previous "fxhash" algorithm originating in Firefox with a custom hasher designed and implemented by Orson Peters (orlp). It was measured to have slightly better performance for rustc, has better theoretical properties and also includes a significantly better string hasher.

https://github.com/rust-lang/rustc-hash/blob/master/CHANGELOG.md

# Benchmarks

Any perf difference either way is too small to be easily measured. Benchmarks here technically show a tiny regression, but that's well within the run-to-run variance I've observed.

## rustc-hash 1.1.0

```
$ hyperfine --warmup 1 --runs 5 --prepare 'rm -rf .next' 'TURBOPACK=1 TURBOPACK_BUILD=1 TURBO_ENGINE_READ_ONLY=1 pnpm next build --experimental-build-mode=compile'

Benchmark 1: TURBOPACK=1 TURBOPACK_BUILD=1 TURBO_ENGINE_READ_ONLY=1 pnpm next build --experimental-build-mode=compile
  Time (mean ± σ):     26.736 s ±  0.294 s    [User: 122.811 s, System: 15.908 s]
  Range (min … max):   26.340 s … 27.165 s    5 runs
```

## rustc-hash 2.1.0

```
$ hyperfine --warmup 1 --runs 5 --prepare 'rm -rf .next' 'TURBOPACK=1 TURBOPACK_BUILD=1 TURBO_ENGINE_READ_ONLY=1 pnpm next build --experimental-build-mode=compile'

Benchmark 1: TURBOPACK=1 TURBOPACK_BUILD=1 TURBO_ENGINE_READ_ONLY=1 pnpm next build --experimental-build-mode=compile
  Time (mean ± σ):     27.206 s ±  0.540 s    [User: 126.145 s, System: 15.958 s]
  Range (min … max):   26.543 s … 27.894 s    5 runs
```
parent a9490686
...@@ -569,7 +569,7 @@ name = "auto-hash-map" ...@@ -569,7 +569,7 @@ name = "auto-hash-map"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"hashbrown 0.14.5", "hashbrown 0.14.5",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"smallvec", "smallvec",
] ]
...@@ -4483,7 +4483,7 @@ dependencies = [ ...@@ -4483,7 +4483,7 @@ dependencies = [
"react_remove_properties", "react_remove_properties",
"regex", "regex",
"remove_console", "remove_console",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"swc_core", "swc_core",
...@@ -4534,6 +4534,7 @@ dependencies = [ ...@@ -4534,6 +4534,7 @@ dependencies = [
"regex", "regex",
"remove_console", "remove_console",
"rustc-hash 1.1.0", "rustc-hash 1.1.0",
"rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"sha1", "sha1",
...@@ -4573,7 +4574,7 @@ dependencies = [ ...@@ -4573,7 +4574,7 @@ dependencies = [
"once_cell", "once_cell",
"owo-colors 3.5.0", "owo-colors 3.5.0",
"rand", "rand",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"shadow-rs", "shadow-rs",
...@@ -9046,7 +9047,7 @@ dependencies = [ ...@@ -9046,7 +9047,7 @@ dependencies = [
"quick_cache", "quick_cache",
"rand", "rand",
"rayon", "rayon",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"tempfile", "tempfile",
"thread_local", "thread_local",
...@@ -9110,7 +9111,7 @@ dependencies = [ ...@@ -9110,7 +9111,7 @@ dependencies = [
"pin-project-lite", "pin-project-lite",
"rayon", "rayon",
"regex", "regex",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"serde_regex", "serde_regex",
...@@ -9148,7 +9149,7 @@ dependencies = [ ...@@ -9148,7 +9149,7 @@ dependencies = [
"rand", "rand",
"rayon", "rayon",
"regex", "regex",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"serde_path_to_error", "serde_path_to_error",
...@@ -9335,7 +9336,7 @@ dependencies = [ ...@@ -9335,7 +9336,7 @@ dependencies = [
"ref-cast", "ref-cast",
"regex", "regex",
"rstest", "rstest",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"smallvec", "smallvec",
...@@ -9357,7 +9358,7 @@ dependencies = [ ...@@ -9357,7 +9358,7 @@ dependencies = [
"anyhow", "anyhow",
"auto-hash-map", "auto-hash-map",
"futures", "futures",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"tokio", "tokio",
"turbo-rcstr", "turbo-rcstr",
"turbo-tasks", "turbo-tasks",
...@@ -9376,7 +9377,7 @@ dependencies = [ ...@@ -9376,7 +9377,7 @@ dependencies = [
"regex", "regex",
"rstest", "rstest",
"rstest_reuse", "rstest_reuse",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"smallvec", "smallvec",
...@@ -9434,7 +9435,7 @@ dependencies = [ ...@@ -9434,7 +9435,7 @@ dependencies = [
"anyhow", "anyhow",
"indexmap 2.7.1", "indexmap 2.7.1",
"indoc", "indoc",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"serde_qs", "serde_qs",
...@@ -9527,7 +9528,7 @@ dependencies = [ ...@@ -9527,7 +9528,7 @@ dependencies = [
"regex", "regex",
"roaring", "roaring",
"rstest", "rstest",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_bytes", "serde_bytes",
"serde_json", "serde_json",
...@@ -9636,7 +9637,7 @@ dependencies = [ ...@@ -9636,7 +9637,7 @@ dependencies = [
"parking_lot", "parking_lot",
"petgraph", "petgraph",
"regex", "regex",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"sourcemap", "sourcemap",
...@@ -9677,7 +9678,7 @@ dependencies = [ ...@@ -9677,7 +9678,7 @@ dependencies = [
"indexmap 2.7.1", "indexmap 2.7.1",
"lightningcss", "lightningcss",
"modularize_imports", "modularize_imports",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"styled_components", "styled_components",
...@@ -9818,7 +9819,7 @@ dependencies = [ ...@@ -9818,7 +9819,7 @@ dependencies = [
"anyhow", "anyhow",
"indexmap 2.7.1", "indexmap 2.7.1",
"indoc", "indoc",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"tracing", "tracing",
"turbo-rcstr", "turbo-rcstr",
...@@ -9942,7 +9943,7 @@ dependencies = [ ...@@ -9942,7 +9943,7 @@ dependencies = [
"postcard", "postcard",
"rayon", "rayon",
"rustc-demangle", "rustc-demangle",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"serde_json", "serde_json",
"tungstenite 0.21.0", "tungstenite 0.21.0",
...@@ -9960,7 +9961,7 @@ dependencies = [ ...@@ -9960,7 +9961,7 @@ dependencies = [
"once_cell", "once_cell",
"parking_lot", "parking_lot",
"postcard", "postcard",
"rustc-hash 1.1.0", "rustc-hash 2.1.0",
"serde", "serde",
"thread_local", "thread_local",
"tokio", "tokio",
......
...@@ -182,7 +182,7 @@ rayon = "1.10.0" ...@@ -182,7 +182,7 @@ rayon = "1.10.0"
regex = "1.10.6" regex = "1.10.6"
reqwest = { version = "=0.11.17", default-features = false } reqwest = { version = "=0.11.17", default-features = false }
rstest = "0.16.0" rstest = "0.16.0"
rustc-hash = "1.1.0" rustc-hash = "2.1.0"
semver = "1.0.16" semver = "1.0.16"
serde = { version = "1.0.217", features = ["derive"] } serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.138" serde_json = "1.0.138"
...@@ -201,6 +201,7 @@ smallvec = { version = "1.13.1", features = [ ...@@ -201,6 +201,7 @@ smallvec = { version = "1.13.1", features = [
] } ] }
sourcemap = "9.0.0" sourcemap = "9.0.0"
strsim = "0.11.1" strsim = "0.11.1"
swc-rustc-hash = { package = "rustc-hash", version = "1.1.0" } # used with swc
syn = "1.0.107" syn = "1.0.107"
tempfile = "3.3.0" tempfile = "3.3.0"
thread_local = "1.1.8" thread_local = "1.1.8"
......
...@@ -24,6 +24,7 @@ once_cell = { workspace = true } ...@@ -24,6 +24,7 @@ once_cell = { workspace = true }
pathdiff = { workspace = true } pathdiff = { workspace = true }
regex = "1.5" regex = "1.5"
rustc-hash = { workspace = true } rustc-hash = { workspace = true }
swc-rustc-hash = { workspace = true }
serde = { workspace = true } serde = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] } serde_json = { workspace = true, features = ["preserve_order"] }
sha1 = "0.10.1" sha1 = "0.10.1"
......
...@@ -50,7 +50,7 @@ struct State { ...@@ -50,7 +50,7 @@ struct State {
extra_stmts: Vec<Stmt>, extra_stmts: Vec<Stmt>,
rename_map: FxHashMap<Id, Id>, rename_map: swc_rustc_hash::FxHashMap<Id, Id>,
/// Ignored identifiers for `obj` of [MemberExpr]. /// Ignored identifiers for `obj` of [MemberExpr].
ignored: FxHashSet<Id>, ignored: FxHashSet<Id>,
......
...@@ -372,7 +372,7 @@ impl Analyzer<'_> { ...@@ -372,7 +372,7 @@ impl Analyzer<'_> {
} }
} }
#[derive(Debug, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub(crate) enum Key { pub(crate) enum Key {
ModuleEvaluation, ModuleEvaluation,
Export(RcStr), Export(RcStr),
......
use std::{fmt::Write, hash::Hash, path::PathBuf, sync::Arc}; use std::{collections::BTreeMap, fmt::Write, hash::Hash, path::PathBuf, sync::Arc};
use anyhow::Error; use anyhow::Error;
use serde::Deserialize; use serde::Deserialize;
...@@ -192,7 +192,13 @@ fn run(input: PathBuf) { ...@@ -192,7 +192,13 @@ fn run(input: PathBuf) {
.. ..
} = g.split_module(&[], analyzer.items); } = g.split_module(&[], analyzer.items);
writeln!(s, "# Entrypoints\n\n```\n{:#?}\n```\n\n", entrypoints).unwrap(); writeln!(
s,
"# Entrypoints\n\n```\n{:#?}\n```\n\n",
// sort entrypoints for the snapshot
entrypoints.iter().collect::<BTreeMap<_, _>>(),
)
.unwrap();
if !skip_parts { if !skip_parts {
writeln!(s, "# Modules ({})", if is_debug { "dev" } else { "prod" }).unwrap(); writeln!(s, "# Modules ({})", if is_debug { "dev" } else { "prod" }).unwrap();
......
...@@ -385,16 +385,16 @@ graph TD ...@@ -385,16 +385,16 @@ graph TD
Export( Export(
"external1", "external1",
): 10, ): 10,
Exports: 14, Export(
"external2",
): 11,
Export( Export(
"foo", "foo",
): 13, ): 13,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 14,
"external2",
): 11,
} }
``` ```
...@@ -612,16 +612,16 @@ import "__TURBOPACK_PART__" assert { ...@@ -612,16 +612,16 @@ import "__TURBOPACK_PART__" assert {
Export( Export(
"external1", "external1",
): 9, ): 9,
Exports: 12, Export(
"external2",
): 10,
Export( Export(
"foo", "foo",
): 3, ): 3,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 12,
"external2",
): 10,
} }
``` ```
......
...@@ -403,16 +403,16 @@ graph TD ...@@ -403,16 +403,16 @@ graph TD
Export( Export(
"external1", "external1",
): 0, ): 0,
Exports: 14, Export(
"external2",
): 11,
Export( Export(
"foo", "foo",
): 13, ): 13,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 14,
"external2",
): 11,
} }
``` ```
...@@ -631,16 +631,16 @@ import "__TURBOPACK_PART__" assert { ...@@ -631,16 +631,16 @@ import "__TURBOPACK_PART__" assert {
Export( Export(
"external1", "external1",
): 0, ): 0,
Exports: 12, Export(
"external2",
): 10,
Export( Export(
"foo", "foo",
): 4, ): 4,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 12,
"external2",
): 10,
} }
``` ```
......
...@@ -364,8 +364,8 @@ graph TD ...@@ -364,8 +364,8 @@ graph TD
{ {
ModuleEvaluation: 12, ModuleEvaluation: 12,
Export( Export(
"serverHooks", "originalPathname",
): 11, ): 10,
Export( Export(
"patchFetch", "patchFetch",
): 11, ): 11,
...@@ -375,13 +375,13 @@ graph TD ...@@ -375,13 +375,13 @@ graph TD
Export( Export(
"routeModule", "routeModule",
): 14, ): 14,
Exports: 15,
Export( Export(
"workAsyncStorage", "serverHooks",
): 11, ): 11,
Export( Export(
"originalPathname", "workAsyncStorage",
): 10, ): 11,
Exports: 15,
} }
``` ```
...@@ -608,25 +608,25 @@ import "__TURBOPACK_PART__" assert { ...@@ -608,25 +608,25 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 12, ModuleEvaluation: 12,
Export(
"originalPathname",
): 10,
Export( Export(
"patchFetch", "patchFetch",
): 11, ): 11,
Export( Export(
"requestAsyncStorage", "requestAsyncStorage",
): 13, ): 13,
Export(
"serverHooks",
): 15,
Export( Export(
"routeModule", "routeModule",
): 14, ): 14,
Exports: 17, Export(
"serverHooks",
): 15,
Export( Export(
"workAsyncStorage", "workAsyncStorage",
): 16, ): 16,
Export( Exports: 17,
"originalPathname",
): 10,
} }
``` ```
......
...@@ -88,13 +88,13 @@ graph TD ...@@ -88,13 +88,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 3,
Export(
"b",
): 1,
Export( Export(
"a", "a",
): 0, ): 0,
Export(
"b",
): 1,
Exports: 3,
} }
``` ```
...@@ -143,13 +143,13 @@ export { b } from "__TURBOPACK_PART__" assert { ...@@ -143,13 +143,13 @@ export { b } from "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 3,
Export(
"b",
): 1,
Export( Export(
"a", "a",
): 0, ): 0,
Export(
"b",
): 1,
Exports: 3,
} }
``` ```
......
...@@ -392,20 +392,20 @@ graph TD ...@@ -392,20 +392,20 @@ graph TD
``` ```
{ {
Export(
"getChimera",
): 10,
ModuleEvaluation: 11, ModuleEvaluation: 11,
Export(
"initialCat",
): 9,
Exports: 13,
Export( Export(
"cat", "cat",
): 12, ): 12,
Export( Export(
"dogRef", "dogRef",
): 3, ): 3,
Export(
"getChimera",
): 10,
Export(
"initialCat",
): 9,
Exports: 13,
} }
``` ```
...@@ -613,6 +613,12 @@ import "__TURBOPACK_PART__" assert { ...@@ -613,6 +613,12 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Export(
"cat",
): 7,
Export(
"dogRef",
): 3,
Export( Export(
"getChimera", "getChimera",
): 6, ): 6,
...@@ -620,12 +626,6 @@ import "__TURBOPACK_PART__" assert { ...@@ -620,12 +626,6 @@ import "__TURBOPACK_PART__" assert {
"initialCat", "initialCat",
): 5, ): 5,
Exports: 8, Exports: 8,
Export(
"cat",
): 7,
Export(
"dogRef",
): 3,
} }
``` ```
......
...@@ -232,17 +232,17 @@ graph TD ...@@ -232,17 +232,17 @@ graph TD
``` ```
{ {
Export(
"connectHMR",
): 2,
ModuleEvaluation: 5, ModuleEvaluation: 5,
Export( Export(
"addMessageListener", "addMessageListener",
): 3, ): 3,
Exports: 6, Export(
"connectHMR",
): 2,
Export( Export(
"sendMessage", "sendMessage",
): 4, ): 4,
Exports: 6,
} }
``` ```
...@@ -385,17 +385,17 @@ export { sendMessage } from "__TURBOPACK_PART__" assert { ...@@ -385,17 +385,17 @@ export { sendMessage } from "__TURBOPACK_PART__" assert {
``` ```
{ {
Export(
"connectHMR",
): 2,
ModuleEvaluation: 5, ModuleEvaluation: 5,
Export( Export(
"addMessageListener", "addMessageListener",
): 3, ): 3,
Exports: 6, Export(
"connectHMR",
): 2,
Export( Export(
"sendMessage", "sendMessage",
): 4, ): 4,
Exports: 6,
} }
``` ```
......
...@@ -603,31 +603,31 @@ graph TD ...@@ -603,31 +603,31 @@ graph TD
``` ```
{ {
ModuleEvaluation: 17,
Export(
"Postpone",
): 12,
Export(
"createPostponedAbortSignal",
): 16,
Export( Export(
"createPrerenderState", "createPrerenderState",
): 9, ): 9,
ModuleEvaluation: 17, Export(
"formatDynamicAPIAccesses",
): 15,
Export( Export(
"markCurrentScopeAsDynamic", "markCurrentScopeAsDynamic",
): 10, ): 10,
Export(
"usedDynamicAPIs",
): 14,
Export( Export(
"trackDynamicDataAccessed", "trackDynamicDataAccessed",
): 11, ): 11,
Export(
"Postpone",
): 12,
Export( Export(
"trackDynamicFetch", "trackDynamicFetch",
): 13, ): 13,
Export( Export(
"createPostponedAbortSignal", "usedDynamicAPIs",
): 16, ): 14,
Export(
"formatDynamicAPIAccesses",
): 15,
Exports: 18, Exports: 18,
} }
``` ```
...@@ -985,31 +985,31 @@ import "__TURBOPACK_PART__" assert { ...@@ -985,31 +985,31 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 19,
Export(
"Postpone",
): 12,
Export(
"createPostponedAbortSignal",
): 18,
Export( Export(
"createPrerenderState", "createPrerenderState",
): 9, ): 9,
ModuleEvaluation: 19, Export(
"formatDynamicAPIAccesses",
): 16,
Export( Export(
"markCurrentScopeAsDynamic", "markCurrentScopeAsDynamic",
): 10, ): 10,
Export(
"usedDynamicAPIs",
): 15,
Export( Export(
"trackDynamicDataAccessed", "trackDynamicDataAccessed",
): 11, ): 11,
Export(
"Postpone",
): 12,
Export( Export(
"trackDynamicFetch", "trackDynamicFetch",
): 13, ): 13,
Export( Export(
"createPostponedAbortSignal", "usedDynamicAPIs",
): 18, ): 15,
Export(
"formatDynamicAPIAccesses",
): 16,
Exports: 20, Exports: 20,
} }
``` ```
......
...@@ -1013,10 +1013,10 @@ graph TD ...@@ -1013,10 +1013,10 @@ graph TD
Export( Export(
"IPC", "IPC",
): 10, ): 10,
Exports: 12,
Export( Export(
"structuredError", "structuredError",
): 11, ): 11,
Exports: 12,
} }
``` ```
...@@ -1421,10 +1421,10 @@ export { improveConsole as h } from "__TURBOPACK_VAR__" assert { ...@@ -1421,10 +1421,10 @@ export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
Export( Export(
"IPC", "IPC",
): 10, ): 10,
Exports: 12,
Export( Export(
"structuredError", "structuredError",
): 11, ): 11,
Exports: 12,
} }
``` ```
......
...@@ -287,13 +287,13 @@ graph TD ...@@ -287,13 +287,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 6, ModuleEvaluation: 6,
Exports: 8,
Export(
"y",
): 5,
Export( Export(
"x", "x",
): 7, ): 7,
Export(
"y",
): 5,
Exports: 8,
} }
``` ```
...@@ -404,13 +404,13 @@ import "__TURBOPACK_PART__" assert { ...@@ -404,13 +404,13 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 7,
Export(
"y",
): 5,
Export( Export(
"x", "x",
): 6, ): 6,
Export(
"y",
): 5,
Exports: 7,
} }
``` ```
......
...@@ -232,10 +232,10 @@ graph TD ...@@ -232,10 +232,10 @@ graph TD
``` ```
{ {
ModuleEvaluation: 3, ModuleEvaluation: 3,
Exports: 5,
Export( Export(
"run", "run",
): 4, ): 4,
Exports: 5,
} }
``` ```
...@@ -406,10 +406,10 @@ import "__TURBOPACK_PART__" assert { ...@@ -406,10 +406,10 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 3, ModuleEvaluation: 3,
Exports: 5,
Export( Export(
"run", "run",
): 4, ): 4,
Exports: 5,
} }
``` ```
......
...@@ -1013,10 +1013,10 @@ graph TD ...@@ -1013,10 +1013,10 @@ graph TD
Export( Export(
"IPC", "IPC",
): 10, ): 10,
Exports: 12,
Export( Export(
"structuredError", "structuredError",
): 11, ): 11,
Exports: 12,
} }
``` ```
...@@ -1421,10 +1421,10 @@ export { improveConsole as h } from "__TURBOPACK_VAR__" assert { ...@@ -1421,10 +1421,10 @@ export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
Export( Export(
"IPC", "IPC",
): 10, ): 10,
Exports: 12,
Export( Export(
"structuredError", "structuredError",
): 11, ): 11,
Exports: 12,
} }
``` ```
......
...@@ -195,14 +195,14 @@ graph TD ...@@ -195,14 +195,14 @@ graph TD
``` ```
{ {
ModuleEvaluation: 5,
Export( Export(
"getClientComponentLoaderMetrics", "getClientComponentLoaderMetrics",
): 4, ): 4,
ModuleEvaluation: 5,
Exports: 6,
Export( Export(
"wrapClientComponentLoader", "wrapClientComponentLoader",
): 3, ): 3,
Exports: 6,
} }
``` ```
...@@ -331,14 +331,14 @@ export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert { ...@@ -331,14 +331,14 @@ export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 5,
Export( Export(
"getClientComponentLoaderMetrics", "getClientComponentLoaderMetrics",
): 4, ): 4,
ModuleEvaluation: 5,
Exports: 6,
Export( Export(
"wrapClientComponentLoader", "wrapClientComponentLoader",
): 3, ): 3,
Exports: 6,
} }
``` ```
......
...@@ -195,14 +195,14 @@ graph TD ...@@ -195,14 +195,14 @@ graph TD
``` ```
{ {
ModuleEvaluation: 5,
Export( Export(
"getClientComponentLoaderMetrics", "getClientComponentLoaderMetrics",
): 4, ): 4,
ModuleEvaluation: 5,
Exports: 6,
Export( Export(
"wrapClientComponentLoader", "wrapClientComponentLoader",
): 3, ): 3,
Exports: 6,
} }
``` ```
...@@ -331,14 +331,14 @@ export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert { ...@@ -331,14 +331,14 @@ export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 5,
Export( Export(
"getClientComponentLoaderMetrics", "getClientComponentLoaderMetrics",
): 4, ): 4,
ModuleEvaluation: 5,
Exports: 6,
Export( Export(
"wrapClientComponentLoader", "wrapClientComponentLoader",
): 3, ): 3,
Exports: 6,
} }
``` ```
......
...@@ -1032,46 +1032,46 @@ graph TD ...@@ -1032,46 +1032,46 @@ graph TD
``` ```
{ {
ModuleEvaluation: 30, ModuleEvaluation: 30,
Export(
"gap",
): 33,
Export(
"gridAutoRows",
): 37,
Export(
"gridTemplateColumns",
): 41,
Export( Export(
"columnGap", "columnGap",
): 32, ): 32,
Export(
"default",
): 31,
Export(
"gap",
): 33,
Export( Export(
"gridArea", "gridArea",
): 34, ): 34,
Exports: 44, Export(
"gridAutoColumns",
): 35,
Export( Export(
"gridAutoFlow", "gridAutoFlow",
): 36, ): 36,
Export(
"gridAutoRows",
): 37,
Export( Export(
"gridColumn", "gridColumn",
): 38, ): 38,
Export( Export(
"gridAutoColumns", "gridRow",
): 35, ): 39,
Export(
"rowGap",
): 43,
Export(
"gridTemplateRows",
): 42,
Export( Export(
"gridTemplateAreas", "gridTemplateAreas",
): 40, ): 40,
Export( Export(
"default", "gridTemplateColumns",
): 31, ): 41,
Export( Export(
"gridRow", "gridTemplateRows",
): 39, ): 42,
Export(
"rowGap",
): 43,
Exports: 44,
} }
``` ```
...@@ -1748,46 +1748,46 @@ import "__TURBOPACK_PART__" assert { ...@@ -1748,46 +1748,46 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 30, ModuleEvaluation: 30,
Export(
"gap",
): 33,
Export(
"gridAutoRows",
): 37,
Export(
"gridTemplateColumns",
): 41,
Export( Export(
"columnGap", "columnGap",
): 32, ): 32,
Export(
"default",
): 31,
Export(
"gap",
): 33,
Export( Export(
"gridArea", "gridArea",
): 34, ): 34,
Exports: 44, Export(
"gridAutoColumns",
): 35,
Export( Export(
"gridAutoFlow", "gridAutoFlow",
): 36, ): 36,
Export(
"gridAutoRows",
): 37,
Export( Export(
"gridColumn", "gridColumn",
): 38, ): 38,
Export( Export(
"gridAutoColumns", "gridRow",
): 35, ): 39,
Export(
"rowGap",
): 43,
Export(
"gridTemplateRows",
): 42,
Export( Export(
"gridTemplateAreas", "gridTemplateAreas",
): 40, ): 40,
Export( Export(
"default", "gridTemplateColumns",
): 31, ): 41,
Export( Export(
"gridRow", "gridTemplateRows",
): 39, ): 42,
Export(
"rowGap",
): 43,
Exports: 44,
} }
``` ```
......
...@@ -88,13 +88,13 @@ graph TD ...@@ -88,13 +88,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 3,
Export(
"cat",
): 1,
Export( Export(
"DOG", "DOG",
): 0, ): 0,
Export(
"cat",
): 1,
Exports: 3,
} }
``` ```
...@@ -143,13 +143,13 @@ export { cat } from "__TURBOPACK_PART__" assert { ...@@ -143,13 +143,13 @@ export { cat } from "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 3,
Export(
"cat",
): 1,
Export( Export(
"DOG", "DOG",
): 0, ): 0,
Export(
"cat",
): 1,
Exports: 3,
} }
``` ```
......
...@@ -394,22 +394,22 @@ graph TD ...@@ -394,22 +394,22 @@ graph TD
``` ```
{ {
ModuleEvaluation: 11, ModuleEvaluation: 11,
Exports: 16, Export(
"customAlphabet",
): 9,
Export( Export(
"customRandom", "customRandom",
): 12, ): 12,
Export( Export(
"customAlphabet", "nanoid",
): 9, ): 13,
Export( Export(
"random", "random",
): 14, ): 14,
Export( Export(
"urlAlphabet", "urlAlphabet",
): 15, ): 15,
Export( Exports: 16,
"nanoid",
): 13,
} }
``` ```
...@@ -668,22 +668,22 @@ import "__TURBOPACK_PART__" assert { ...@@ -668,22 +668,22 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 11, ModuleEvaluation: 11,
Exports: 16, Export(
"customAlphabet",
): 9,
Export( Export(
"customRandom", "customRandom",
): 12, ): 12,
Export( Export(
"customAlphabet", "nanoid",
): 9, ): 13,
Export( Export(
"random", "random",
): 14, ): 14,
Export( Export(
"urlAlphabet", "urlAlphabet",
): 15, ): 15,
Export( Exports: 16,
"nanoid",
): 13,
} }
``` ```
......
...@@ -641,22 +641,22 @@ graph TD ...@@ -641,22 +641,22 @@ graph TD
``` ```
{ {
ModuleEvaluation: 10, ModuleEvaluation: 10,
Export(
"BubbledError",
): 11,
Export( Export(
"SpanKind", "SpanKind",
): 12, ): 12,
Export(
"isBubbledError",
): 15,
Exports: 16,
Export( Export(
"SpanStatusCode", "SpanStatusCode",
): 13, ): 13,
Export(
"BubbledError",
): 11,
Export( Export(
"getTracer", "getTracer",
): 14, ): 14,
Export(
"isBubbledError",
): 15,
Exports: 16,
} }
``` ```
...@@ -1100,22 +1100,22 @@ import "__TURBOPACK_PART__" assert { ...@@ -1100,22 +1100,22 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 10, ModuleEvaluation: 10,
Export(
"BubbledError",
): 11,
Export( Export(
"SpanKind", "SpanKind",
): 12, ): 12,
Export(
"isBubbledError",
): 15,
Exports: 16,
Export( Export(
"SpanStatusCode", "SpanStatusCode",
): 13, ): 13,
Export(
"BubbledError",
): 11,
Export( Export(
"getTracer", "getTracer",
): 14, ): 14,
Export(
"isBubbledError",
): 15,
Exports: 16,
} }
``` ```
......
...@@ -197,13 +197,13 @@ graph TD ...@@ -197,13 +197,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 7, ModuleEvaluation: 7,
Exports: 8,
Export( Export(
"getEnv", "getEnv",
): 5, ): 5,
Export( Export(
"getEnvWithoutDefaults", "getEnvWithoutDefaults",
): 6, ): 6,
Exports: 8,
} }
``` ```
...@@ -329,13 +329,13 @@ import "__TURBOPACK_PART__" assert { ...@@ -329,13 +329,13 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 7, ModuleEvaluation: 7,
Exports: 8,
Export( Export(
"getEnv", "getEnv",
): 5, ): 5,
Export( Export(
"getEnvWithoutDefaults", "getEnvWithoutDefaults",
): 6, ): 6,
Exports: 8,
} }
``` ```
......
...@@ -130,13 +130,13 @@ graph TD ...@@ -130,13 +130,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 4, ModuleEvaluation: 4,
Exports: 5,
Export(
"runtime",
): 3,
Export( Export(
"GET", "GET",
): 2, ): 2,
Export(
"runtime",
): 3,
Exports: 5,
} }
``` ```
...@@ -215,13 +215,13 @@ import "__TURBOPACK_PART__" assert { ...@@ -215,13 +215,13 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 4, ModuleEvaluation: 4,
Exports: 5,
Export(
"runtime",
): 3,
Export( Export(
"GET", "GET",
): 2, ): 2,
Export(
"runtime",
): 3,
Exports: 5,
} }
``` ```
......
...@@ -235,15 +235,15 @@ graph TD ...@@ -235,15 +235,15 @@ graph TD
{ {
ModuleEvaluation: 5, ModuleEvaluation: 5,
Export( Export(
"order", "a",
): 7, ): 6,
Exports: 8,
Export( Export(
"b", "b",
): 4, ): 4,
Export( Export(
"a", "order",
): 6, ): 7,
Exports: 8,
} }
``` ```
...@@ -373,15 +373,15 @@ import "__TURBOPACK_PART__" assert { ...@@ -373,15 +373,15 @@ import "__TURBOPACK_PART__" assert {
{ {
ModuleEvaluation: 5, ModuleEvaluation: 5,
Export( Export(
"order", "a",
): 7, ): 6,
Exports: 8,
Export( Export(
"b", "b",
): 4, ): 4,
Export( Export(
"a", "order",
): 6, ): 7,
Exports: 8,
} }
``` ```
......
...@@ -251,13 +251,13 @@ graph TD ...@@ -251,13 +251,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 6, ModuleEvaluation: 6,
Exports: 8,
Export(
"b",
): 5,
Export( Export(
"a", "a",
): 7, ): 7,
Export(
"b",
): 5,
Exports: 8,
} }
``` ```
...@@ -391,13 +391,13 @@ import "__TURBOPACK_PART__" assert { ...@@ -391,13 +391,13 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 1, ModuleEvaluation: 1,
Exports: 5,
Export(
"b",
): 3,
Export( Export(
"a", "a",
): 4, ): 4,
Export(
"b",
): 3,
Exports: 5,
} }
``` ```
......
...@@ -235,15 +235,15 @@ graph TD ...@@ -235,15 +235,15 @@ graph TD
{ {
ModuleEvaluation: 5, ModuleEvaluation: 5,
Export( Export(
"order", "a",
): 7, ): 6,
Exports: 8,
Export( Export(
"b", "b",
): 4, ): 4,
Export( Export(
"a", "order",
): 6, ): 7,
Exports: 8,
} }
``` ```
...@@ -373,15 +373,15 @@ import "__TURBOPACK_PART__" assert { ...@@ -373,15 +373,15 @@ import "__TURBOPACK_PART__" assert {
{ {
ModuleEvaluation: 5, ModuleEvaluation: 5,
Export( Export(
"order", "a",
): 7, ): 6,
Exports: 8,
Export( Export(
"b", "b",
): 4, ): 4,
Export( Export(
"a", "order",
): 6, ): 7,
Exports: 8,
} }
``` ```
......
...@@ -88,13 +88,13 @@ graph TD ...@@ -88,13 +88,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 3,
Export(
"b",
): 1,
Export( Export(
"a", "a",
): 0, ): 0,
Export(
"b",
): 1,
Exports: 3,
} }
``` ```
...@@ -143,13 +143,13 @@ export { b } from "__TURBOPACK_PART__" assert { ...@@ -143,13 +143,13 @@ export { b } from "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 2, ModuleEvaluation: 2,
Exports: 3,
Export(
"b",
): 1,
Export( Export(
"a", "a",
): 0, ): 0,
Export(
"b",
): 1,
Exports: 3,
} }
``` ```
......
...@@ -130,13 +130,13 @@ graph TD ...@@ -130,13 +130,13 @@ graph TD
``` ```
{ {
ModuleEvaluation: 3, ModuleEvaluation: 3,
Exports: 4,
Export( Export(
"CHIMERA", "CHIMERA",
): 1, ): 1,
Export( Export(
"DOG", "DOG",
): 2, ): 2,
Exports: 4,
} }
``` ```
...@@ -203,13 +203,13 @@ export { DOG } from "__TURBOPACK_PART__" assert { ...@@ -203,13 +203,13 @@ export { DOG } from "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 3, ModuleEvaluation: 3,
Exports: 4,
Export( Export(
"CHIMERA", "CHIMERA",
): 1, ): 1,
Export( Export(
"DOG", "DOG",
): 2, ): 2,
Exports: 4,
} }
``` ```
......
...@@ -779,42 +779,42 @@ graph TD ...@@ -779,42 +779,42 @@ graph TD
{ {
ModuleEvaluation: 24, ModuleEvaluation: 24,
Export( Export(
"unstable_getServerSideProps", "config",
): 33, ): 26,
Export( Export(
"unstable_getStaticPaths", "default",
): 35, ): 25,
Export(
"getServerSideProps",
): 27,
Export(
"getStaticPaths",
): 28,
Export(
"getStaticProps",
): 29,
Export( Export(
"reportWebVitals", "reportWebVitals",
): 30, ): 30,
Export(
"unstable_getServerProps",
): 32,
Export( Export(
"routeModule", "routeModule",
): 31, ): 31,
Export( Export(
"getStaticProps", "unstable_getServerProps",
): 29, ): 32,
Export( Export(
"config", "unstable_getServerSideProps",
): 26, ): 33,
Export( Export(
"unstable_getStaticParams", "unstable_getStaticParams",
): 34, ): 34,
Export(
"unstable_getStaticPaths",
): 35,
Export( Export(
"unstable_getStaticProps", "unstable_getStaticProps",
): 36, ): 36,
Exports: 37, Exports: 37,
Export(
"default",
): 25,
Export(
"getServerSideProps",
): 27,
Export(
"getStaticPaths",
): 28,
} }
``` ```
...@@ -1342,42 +1342,42 @@ import "__TURBOPACK_PART__" assert { ...@@ -1342,42 +1342,42 @@ import "__TURBOPACK_PART__" assert {
{ {
ModuleEvaluation: 24, ModuleEvaluation: 24,
Export( Export(
"unstable_getServerSideProps", "config",
): 33, ): 26,
Export( Export(
"unstable_getStaticPaths", "default",
): 35, ): 25,
Export(
"getServerSideProps",
): 27,
Export(
"getStaticPaths",
): 28,
Export(
"getStaticProps",
): 29,
Export( Export(
"reportWebVitals", "reportWebVitals",
): 30, ): 30,
Export(
"unstable_getServerProps",
): 32,
Export( Export(
"routeModule", "routeModule",
): 31, ): 31,
Export( Export(
"getStaticProps", "unstable_getServerProps",
): 29, ): 32,
Export( Export(
"config", "unstable_getServerSideProps",
): 26, ): 33,
Export( Export(
"unstable_getStaticParams", "unstable_getStaticParams",
): 34, ): 34,
Export(
"unstable_getStaticPaths",
): 35,
Export( Export(
"unstable_getStaticProps", "unstable_getStaticProps",
): 36, ): 36,
Exports: 37, Exports: 37,
Export(
"default",
): 25,
Export(
"getServerSideProps",
): 27,
Export(
"getStaticPaths",
): 28,
} }
``` ```
......
...@@ -385,16 +385,16 @@ graph TD ...@@ -385,16 +385,16 @@ graph TD
Export( Export(
"external1", "external1",
): 10, ): 10,
Exports: 14, Export(
"external2",
): 11,
Export( Export(
"foo", "foo",
): 13, ): 13,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 14,
"external2",
): 11,
} }
``` ```
...@@ -612,16 +612,16 @@ import "__TURBOPACK_PART__" assert { ...@@ -612,16 +612,16 @@ import "__TURBOPACK_PART__" assert {
Export( Export(
"external1", "external1",
): 9, ): 9,
Exports: 12, Export(
"external2",
): 10,
Export( Export(
"foo", "foo",
): 3, ): 3,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 12,
"external2",
): 10,
} }
``` ```
...@@ -814,16 +814,16 @@ console.log(foobarCopy); ...@@ -814,16 +814,16 @@ console.log(foobarCopy);
Export( Export(
"external1", "external1",
): 9, ): 9,
Exports: 12, Export(
"external2",
): 10,
Export( Export(
"foo", "foo",
): 3, ): 3,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 12,
"external2",
): 10,
} }
``` ```
...@@ -863,16 +863,16 @@ export { external1 as g } from "__TURBOPACK_VAR__" assert { ...@@ -863,16 +863,16 @@ export { external1 as g } from "__TURBOPACK_VAR__" assert {
Export( Export(
"external1", "external1",
): 9, ): 9,
Exports: 12, Export(
"external2",
): 10,
Export( Export(
"foo", "foo",
): 3, ): 3,
Export( Export(
"foobar", "foobar",
): 11, ): 11,
Export( Exports: 12,
"external2",
): 10,
} }
``` ```
......
...@@ -113,10 +113,10 @@ graph TD ...@@ -113,10 +113,10 @@ graph TD
Export( Export(
"effect", "effect",
): 1, ): 1,
Exports: 2,
Export( Export(
"effects", "effects",
): 1, ): 1,
Exports: 2,
} }
``` ```
...@@ -168,10 +168,10 @@ await Promise.resolve(); ...@@ -168,10 +168,10 @@ await Promise.resolve();
Export( Export(
"effect", "effect",
): 2, ): 2,
Exports: 4,
Export( Export(
"effects", "effects",
): 3, ): 3,
Exports: 4,
} }
``` ```
......
...@@ -184,10 +184,10 @@ graph TD ...@@ -184,10 +184,10 @@ graph TD
``` ```
{ {
ModuleEvaluation: 7, ModuleEvaluation: 7,
Exports: 8,
Export( Export(
"GET", "GET",
): 6, ): 6,
Exports: 8,
} }
``` ```
...@@ -301,10 +301,10 @@ import "__TURBOPACK_PART__" assert { ...@@ -301,10 +301,10 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 7, ModuleEvaluation: 7,
Exports: 8,
Export( Export(
"GET", "GET",
): 6, ): 6,
Exports: 8,
} }
``` ```
......
...@@ -228,17 +228,17 @@ graph TD ...@@ -228,17 +228,17 @@ graph TD
``` ```
{ {
Export(
"order",
): 1,
ModuleEvaluation: 4, ModuleEvaluation: 4,
Exports: 6,
Export( Export(
"func", "func",
): 1, ): 1,
Export(
"order",
): 1,
Export( Export(
"shared", "shared",
): 5, ): 5,
Exports: 6,
} }
``` ```
...@@ -345,16 +345,16 @@ import "__TURBOPACK_PART__" assert { ...@@ -345,16 +345,16 @@ import "__TURBOPACK_PART__" assert {
``` ```
{ {
ModuleEvaluation: 4, ModuleEvaluation: 4,
Export(
"order",
): 5,
Exports: 7,
Export( Export(
"func", "func",
): 1, ): 1,
Export(
"order",
): 5,
Export( Export(
"shared", "shared",
): 6, ): 6,
Exports: 7,
} }
``` ```
......
...@@ -13,7 +13,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -13,7 +13,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
; ;
; ;
const StyledButton = /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node_modules$2f40$emotion$2f$styled$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"])("button", { const StyledButton = /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node_modules$2f40$emotion$2f$styled$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"])("button", {
target: "eui1g2r0" target: "e1arus2c0"
})("background:blue;"); })("background:blue;");
function ClassNameButton({ children }) { function ClassNameButton({ children }) {
return /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node_modules$2f40$emotion$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$test$5d$__$28$ecmascript$29$__["jsxDEV"])("button", { return /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node_modules$2f40$emotion$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$test$5d$__$28$ecmascript$29$__["jsxDEV"])("button", {
......
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