mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
perf(turbopack): Enable merging of export fragments (#72813)
### What? Enable single-incoming-edge optimization for module fragments with `ModulePart::Export`. ### Why? It will reduce the number of modules greatly. ### How? Closes PACK-3481
This commit is contained in:
@@ -12,7 +12,10 @@ use swc_core::{
|
||||
atoms::Atom,
|
||||
common::comments::Comments,
|
||||
ecma::{
|
||||
ast::{Decl, ExportSpecifier, Id, ModuleDecl, ModuleItem, Program},
|
||||
ast::{
|
||||
Decl, ExportSpecifier, Id, ModuleDecl, ModuleItem, ObjectLit, Program,
|
||||
PropOrSpread::Prop,
|
||||
},
|
||||
utils::find_pat_ids,
|
||||
},
|
||||
};
|
||||
@@ -310,11 +313,7 @@ async fn parse_actions(module: Vc<Box<dyn Module>>) -> Result<Vc<OptionActionMap
|
||||
{
|
||||
if matches!(
|
||||
&*module.await?.part.await?,
|
||||
ModulePart::Evaluation
|
||||
| ModulePart::Exports
|
||||
| ModulePart::Facade
|
||||
| ModulePart::Internal(..)
|
||||
| ModulePart::InternalEvaluation(..)
|
||||
ModulePart::Evaluation | ModulePart::Facade
|
||||
) {
|
||||
return Ok(OptionActionMap::none());
|
||||
}
|
||||
@@ -381,6 +380,10 @@ fn all_export_names(program: &Program) -> Vec<Atom> {
|
||||
_ => {}
|
||||
},
|
||||
ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(decl)) => {
|
||||
if is_turbopack_internal_var(&decl.with) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for s in decl.specifiers.iter() {
|
||||
match s {
|
||||
ExportSpecifier::Named(named) => {
|
||||
@@ -414,6 +417,26 @@ fn all_export_names(program: &Program) -> Vec<Atom> {
|
||||
}
|
||||
}
|
||||
|
||||
fn is_turbopack_internal_var(with: &Option<Box<ObjectLit>>) -> bool {
|
||||
with.as_deref()
|
||||
.and_then(|v| {
|
||||
v.props.iter().find_map(|p| match p {
|
||||
Prop(prop) => match &**prop {
|
||||
swc_core::ecma::ast::Prop::KeyValue(key_value_prop) => {
|
||||
if key_value_prop.key.as_ident()?.sym == "__turbopack_var__" {
|
||||
Some(key_value_prop.value.as_lit()?.as_bool()?.value)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
_ => None,
|
||||
},
|
||||
_ => None,
|
||||
})
|
||||
})
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Converts our cached [parse_actions] call into a data type suitable for
|
||||
/// collecting into a flat-mapped [FxIndexMap].
|
||||
async fn parse_actions_filter_map(
|
||||
|
||||
@@ -390,7 +390,12 @@ impl<C: Comments> ServerActions<C> {
|
||||
.push((action_name.to_string(), action_id.clone()));
|
||||
|
||||
let register_action_expr = bind_args_to_ref_expr(
|
||||
annotate_ident_as_server_reference(action_ident.clone(), action_id.clone(), arrow.span),
|
||||
annotate_ident_as_server_reference(
|
||||
action_ident.clone(),
|
||||
action_id.clone(),
|
||||
arrow.span,
|
||||
&self.comments,
|
||||
),
|
||||
ids_from_closure
|
||||
.iter()
|
||||
.cloned()
|
||||
@@ -532,6 +537,7 @@ impl<C: Comments> ServerActions<C> {
|
||||
action_ident.clone(),
|
||||
action_id.clone(),
|
||||
function.span,
|
||||
&self.comments,
|
||||
),
|
||||
ids_from_closure
|
||||
.iter()
|
||||
@@ -716,6 +722,7 @@ impl<C: Comments> ServerActions<C> {
|
||||
cache_ident.clone(),
|
||||
reference_id.clone(),
|
||||
arrow.span,
|
||||
&self.comments,
|
||||
);
|
||||
|
||||
// If there're any bound args from the closure, we need to hoist the
|
||||
@@ -788,6 +795,7 @@ impl<C: Comments> ServerActions<C> {
|
||||
cache_ident.clone(),
|
||||
reference_id.clone(),
|
||||
function.span,
|
||||
&self.comments,
|
||||
);
|
||||
|
||||
function.body.visit_mut_with(&mut ClosureReplacer {
|
||||
@@ -1760,6 +1768,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
|
||||
ident.clone(),
|
||||
ref_id.to_string(),
|
||||
ident.span,
|
||||
&self.comments,
|
||||
)),
|
||||
}));
|
||||
}
|
||||
@@ -2166,7 +2175,19 @@ fn annotate_ident_as_server_reference(
|
||||
ident: Ident,
|
||||
action_id: String,
|
||||
original_span: Span,
|
||||
comments: &dyn Comments,
|
||||
) -> Expr {
|
||||
if !original_span.lo.is_dummy() {
|
||||
comments.add_leading(
|
||||
original_span.lo,
|
||||
Comment {
|
||||
kind: CommentKind::Block,
|
||||
span: original_span,
|
||||
text: "#__TURBOPACK_DISABLE_EXPORT_MERGING__".into(),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
// registerServerReference(reference, id, null)
|
||||
Expr::Call(CallExpr {
|
||||
span: original_span,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":"foo"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export function foo() {}
|
||||
export function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo() {}
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function foo() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function foo() {
|
||||
return 'data';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function foo() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function foo() {
|
||||
return 'data';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"00ac840dcaf5e8197cb02b7f3a43c119b7a770b272":"bar"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
'use strict';
|
||||
export function bar() {}
|
||||
export function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ bar() {}
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
bar
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export default $$RSC_SERVER_ACTION_0 = ()=>{};
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = ()=>{};
|
||||
var $$RSC_SERVER_ACTION_0;
|
||||
Object.defineProperty($$RSC_SERVER_ACTION_0, "name", {
|
||||
"value": "default",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function foo() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function foo() {
|
||||
'use strict';
|
||||
};
|
||||
const foo = registerServerReference($$RSC_SERVER_ACTION_0, "006a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function Page() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function Page() {
|
||||
return <p>hello world</p>;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function Page() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function Page() {
|
||||
return <p>hello world</p>;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
import React from 'react';
|
||||
import inter from '@next/font/google/target.css?{"path":"app/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "c0dd5bb6fef67f5ab84327f5164ac2c3111a159337", 0, async function Cached({ children }) {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "c0dd5bb6fef67f5ab84327f5164ac2c3111a159337", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function Cached({ children }) {
|
||||
return <div className={inter.className}>{children}</div>;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import React from 'react';
|
||||
import inter from '@next/font/google/target.css?{"path":"app/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
|
||||
export async function myCoolServerAction() {
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ myCoolServerAction() {
|
||||
return <div className={inter.className}>Hello from server action</div>;
|
||||
}
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
myCoolServerAction
|
||||
]);
|
||||
registerServerReference(myCoolServerAction, "00f8b140eeaaaa6c987593016c19b3fe41bc812c62", null);
|
||||
registerServerReference(myCoolServerAction, "00f8b140eeaaaa6c987593016c19b3fe41bc812c62", null);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import deleteFromDb from 'db';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb($$ACTION_ARG_1);
|
||||
@@ -13,7 +13,7 @@ export function Item({ id1, id2 }) {
|
||||
]));
|
||||
return <Button action={deleteItem}>Delete</Button>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_1 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("4090b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
console.log($$ACTION_ARG_0);
|
||||
console.log($$ACTION_ARG_1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export default async function foo() {}
|
||||
export default async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo() {}
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"00c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export default async function $$RSC_SERVER_ACTION_0() {}
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function $$RSC_SERVER_ACTION_0() {}
|
||||
Object.defineProperty($$RSC_SERVER_ACTION_0, "name", {
|
||||
"value": "default",
|
||||
"writable": false
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
async function foo() {}
|
||||
export default foo;
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo;
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7fac840dcaf5e8197cb02b7f3a43c119b7a770b272":"bar","7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
const foo = async function() {};
|
||||
export default foo;
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo;
|
||||
const bar = async function() {};
|
||||
export { bar };
|
||||
export { /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ bar };
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"00ab21efdafbe611287bc25c0462b1e0510d13e48b":"foo"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export async function foo() {
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo() {
|
||||
async function bar() {}
|
||||
}
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"60c18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export default $$RSC_SERVER_ACTION_0 = async (a, b)=>{
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async (a, b)=>{
|
||||
console.log(a, b);
|
||||
};
|
||||
var $$RSC_SERVER_ACTION_0;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import deleteFromDb from 'db';
|
||||
const v1 = 'v1';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb(v1);
|
||||
@@ -16,7 +16,7 @@ export function Item({ id1, id2 }) {
|
||||
]));
|
||||
return <Button action={deleteItem}>Delete</Button>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_1 = async function g($$ACTION_CLOSURE_BOUND, y, ...z) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function g($$ACTION_CLOSURE_BOUND, y, ...z) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("7f90b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
return $$ACTION_ARG_0 + y + z[0];
|
||||
};
|
||||
@@ -25,7 +25,7 @@ const f = (x)=>{
|
||||
x
|
||||
]));
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_2 = async function f($$ACTION_CLOSURE_BOUND, y, ...z) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function f($$ACTION_CLOSURE_BOUND, y, ...z) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("7f1c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
||||
return $$ACTION_ARG_0 + y + z[0];
|
||||
};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7fab21efdafbe611287bc25c0462b1e0510d13e48b":"foo","7fac840dcaf5e8197cb02b7f3a43c119b7a770b272":"bar"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const foo = async ()=>{};
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo = async ()=>{};
|
||||
const bar = async ()=>{};
|
||||
export { bar };
|
||||
export { /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ bar };
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo,
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import deleteFromDb from 'db';
|
||||
const v1 = 'v1';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb(v1);
|
||||
await deleteFromDb($$ACTION_ARG_1);
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_1 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("4090b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb(v1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND, value2) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND, value2) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("606a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
return $$ACTION_ARG_0 * value2;
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ /* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function myAction(a, b, c) {
|
||||
console.log('a');
|
||||
@@ -7,6 +7,6 @@ var myAction = registerServerReference($$RSC_SERVER_ACTION_0, "706a88810ecce4a4e
|
||||
export default function Page() {
|
||||
return <Button action={myAction}>Delete</Button>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_1 = async function() {};
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function() {};
|
||||
// TODO: should use `action` as function name?
|
||||
export const action = withValidate(registerServerReference($$RSC_SERVER_ACTION_1, "0090b5db271335765a4b0eab01f044b381b5ebd5cd", null));
|
||||
|
||||
@@ -3,7 +3,7 @@ import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc
|
||||
const [foo] = [
|
||||
null
|
||||
];
|
||||
export default foo;
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo;
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { validator, another } from 'auth';
|
||||
const x = 1;
|
||||
export const $$RSC_SERVER_ACTION_0 = async function($$ACTION_CLOSURE_BOUND, z) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function($$ACTION_CLOSURE_BOUND, z) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("606a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
return x + $$ACTION_ARG_0 + z;
|
||||
};
|
||||
@@ -13,7 +13,7 @@ export default function Page() {
|
||||
y
|
||||
])))}/>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_1 = async function() {};
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function() {};
|
||||
validator(registerServerReference($$RSC_SERVER_ACTION_1, "0090b5db271335765a4b0eab01f044b381b5ebd5cd", null));
|
||||
export const $$RSC_SERVER_ACTION_2 = async function() {};
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function() {};
|
||||
another(validator(registerServerReference($$RSC_SERVER_ACTION_2, "001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", null)));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default","7ff14702b5a021dd117f7ec7a3c838f397c2046d3b":"action"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { validator } from 'auth';
|
||||
export const action = validator(async ()=>{});
|
||||
export default $$RSC_SERVER_ACTION_0 = validator(async ()=>{});
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action = validator(async ()=>{});
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = validator(async ()=>{});
|
||||
var $$RSC_SERVER_ACTION_0;
|
||||
Object.defineProperty($$RSC_SERVER_ACTION_0, "name", {
|
||||
"value": "default",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","7c90b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND, a, b, c, d) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND, a, b, c, d) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log(a, b, $$ACTION_ARG_0, c, d);
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_1 = async function action2($$ACTION_CLOSURE_BOUND, a, b, c, d) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function action2($$ACTION_CLOSURE_BOUND, a, b, c, d) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("7c90b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
console.log(a, b, $$ACTION_ARG_0, c, d);
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND, a, b, c, { d }) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND, a, b, c, { d }) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("7c6a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log(a, b, $$ACTION_ARG_0, d);
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import deleteFromDb from 'db';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb($$ACTION_ARG_1);
|
||||
@@ -17,7 +17,7 @@ export function Item({ id1, id2 }) {
|
||||
id2
|
||||
]));
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_1 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("4090b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb($$ACTION_ARG_1);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
const noop = (action)=>action;
|
||||
export const $$RSC_SERVER_ACTION_0 = async function(data) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function(data) {
|
||||
console.log(data);
|
||||
};
|
||||
// TODO: should use `log` as function name?
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
// Rules here:
|
||||
// 1. Each exported function should still be exported, but as a reference `registerServerReference(...)`.
|
||||
// 2. Actual action functions should be renamed to `$$ACTION_...` and got exported.
|
||||
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","00a9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ /* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","00a9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function foo() {
|
||||
console.log(1);
|
||||
};
|
||||
var foo = registerServerReference($$RSC_SERVER_ACTION_0, "006a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null);
|
||||
export { foo };
|
||||
export const $$RSC_SERVER_ACTION_1 = async function bar() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function bar() {
|
||||
console.log(2);
|
||||
};
|
||||
export var bar = registerServerReference($$RSC_SERVER_ACTION_1, "0090b5db271335765a4b0eab01f044b381b5ebd5cd", null);
|
||||
export const $$RSC_SERVER_ACTION_2 = async function baz() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function baz() {
|
||||
console.log(3);
|
||||
};
|
||||
export default registerServerReference($$RSC_SERVER_ACTION_2, "001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", null);
|
||||
export const $$RSC_SERVER_ACTION_3 = async function qux() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_3 = async function qux() {
|
||||
console.log(4);
|
||||
};
|
||||
export const qux = registerServerReference($$RSC_SERVER_ACTION_3, "009ed0cc47abc4e1c64320cf42b74ae60b58c40f00", null);
|
||||
export const $$RSC_SERVER_ACTION_4 = async function quuux() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_4 = async function quuux() {
|
||||
console.log(5);
|
||||
};
|
||||
export const quux = registerServerReference($$RSC_SERVER_ACTION_4, "00a9b2939c1f39073a6bed227fd20233064c8b7869", null);
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
let a, f;
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action2($$ACTION_CLOSURE_BOUND, e) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action2($$ACTION_CLOSURE_BOUND, e) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2, $$ACTION_ARG_3] = await decryptActionBoundArgs("606a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log(a, $$ACTION_ARG_0, $$ACTION_ARG_1, e, $$ACTION_ARG_2, $$ACTION_ARG_3);
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_1 = async function action3($$ACTION_CLOSURE_BOUND, e) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function action3($$ACTION_CLOSURE_BOUND, e) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("6090b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
$$ACTION_ARG_0(e);
|
||||
console.log(a, $$ACTION_ARG_1, $$ACTION_ARG_2, e);
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_2 = async function action1($$ACTION_CLOSURE_BOUND, d) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function action1($$ACTION_CLOSURE_BOUND, d) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
||||
let f;
|
||||
console.log(...window, {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7f28baf972d345b86b747ad0df73d75a0088a42214":"dec","7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const dec = async (value)=>{
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ dec = async (value)=>{
|
||||
return value - 1;
|
||||
};
|
||||
// Test case for https://github.com/vercel/next.js/issues/54655
|
||||
export default dec;
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ dec;
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
dec,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// app/send.ts
|
||||
/* __next_internal_action_entry_do_not_use__ {"70e10665baac148856374b2789aceb970f66fec33e":"myAction"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export async function myAction(a, b, c) {
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ myAction(a, b, c) {
|
||||
console.log('a');
|
||||
}
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","7f0090eaf4e1f08a2d94f6be401e54a2ded399b87c":"action0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
let a, f;
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action2($$ACTION_CLOSURE_BOUND, e) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action2($$ACTION_CLOSURE_BOUND, e) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2, $$ACTION_ARG_3] = await decryptActionBoundArgs("606a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log(a, $$ACTION_ARG_0, $$ACTION_ARG_1, e, $$ACTION_ARG_2, $$ACTION_ARG_3);
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_1 = async function action3($$ACTION_CLOSURE_BOUND, e) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function action3($$ACTION_CLOSURE_BOUND, e) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("6090b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
$$ACTION_ARG_0(e);
|
||||
console.log(a, $$ACTION_ARG_1, $$ACTION_ARG_2, e);
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_2 = async function action1($$ACTION_CLOSURE_BOUND, d) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function action1($$ACTION_CLOSURE_BOUND, d) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
||||
let f;
|
||||
console.log(...window, {
|
||||
@@ -32,7 +32,7 @@ export const $$RSC_SERVER_ACTION_2 = async function action1($$ACTION_CLOSURE_BOU
|
||||
]))
|
||||
];
|
||||
};
|
||||
export async function action0(b, c, ...g) {
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action0(b, c, ...g) {
|
||||
return registerServerReference($$RSC_SERVER_ACTION_2, "601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", null).bind(null, encryptActionBoundArgs("601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", [
|
||||
b,
|
||||
c,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7fabf760c735ba66c4c26a2913864dd7e28fb88a91":"action2","7ff14702b5a021dd117f7ec7a3c838f397c2046d3b":"action"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const action = {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action = {
|
||||
async f (x) {
|
||||
;
|
||||
(()=>{
|
||||
@@ -8,7 +8,7 @@ export const action = {
|
||||
})();
|
||||
}
|
||||
}.f;
|
||||
export const action2 = new class X {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action2 = new class X {
|
||||
async f(x) {
|
||||
;
|
||||
(()=>{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log($$ACTION_ARG_0.at(1), $$ACTION_ARG_1, $$ACTION_ARG_1.current);
|
||||
console.log($$ACTION_ARG_2.push.call($$ACTION_ARG_2, 5));
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
const v = 'world';
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function fn() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function fn() {
|
||||
return 'hello, ' + v;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -8,9 +8,9 @@ Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"value": "foo",
|
||||
"writable": false
|
||||
});
|
||||
const foo = registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
const foo = /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
export { bar };
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "80951c375b4a6a6e89d67b743ec5808127cfde405d", 0, async function bar() {
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "80951c375b4a6a6e89d67b743ec5808127cfde405d", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function bar() {
|
||||
return 'bar';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_1, "name", {
|
||||
@@ -22,7 +22,7 @@ var bar = registerServerReference($$RSC_SERVER_CACHE_1, "80951c375b4a6a6e89d67b7
|
||||
const qux = async function qux() {
|
||||
return 'qux';
|
||||
};
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "8069348c79fce073bae2f70f139565a2fda1c74c74", 0, async function baz() {
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "8069348c79fce073bae2f70f139565a2fda1c74c74", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function baz() {
|
||||
return qux() + 'baz';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_2, "name", {
|
||||
@@ -37,6 +37,6 @@ Object.defineProperty($$RSC_SERVER_CACHE_3, "name", {
|
||||
"value": "quux",
|
||||
"writable": false
|
||||
});
|
||||
const quux = registerServerReference($$RSC_SERVER_CACHE_3, "8012a8d21b6362b4cc8f5b15560525095bc48dba80", null);
|
||||
const quux = /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ registerServerReference($$RSC_SERVER_CACHE_3, "8012a8d21b6362b4cc8f5b15560525095bc48dba80", null);
|
||||
export { foo, baz };
|
||||
export default quux;
|
||||
|
||||
@@ -8,4 +8,4 @@ Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"value": "my_fn",
|
||||
"writable": false
|
||||
});
|
||||
export const my_fn = registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
export const my_fn = /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"8012a8d21b6362b4cc8f5b15560525095bc48dba80":"$$RSC_SERVER_CACHE_3","803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","80951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1","c069348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function foo() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function foo() {
|
||||
return 'data A';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
@@ -9,7 +9,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"writable": false
|
||||
});
|
||||
export var foo = registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "80951c375b4a6a6e89d67b743ec5808127cfde405d", 0, async function bar() {
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "80951c375b4a6a6e89d67b743ec5808127cfde405d", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function bar() {
|
||||
return 'data B';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_1, "name", {
|
||||
@@ -17,7 +17,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_1, "name", {
|
||||
"writable": false
|
||||
});
|
||||
export var bar = registerServerReference($$RSC_SERVER_CACHE_1, "80951c375b4a6a6e89d67b743ec5808127cfde405d", null);
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "c069348c79fce073bae2f70f139565a2fda1c74c74", 0, async function Cached({ children }) {
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "c069348c79fce073bae2f70f139565a2fda1c74c74", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function Cached({ children }) {
|
||||
return children;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_2, "name", {
|
||||
@@ -25,7 +25,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_2, "name", {
|
||||
"writable": false
|
||||
});
|
||||
export default registerServerReference($$RSC_SERVER_CACHE_2, "c069348c79fce073bae2f70f139565a2fda1c74c74", null);
|
||||
export var $$RSC_SERVER_CACHE_3 = $$cache__("default", "8012a8d21b6362b4cc8f5b15560525095bc48dba80", 0, async function baz() {
|
||||
export var $$RSC_SERVER_CACHE_3 = $$cache__("default", "8012a8d21b6362b4cc8f5b15560525095bc48dba80", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function baz() {
|
||||
return 'data C';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_3, "name", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function fn() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function fn() {
|
||||
return 'foo';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function foo() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("x", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function foo() {
|
||||
return 'data';
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"c03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "c03128060c414d59f8552e4788b846c0d2b7f74743", 2, async function fn([$$ACTION_ARG_0, $$ACTION_ARG_1]) {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "c03128060c414d59f8552e4788b846c0d2b7f74743", 2, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function fn([$$ACTION_ARG_0, $$ACTION_ARG_1]) {
|
||||
console.log($$ACTION_ARG_0);
|
||||
return {
|
||||
foo: $$ACTION_ARG_1
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"001ab723c80dcca470e0410b4b2a2fc2bf21f41476":"c","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","006e7bc104e4d6e7fda190c4a51be969cfd0be6d6d":"a","00d1f7eb64271d7c601dfef7d4d7053de1c2ca4338":"b"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export async function a() {}
|
||||
export async function b() {}
|
||||
export async function c() {}
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ a() {}
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ b() {}
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ c() {}
|
||||
function d() {}
|
||||
export const $$RSC_SERVER_ACTION_0 = async function e() {};
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function e() {};
|
||||
function Foo() {
|
||||
var e = registerServerReference($$RSC_SERVER_ACTION_0, "006a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "e03128060c414d59f8552e4788b846c0d2b7f74743", 2, async function cache([$$ACTION_ARG_0, $$ACTION_ARG_1], e) {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "e03128060c414d59f8552e4788b846c0d2b7f74743", 2, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function cache([$$ACTION_ARG_0, $$ACTION_ARG_1], e) {
|
||||
const f = $$ACTION_ARG_0 + e;
|
||||
return [
|
||||
f,
|
||||
@@ -14,7 +14,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"value": "cache",
|
||||
"writable": false
|
||||
});
|
||||
export const $$RSC_SERVER_ACTION_2 = async function action($$ACTION_CLOSURE_BOUND, c) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function action($$ACTION_CLOSURE_BOUND, c) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
||||
const d = $$ACTION_ARG_0 + $$ACTION_ARG_1 + c;
|
||||
var cache = $$RSC_SERVER_REF_1.bind(null, encryptActionBoundArgs("e03128060c414d59f8552e4788b846c0d2b7f74743", [
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","c0951c375b4a6a6e89d67b743ec5808127cfde405d":"$$RSC_SERVER_CACHE_1"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function fn($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function fn($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log($$ACTION_ARG_0);
|
||||
return {
|
||||
foo: $$ACTION_ARG_1
|
||||
};
|
||||
};
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "c0951c375b4a6a6e89d67b743ec5808127cfde405d", 0, async function Component({ foo }) {
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "c0951c375b4a6a6e89d67b743ec5808127cfde405d", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function Component({ foo }) {
|
||||
const a = 123;
|
||||
var fn = registerServerReference($$RSC_SERVER_ACTION_0, "406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null).bind(null, encryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", [
|
||||
a,
|
||||
|
||||
@@ -20,4 +20,4 @@ async function Component({ foo }) {
|
||||
const data = await fn();
|
||||
return <div>{data}</div>;
|
||||
}
|
||||
var $$RSC_SERVER_REF_1 = registerServerReference($$RSC_SERVER_CACHE_0, "c03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
var $$RSC_SERVER_REF_1 = /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ registerServerReference($$RSC_SERVER_CACHE_0, "c03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
|
||||
@@ -3,11 +3,11 @@ import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
import { Foo } from './client';
|
||||
const secret = 'my password is qwerty123';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
console.log(secret, $$ACTION_ARG_0);
|
||||
};
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "e0951c375b4a6a6e89d67b743ec5808127cfde405d", 0, async function getCachedRandom(x, children) {
|
||||
export var $$RSC_SERVER_CACHE_1 = $$cache__("default", "e0951c375b4a6a6e89d67b743ec5808127cfde405d", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function getCachedRandom(x, children) {
|
||||
return {
|
||||
x,
|
||||
y: Math.random(),
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","00a9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { Form } from './form';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function foo() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function foo() {
|
||||
return 'declarator arrow function expression';
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_1 = async function bar() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function bar() {
|
||||
return 'function declaration';
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_2 = async function action() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function action() {
|
||||
return 'arrow function expression';
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_3 = async function action() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_3 = async function action() {
|
||||
return 'anonymous function expression';
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_4 = async function baz() {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_4 = async function baz() {
|
||||
return 'named function expression';
|
||||
};
|
||||
export default function Page() {
|
||||
|
||||
@@ -7,7 +7,7 @@ function Foo() {
|
||||
console.log(v);
|
||||
return v;
|
||||
}
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function bar() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function bar() {
|
||||
return <Foo/>;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This is for testing the "information byte" of Server Action / Cache IDs.
|
||||
// Should be 1 110000 0, which is "e0" in hex.
|
||||
/* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","7c9ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","7ea9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","ff471a5eb0be1c31686dd4ba938a80328b80b1615d":"$$RSC_SERVER_CACHE_5","ff69348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ /* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","7c9ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","7ea9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","ff471a5eb0be1c31686dd4ba938a80328b80b1615d":"$$RSC_SERVER_CACHE_5","ff69348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "e03128060c414d59f8552e4788b846c0d2b7f74743", 0, async function f1(a, b) {
|
||||
@@ -15,7 +15,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
});
|
||||
var f1 = registerServerReference($$RSC_SERVER_CACHE_0, "e03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
export const // Should be 0 110000 0, which is "60" in hex.
|
||||
$$RSC_SERVER_ACTION_1 = async function f2(a, b) {
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function f2(a, b) {
|
||||
return [
|
||||
a,
|
||||
b
|
||||
@@ -23,7 +23,7 @@ $$RSC_SERVER_ACTION_1 = async function f2(a, b) {
|
||||
};
|
||||
var f2 = registerServerReference($$RSC_SERVER_ACTION_1, "6090b5db271335765a4b0eab01f044b381b5ebd5cd", null);
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "ff69348c79fce073bae2f70f139565a2fda1c74c74", 0, // Should be 1 111111 1, which is "ff" in hex.
|
||||
async function f3(a, b, ...rest) {
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function f3(a, b, ...rest) {
|
||||
return [
|
||||
a,
|
||||
b,
|
||||
@@ -36,7 +36,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_2, "name", {
|
||||
});
|
||||
var f3 = registerServerReference($$RSC_SERVER_CACHE_2, "ff69348c79fce073bae2f70f139565a2fda1c74c74", null);
|
||||
export const // Should be 0 111110 0, which is "7c" in hex.
|
||||
$$RSC_SERVER_ACTION_3 = async function f4(a, b, c, d, e) {
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_3 = async function f4(a, b, c, d, e) {
|
||||
return [
|
||||
a,
|
||||
b,
|
||||
@@ -47,7 +47,7 @@ $$RSC_SERVER_ACTION_3 = async function f4(a, b, c, d, e) {
|
||||
};
|
||||
var f4 = registerServerReference($$RSC_SERVER_ACTION_3, "7c9ed0cc47abc4e1c64320cf42b74ae60b58c40f00", null);
|
||||
export const // Should be 0 111111 0, which is "7e" in hex.
|
||||
$$RSC_SERVER_ACTION_4 = async function f4(a, b, c, d, e, f) {
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_4 = async function f4(a, b, c, d, e, f) {
|
||||
return [
|
||||
a,
|
||||
b,
|
||||
@@ -59,7 +59,7 @@ $$RSC_SERVER_ACTION_4 = async function f4(a, b, c, d, e, f) {
|
||||
};
|
||||
var f4 = registerServerReference($$RSC_SERVER_ACTION_4, "7ea9b2939c1f39073a6bed227fd20233064c8b7869", null);
|
||||
export var $$RSC_SERVER_CACHE_5 = $$cache__("default", "ff471a5eb0be1c31686dd4ba938a80328b80b1615d", 0, // Should be 1 111111 1, which is "ff" in hex.
|
||||
async function f5(a, b, c, d, e, f, g) {
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function f5(a, b, c, d, e, f, g) {
|
||||
return [
|
||||
a,
|
||||
b,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { redirect } from 'next/navigation';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action(formData) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action(formData) {
|
||||
redirect('/header?name=' + formData.get('name') + '&hidden-info=' + formData.get('hidden-info'));
|
||||
};
|
||||
var action = registerServerReference($$RSC_SERVER_ACTION_0, "406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
// Should be 0 111000 0, which is "70" in hex.
|
||||
export async function action(a, b, c) {
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action(a, b, c) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
@@ -10,7 +10,7 @@ export async function action(a, b, c) {
|
||||
</div>;
|
||||
}
|
||||
// Should be 0 111111 1, which is "7f" in hex.
|
||||
export default async function action2(a, b, ...c) {
|
||||
export default async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action2(a, b, ...c) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
@@ -18,13 +18,13 @@ export default async function action2(a, b, ...c) {
|
||||
</div>;
|
||||
}
|
||||
// Should be 0 111111 1, which is "60" in hex.
|
||||
export async function action3(a, b) {
|
||||
export async function /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ action3(a, b) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
</div>;
|
||||
}
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "e03128060c414d59f8552e4788b846c0d2b7f74743", 0, async function cache(a, b) {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "e03128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function cache(a, b) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
|
||||
@@ -8,4 +8,4 @@ export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "f03128060c414d59f8552e47
|
||||
{c}
|
||||
</div>;
|
||||
});
|
||||
export default registerServerReference($$RSC_SERVER_CACHE_0, "f03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
export default /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ registerServerReference($$RSC_SERVER_CACHE_0, "f03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import deleteFromDb from 'db';
|
||||
const v1 = 'v1';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function deleteItem($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2, $$ACTION_ARG_3] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0);
|
||||
await deleteFromDb(v1);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"f03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "f03128060c414d59f8552e4788b846c0d2b7f74743", 0, async function(a, b, c) {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "f03128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function(a, b, c) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","609ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","7090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export const $$RSC_SERVER_ACTION_1 = async function $$RSC_SERVER_ACTION_0(a, b, c) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function $$RSC_SERVER_ACTION_0(a, b, c) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
@@ -13,14 +13,14 @@ Object.defineProperty($$RSC_SERVER_ACTION_0, "name", {
|
||||
"value": "default",
|
||||
"writable": false
|
||||
});
|
||||
export const $$RSC_SERVER_ACTION_2 = async function foo(a, b) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function foo(a, b) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
</div>;
|
||||
};
|
||||
export var foo = registerServerReference($$RSC_SERVER_ACTION_2, "601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", null);
|
||||
export const $$RSC_SERVER_ACTION_3 = async function bar(a, b) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_3 = async function bar(a, b) {
|
||||
return <div>
|
||||
{a}
|
||||
{b}
|
||||
|
||||
@@ -8,7 +8,7 @@ Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"value": "fn1",
|
||||
"writable": false
|
||||
});
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "c069348c79fce073bae2f70f139565a2fda1c74c74", 2, async function // Should be 1 100000 0, which is "c0" in hex (counts as one param,
|
||||
export var $$RSC_SERVER_CACHE_2 = $$cache__("default", "c069348c79fce073bae2f70f139565a2fda1c74c74", 2, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function // Should be 1 100000 0, which is "c0" in hex (counts as one param,
|
||||
// because of the encrypted bound args param)
|
||||
fn2([$$ACTION_ARG_0, $$ACTION_ARG_1]) {
|
||||
return $$ACTION_ARG_0 + $$ACTION_ARG_1;
|
||||
@@ -17,13 +17,13 @@ Object.defineProperty($$RSC_SERVER_CACHE_2, "name", {
|
||||
"value": "fn2",
|
||||
"writable": false
|
||||
});
|
||||
export const $$RSC_SERVER_ACTION_4 = async function // Should be 0 110000 0, which is "60" in hex (counts as two params,
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_4 = async function // Should be 0 110000 0, which is "60" in hex (counts as two params,
|
||||
// because of the encrypted bound args param)
|
||||
fn3($$ACTION_CLOSURE_BOUND, c) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("60a9b2939c1f39073a6bed227fd20233064c8b7869", $$ACTION_CLOSURE_BOUND);
|
||||
return $$ACTION_ARG_0 + $$ACTION_ARG_1 + c;
|
||||
};
|
||||
export const $$RSC_SERVER_ACTION_5 = async function // Should be 0 100000 0, which is "40" in hex (counts as one param,
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_5 = async function // Should be 0 100000 0, which is "40" in hex (counts as one param,
|
||||
// because of the encrypted bound args param)
|
||||
fn4($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("409651a98a9dccd7ffbe72ff5cf0f38546ca1252ab", $$ACTION_CLOSURE_BOUND);
|
||||
@@ -47,5 +47,5 @@ export async function Component(a) {
|
||||
b
|
||||
]))}/>;
|
||||
}
|
||||
var $$RSC_SERVER_REF_1 = registerServerReference($$RSC_SERVER_CACHE_0, "e03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
var $$RSC_SERVER_REF_1 = /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ registerServerReference($$RSC_SERVER_CACHE_0, "e03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
||||
var $$RSC_SERVER_REF_3 = registerServerReference($$RSC_SERVER_CACHE_2, "c069348c79fce073bae2f70f139565a2fda1c74c74", null);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function foo() {});
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function foo() {});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"value": "foo",
|
||||
"writable": false
|
||||
});
|
||||
export const $$RSC_SERVER_ACTION_1 = async function bar() {};
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function bar() {};
|
||||
export const obj = {
|
||||
foo: registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null),
|
||||
bar: registerServerReference($$RSC_SERVER_ACTION_1, "0090b5db271335765a4b0eab01f044b381b5ebd5cd", null)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"401c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","c03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "c03128060c414d59f8552e4788b846c0d2b7f74743", 2, async function foo([$$ACTION_ARG_0, $$ACTION_ARG_1]) {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "c03128060c414d59f8552e4788b846c0d2b7f74743", 2, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function foo([$$ACTION_ARG_0, $$ACTION_ARG_1]) {
|
||||
return $$ACTION_ARG_0 * $$ACTION_ARG_1;
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
"value": "foo",
|
||||
"writable": false
|
||||
});
|
||||
export const $$RSC_SERVER_ACTION_2 = async function bar($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function bar($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0] = await decryptActionBoundArgs("401c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
||||
console.log($$ACTION_ARG_0);
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, async function fetch1() {
|
||||
export var $$RSC_SERVER_CACHE_0 = $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ async function fetch1() {
|
||||
return fetch('https://example.com').then((res)=>res.json());
|
||||
});
|
||||
Object.defineProperty($$RSC_SERVER_CACHE_0, "name", {
|
||||
|
||||
@@ -12,7 +12,7 @@ function x() {
|
||||
const f2 = 1;
|
||||
const g201 = 1;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function action($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2, $$ACTION_ARG_3, $$ACTION_ARG_4, $$ACTION_ARG_5] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
const f17 = 1;
|
||||
if (true) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"401c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","406a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","4090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","409ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
import deleteFromDb from 'db';
|
||||
export const $$RSC_SERVER_ACTION_0 = async function deleteItem1($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_0 = async function deleteItem1($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("406a88810ecce4a4e8b59d53b8327d7e98bbf251d7", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0.id, $$ACTION_ARG_0?.foo, $$ACTION_ARG_0.bar.baz, $$ACTION_ARG_0[$$ACTION_ARG_1, $$ACTION_ARG_2]);
|
||||
};
|
||||
@@ -13,7 +13,7 @@ export function Item1(product, foo, bar) {
|
||||
]));
|
||||
return <Button action={a}>Delete</Button>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_1 = async function deleteItem2($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_1 = async function deleteItem2($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("4090b5db271335765a4b0eab01f044b381b5ebd5cd", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0.id, $$ACTION_ARG_0?.foo, $$ACTION_ARG_0.bar.baz, $$ACTION_ARG_0[$$ACTION_ARG_1, $$ACTION_ARG_2]);
|
||||
};
|
||||
@@ -25,7 +25,7 @@ export function Item2(product, foo, bar) {
|
||||
]));
|
||||
return <Button action={deleteItem2}>Delete</Button>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_2 = async function deleteItem3($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_2 = async function deleteItem3($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("401c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0.id, $$ACTION_ARG_0?.foo, $$ACTION_ARG_0.bar.baz, $$ACTION_ARG_0[$$ACTION_ARG_1, $$ACTION_ARG_2]);
|
||||
};
|
||||
@@ -37,7 +37,7 @@ export function Item3(product, foo, bar) {
|
||||
]));
|
||||
return <Button action={deleteItem3}>Delete</Button>;
|
||||
}
|
||||
export const $$RSC_SERVER_ACTION_3 = async function deleteItem4($$ACTION_CLOSURE_BOUND) {
|
||||
export const /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ $$RSC_SERVER_ACTION_3 = async function deleteItem4($$ACTION_CLOSURE_BOUND) {
|
||||
var [$$ACTION_ARG_0, $$ACTION_ARG_1, $$ACTION_ARG_2] = await decryptActionBoundArgs("409ed0cc47abc4e1c64320cf42b74ae60b58c40f00", $$ACTION_CLOSURE_BOUND);
|
||||
await deleteFromDb($$ACTION_ARG_0.id, $$ACTION_ARG_0?.foo, $$ACTION_ARG_0.bar.baz, $$ACTION_ARG_0[$$ACTION_ARG_1, $$ACTION_ARG_2]);
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
/*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ /* __next_internal_action_entry_do_not_use__ {"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
export const $$RSC_SERVER_ACTION_0 = async function myAction(a, b, c) {
|
||||
// comment
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
/* __next_internal_action_entry_do_not_use__ {"7f050e3854b72b19e3c7e3966a67535543a90bf7e0":"baz","7fab21efdafbe611287bc25c0462b1e0510d13e48b":"foo","7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
||||
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
||||
async function foo() {}
|
||||
export { foo };
|
||||
export { /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ foo };
|
||||
async function bar() {}
|
||||
export { bar as baz };
|
||||
export { /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ bar as baz };
|
||||
async function qux() {}
|
||||
export { qux as default };
|
||||
export { /*#__TURBOPACK_DISABLE_EXPORT_MERGING__*/ qux as default };
|
||||
import { ensureServerEntryExports } from "private-next-rsc-action-validate";
|
||||
ensureServerEntryExports([
|
||||
foo,
|
||||
|
||||
@@ -86,15 +86,34 @@ impl EcmascriptModulePartAsset {
|
||||
/// of a pointer to the full module and the [ModulePart] pointing the part
|
||||
/// of the module.
|
||||
#[turbo_tasks::function]
|
||||
pub fn new(
|
||||
pub async fn new(
|
||||
module: ResolvedVc<EcmascriptModuleAsset>,
|
||||
part: ResolvedVc<ModulePart>,
|
||||
) -> Vc<Self> {
|
||||
EcmascriptModulePartAsset {
|
||||
full_module: module,
|
||||
part,
|
||||
) -> Result<Vc<Self>> {
|
||||
if matches!(
|
||||
&*part.await?,
|
||||
ModulePart::Internal(..)
|
||||
| ModulePart::InternalEvaluation(..)
|
||||
| ModulePart::Facade
|
||||
| ModulePart::Exports
|
||||
| ModulePart::Evaluation
|
||||
) {
|
||||
return Ok(EcmascriptModulePartAsset {
|
||||
full_module: module,
|
||||
part,
|
||||
}
|
||||
.cell());
|
||||
}
|
||||
.cell()
|
||||
|
||||
// This is a workaround to avoid creating duplicate assets for internal parts.
|
||||
let split_result = split_module(*module).await?;
|
||||
let part_id = get_part_id(&split_result, *part).await?;
|
||||
|
||||
Ok(EcmascriptModulePartAsset {
|
||||
full_module: module,
|
||||
part: ModulePart::internal(part_id).to_resolved().await?,
|
||||
}
|
||||
.cell())
|
||||
}
|
||||
|
||||
#[turbo_tasks::function]
|
||||
|
||||
@@ -34,11 +34,12 @@ use super::{
|
||||
};
|
||||
use crate::{magic_identifier, tree_shake::optimizations::GraphOptimizer};
|
||||
|
||||
const FLAG_DISABLE_EXPORT_MERGING: &str = "TURBOPACK_DISABLE_EXPORT_MERGING";
|
||||
/// The id of an item
|
||||
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub(crate) enum ItemId {
|
||||
Group(ItemIdGroupKind),
|
||||
Item { index: usize, kind: ItemIdItemKind },
|
||||
Group(ItemIdGroupKind),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
@@ -126,6 +127,9 @@ pub(crate) struct ItemData {
|
||||
/// See https://github.com/vercel/next.js/pull/71234#issuecomment-2409810084 for the problematic
|
||||
/// test case.
|
||||
pub explicit_deps: Vec<ItemId>,
|
||||
|
||||
/// Server actions breaks when we merge exports.
|
||||
pub disable_export_merging: bool,
|
||||
}
|
||||
|
||||
impl fmt::Debug for ItemData {
|
||||
@@ -160,6 +164,7 @@ impl Default for ItemData {
|
||||
export: Default::default(),
|
||||
binding_source: Default::default(),
|
||||
explicit_deps: Default::default(),
|
||||
disable_export_merging: Default::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -706,6 +711,7 @@ impl DepGraph {
|
||||
|
||||
let optimizer = GraphOptimizer {
|
||||
graph_ix: &self.g.graph_ix,
|
||||
data,
|
||||
};
|
||||
loop {
|
||||
if !optimizer.merge_single_incoming_nodes(&mut condensed) {
|
||||
@@ -794,13 +800,23 @@ impl DepGraph {
|
||||
match item {
|
||||
ModuleDecl::ExportDecl(item) => match &item.decl {
|
||||
Decl::Fn(FnDecl { ident, .. }) | Decl::Class(ClassDecl { ident, .. }) => {
|
||||
exports.push((ident.to_id(), ident.sym.clone()));
|
||||
exports.push((
|
||||
ident.to_id(),
|
||||
ident.sym.clone(),
|
||||
comments.has_flag(ident.span().lo, FLAG_DISABLE_EXPORT_MERGING),
|
||||
));
|
||||
}
|
||||
Decl::Var(v) => {
|
||||
for decl in &v.decls {
|
||||
let disable_export_merging = comments
|
||||
.has_flag(decl.name.span().lo, FLAG_DISABLE_EXPORT_MERGING)
|
||||
|| decl.init.as_deref().map_or(false, |e| {
|
||||
comments.has_flag(e.span().lo, FLAG_DISABLE_EXPORT_MERGING)
|
||||
});
|
||||
|
||||
let ids: Vec<Id> = find_pat_ids(&decl.name);
|
||||
for id in ids {
|
||||
exports.push((id.clone(), id.0));
|
||||
exports.push((id.clone(), id.0, disable_export_merging));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -871,7 +887,7 @@ impl DepGraph {
|
||||
local = local.into_private();
|
||||
}
|
||||
|
||||
exports.push((local.to_id(), exported.atom().clone()));
|
||||
exports.push((local.to_id(), exported.atom().clone(), false));
|
||||
|
||||
if let Some(src) = &item.src {
|
||||
let id = ItemId::Item {
|
||||
@@ -988,7 +1004,7 @@ impl DepGraph {
|
||||
items.insert(id, data);
|
||||
}
|
||||
|
||||
exports.push((default_var.to_id(), "default".into()));
|
||||
exports.push((default_var.to_id(), "default".into(), false));
|
||||
}
|
||||
ModuleDecl::ExportDefaultExpr(export) => {
|
||||
let default_var =
|
||||
@@ -1047,7 +1063,7 @@ impl DepGraph {
|
||||
{
|
||||
// For export default __TURBOPACK__default__export__
|
||||
|
||||
exports.push((default_var.to_id(), "default".into()));
|
||||
exports.push((default_var.to_id(), "default".into(), false));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1243,6 +1259,7 @@ impl DepGraph {
|
||||
});
|
||||
vars.write.extend(decl_ids.iter().cloned());
|
||||
let content = ModuleItem::Stmt(Stmt::Decl(Decl::Var(var_decl)));
|
||||
|
||||
items.insert(
|
||||
id,
|
||||
ItemData {
|
||||
@@ -1365,7 +1382,7 @@ impl DepGraph {
|
||||
);
|
||||
}
|
||||
|
||||
for (local, export_name) in exports {
|
||||
for (local, export_name, disable_export_merging) in exports {
|
||||
let id = ItemId::Group(ItemIdGroupKind::Export(local.clone(), export_name.clone()));
|
||||
ids.push(id.clone());
|
||||
items.insert(
|
||||
@@ -1389,6 +1406,7 @@ impl DepGraph {
|
||||
})),
|
||||
read_vars: [local.clone()].into_iter().collect(),
|
||||
export: Some(export_name),
|
||||
disable_export_merging,
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
use std::ops::Index;
|
||||
|
||||
use petgraph::{visit::EdgeRef, Direction, Graph};
|
||||
use rustc_hash::FxHashMap;
|
||||
use turbo_tasks::FxIndexSet;
|
||||
|
||||
use crate::tree_shake::graph::{Dependency, ItemId, ItemIdGroupKind, ItemIdItemKind};
|
||||
use crate::tree_shake::graph::{Dependency, ItemData, ItemId, ItemIdGroupKind, ItemIdItemKind};
|
||||
|
||||
pub(super) struct GraphOptimizer<'a> {
|
||||
pub graph_ix: &'a FxIndexSet<ItemId>,
|
||||
pub data: &'a FxHashMap<ItemId, ItemData>,
|
||||
}
|
||||
|
||||
impl Index<u32> for GraphOptimizer<'_> {
|
||||
@@ -25,19 +27,20 @@ impl GraphOptimizer<'_> {
|
||||
{
|
||||
let item_id = &self[*item];
|
||||
|
||||
// Currently we don't merge import bindings or exports because of workarounds we are using.
|
||||
// Currently we don't merge import bindings because of workarounds we are using.
|
||||
//
|
||||
// See graph.rs for actual workarounds. ImportBinding workaround is about using direct
|
||||
// imports for import bindings so the static code analysis pass can detect imports like
|
||||
// 'next/dynamic', and the export workaround is about adding an import for $$RSC_SERVER for
|
||||
// server actions.
|
||||
matches!(
|
||||
// 'next/dynamic'.
|
||||
|
||||
(matches!(
|
||||
item_id,
|
||||
ItemId::Item {
|
||||
kind: ItemIdItemKind::ImportBinding(..),
|
||||
..
|
||||
} | ItemId::Group(ItemIdGroupKind::Export(..))
|
||||
)
|
||||
}
|
||||
)) || (matches!(item_id, ItemId::Group(ItemIdGroupKind::Export(..)))
|
||||
&& self.data[item_id].disable_export_merging)
|
||||
}
|
||||
|
||||
fn should_not_merge_iter<N>(&self, items: &[N]) -> bool
|
||||
|
||||
+268
-324
@@ -337,72 +337,64 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("external1", #2), "external1"))]"];
|
||||
N2["Items: [ItemId(Export(("external2", #2), "external2"))]"];
|
||||
N3["Items: [ItemId(Export(("foo", #2), "foo"))]"];
|
||||
N4["Items: [ItemId(Export(("foobar", #2), "foobar"))]"];
|
||||
N5["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N6["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N7["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N8["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N9["Items: [ItemId(3, VarDeclarator(0)), ItemId(4, Normal)]"];
|
||||
N10["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N11["Items: [ItemId(6, Normal)]"];
|
||||
N12["Items: [ItemId(7, Normal)]"];
|
||||
N13["Items: [ItemId(8, Normal)]"];
|
||||
N14["Items: [ItemId(9, Normal)]"];
|
||||
N15["Items: [ItemId(10, Normal)]"];
|
||||
N16["Items: [ItemId(11, Normal)]"];
|
||||
N8 --> N7;
|
||||
N6 --> N5;
|
||||
N9 --> N7;
|
||||
N9 -.-> N8;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(3, VarDeclarator(0)), ItemId(4, Normal)]"];
|
||||
N5["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N6["Items: [ItemId(6, Normal)]"];
|
||||
N7["Items: [ItemId(7, Normal)]"];
|
||||
N8["Items: [ItemId(8, Normal)]"];
|
||||
N9["Items: [ItemId(9, Normal)]"];
|
||||
N10["Items: [ItemId(10, Normal), ItemId(Export(("external1", #2), "external1"))]"];
|
||||
N11["Items: [ItemId(11, Normal), ItemId(Export(("external2", #2), "external2")), ItemId(Export(("foobar", #2), "foobar"))]"];
|
||||
N12["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N13["Items: [ItemId(Export(("foo", #2), "foo"))]"];
|
||||
N3 --> N2;
|
||||
N11 --> N2;
|
||||
N4 --> N2;
|
||||
N4 -.-> N3;
|
||||
N5 --> N4;
|
||||
N5 --> N2;
|
||||
N6 --> N4;
|
||||
N6 --> N2;
|
||||
N6 -.-> N5;
|
||||
N7 --> N5;
|
||||
N7 --> N0;
|
||||
N7 -.-> N1;
|
||||
N7 --> N6;
|
||||
N7 -.-> N9;
|
||||
N8 --> N5;
|
||||
N8 -.-> N7;
|
||||
N10 --> N2;
|
||||
N10 --> N6;
|
||||
N13 --> N3;
|
||||
N12 --> N7;
|
||||
N10 --> N9;
|
||||
N10 --> N7;
|
||||
N11 --> N9;
|
||||
N11 --> N7;
|
||||
N11 -.-> N10;
|
||||
N12 --> N10;
|
||||
N12 --> N5;
|
||||
N12 -.-> N6;
|
||||
N12 --> N11;
|
||||
N12 -.-> N14;
|
||||
N13 --> N10;
|
||||
N13 -.-> N12;
|
||||
N4 --> N11;
|
||||
N4 --> N7;
|
||||
N3 --> N8;
|
||||
N1 --> N15;
|
||||
N2 --> N16;
|
||||
N14 --> N6;
|
||||
N14 --> N11;
|
||||
N14 --> N7;
|
||||
N15 --> N14;
|
||||
N15 --> N11;
|
||||
N15 --> N7;
|
||||
N16 -.-> N4;
|
||||
N16 --> N7;
|
||||
N0 --> N12;
|
||||
N9 --> N1;
|
||||
N9 --> N6;
|
||||
N9 --> N2;
|
||||
N1 --> N0;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 12,
|
||||
Export(
|
||||
"external1",
|
||||
): 1,
|
||||
Exports: 17,
|
||||
): 10,
|
||||
Exports: 14,
|
||||
Export(
|
||||
"foo",
|
||||
): 3,
|
||||
): 13,
|
||||
Export(
|
||||
"foobar",
|
||||
): 4,
|
||||
): 11,
|
||||
Export(
|
||||
"external2",
|
||||
): 2,
|
||||
): 11,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -410,75 +402,32 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
import "module";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { external1 };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
let foobar = "foo";
|
||||
export { foobar as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { external2 };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { foo };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
export { foobar };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "module";
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
let foobar = "foo";
|
||||
export { foobar as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo as c } from "__TURBOPACK_VAR__" assert {
|
||||
@@ -486,136 +435,152 @@ export { foo as c } from "__TURBOPACK_VAR__" assert {
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 4
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { bar as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
foobar += "foo";
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { e as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
console.log(foobarCopy);
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import { e as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { upper } from "module";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
function internal() {
|
||||
return upper(foobar);
|
||||
}
|
||||
export { internal as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { f as internal } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as g } from "__TURBOPACK_VAR__" assert {
|
||||
function external1() {
|
||||
return internal() + foobar;
|
||||
}
|
||||
export { external1 };
|
||||
export { external1 as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
foobar += "foo";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
};
|
||||
console.log(foobarCopy);
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { upper } from "module";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
function internal() {
|
||||
return upper(foobar);
|
||||
}
|
||||
export { internal as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import { h as internal } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
function external1() {
|
||||
return internal() + foobar;
|
||||
}
|
||||
export { external1 as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
function external2() {
|
||||
foobar += ".";
|
||||
}
|
||||
export { external2 as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { external2 };
|
||||
export { foobar };
|
||||
export { external2 as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 17
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { c as foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { foo };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
export { external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external1"
|
||||
@@ -623,18 +588,18 @@ export { external1 } from "__TURBOPACK_PART__" assert {
|
||||
export { external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external2"
|
||||
};
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
export { foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foobar"
|
||||
};
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -643,20 +608,20 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 7,
|
||||
Export(
|
||||
"external1",
|
||||
): 1,
|
||||
Exports: 15,
|
||||
): 9,
|
||||
Exports: 12,
|
||||
Export(
|
||||
"foo",
|
||||
): 3,
|
||||
Export(
|
||||
"foobar",
|
||||
): 4,
|
||||
): 11,
|
||||
Export(
|
||||
"external2",
|
||||
): 2,
|
||||
): 10,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -664,145 +629,111 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(foobarCopy);
|
||||
import "module";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { external1 };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
let foobar = "foo";
|
||||
export { foobar as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { external2 };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { d as foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo };
|
||||
export { foo as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { foobar };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "module";
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
let foobar = "foo";
|
||||
export { foobar as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
foobar += "foo";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
## Part 7
|
||||
```js
|
||||
import { a as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { e as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
console.log(foobarCopy);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import { e as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 13
|
||||
## Part 9
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { upper } from "module";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
function internal() {
|
||||
return upper(foobar);
|
||||
@@ -810,38 +741,51 @@ function internal() {
|
||||
function external1() {
|
||||
return internal() + foobar;
|
||||
}
|
||||
export { internal as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { external1 };
|
||||
export { internal as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { external1 as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { external1 as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
## Part 10
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
function external2() {
|
||||
foobar += ".";
|
||||
}
|
||||
export { external2 as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { external2 };
|
||||
export { external2 as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 11
|
||||
```js
|
||||
import { b as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
export { foobar };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
export { external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external1"
|
||||
};
|
||||
export { external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external2"
|
||||
};
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
export { foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foobar"
|
||||
};
|
||||
@@ -849,16 +793,16 @@ export { foobar } from "__TURBOPACK_PART__" assert {
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { e as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(foobarCopy);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
|
||||
+272
-328
@@ -355,72 +355,64 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("external1", #2), "external1"))]"];
|
||||
N2["Items: [ItemId(Export(("external2", #2), "external2"))]"];
|
||||
N3["Items: [ItemId(Export(("foo", #2), "foo"))]"];
|
||||
N4["Items: [ItemId(Export(("foobar", #2), "foobar"))]"];
|
||||
N5["Items: [ItemId(0, Normal)]"];
|
||||
N6["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N9["Items: [ItemId(3, VarDeclarator(0))]"];
|
||||
N10["Items: [ItemId(4, VarDeclarator(0)), ItemId(5, Normal)]"];
|
||||
N11["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N12["Items: [ItemId(7, Normal)]"];
|
||||
N13["Items: [ItemId(8, Normal), ItemId(12, ImportOfModule)]"];
|
||||
N14["Items: [ItemId(9, Normal)]"];
|
||||
N15["Items: [ItemId(10, Normal)]"];
|
||||
N16["Items: [ItemId(11, Normal)]"];
|
||||
N13 --> N6;
|
||||
N9 --> N8;
|
||||
N0 --> N13;
|
||||
N10 --> N8;
|
||||
N10 -.-> N9;
|
||||
N11 --> N10;
|
||||
N11 --> N8;
|
||||
N12 --> N10;
|
||||
N0["Items: [ItemId(0, Normal), ItemId(Export(("external1", #2), "external1"))]"];
|
||||
N1["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N2["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N3["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(3, VarDeclarator(0))]"];
|
||||
N5["Items: [ItemId(4, VarDeclarator(0)), ItemId(5, Normal)]"];
|
||||
N6["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N7["Items: [ItemId(7, Normal)]"];
|
||||
N8["Items: [ItemId(8, Normal), ItemId(12, ImportOfModule)]"];
|
||||
N9["Items: [ItemId(9, Normal)]"];
|
||||
N10["Items: [ItemId(10, Normal)]"];
|
||||
N11["Items: [ItemId(11, Normal), ItemId(Export(("external2", #2), "external2")), ItemId(Export(("foobar", #2), "foobar"))]"];
|
||||
N12["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N13["Items: [ItemId(Export(("foo", #2), "foo"))]"];
|
||||
N8 --> N1;
|
||||
N4 --> N3;
|
||||
N10 --> N2;
|
||||
N5 --> N3;
|
||||
N5 -.-> N4;
|
||||
N6 --> N5;
|
||||
N6 --> N3;
|
||||
N7 --> N5;
|
||||
N7 --> N3;
|
||||
N7 -.-> N6;
|
||||
N8 --> N6;
|
||||
N0 --> N10;
|
||||
N8 -.-> N10;
|
||||
N8 --> N7;
|
||||
N8 -.-> N2;
|
||||
N9 --> N6;
|
||||
N9 -.-> N8;
|
||||
N11 --> N3;
|
||||
N10 --> N3;
|
||||
N12 --> N8;
|
||||
N12 -.-> N11;
|
||||
N13 --> N11;
|
||||
N7 --> N6;
|
||||
N13 -.-> N15;
|
||||
N13 --> N12;
|
||||
N13 -.-> N7;
|
||||
N14 --> N11;
|
||||
N14 -.-> N13;
|
||||
N1 --> N5;
|
||||
N4 --> N12;
|
||||
N4 --> N8;
|
||||
N3 --> N9;
|
||||
N2 --> N16;
|
||||
N5 --> N15;
|
||||
N5 --> N12;
|
||||
N5 --> N8;
|
||||
N15 --> N7;
|
||||
N15 --> N12;
|
||||
N15 --> N8;
|
||||
N16 -.-> N4;
|
||||
N16 --> N8;
|
||||
N13 --> N4;
|
||||
N2 --> N1;
|
||||
N10 --> N7;
|
||||
N0 --> N3;
|
||||
N0 --> N7;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 12,
|
||||
Export(
|
||||
"external1",
|
||||
): 1,
|
||||
Exports: 17,
|
||||
): 0,
|
||||
Exports: 14,
|
||||
Export(
|
||||
"foo",
|
||||
): 3,
|
||||
): 13,
|
||||
Export(
|
||||
"foobar",
|
||||
): 4,
|
||||
): 11,
|
||||
Export(
|
||||
"external2",
|
||||
): 2,
|
||||
): 11,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -428,232 +420,205 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { external1 };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
};
|
||||
export { external2 };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { foo };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { b as internal } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
export { foobar };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import { e as internal } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
function external1() {
|
||||
return internal() + foobar;
|
||||
}
|
||||
export { external1 as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { external1 };
|
||||
export { external1 as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import "module";
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let foobar = "foo";
|
||||
export { foobar as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "module";
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
foobar += "foo";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
let foobar = "foo";
|
||||
export { foobar as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
console.log(foobarCopy);
|
||||
import "other";
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as g } from "__TURBOPACK_VAR__" assert {
|
||||
import { upper } from "module";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
function internal() {
|
||||
return upper(foobar);
|
||||
}
|
||||
export { internal as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as h } from "__TURBOPACK_VAR__" assert {
|
||||
function external2() {
|
||||
foobar += ".";
|
||||
}
|
||||
export { external2 };
|
||||
export { foobar };
|
||||
export { external2 as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
foobar += "foo";
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { h as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { e as foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
console.log(foobarCopy);
|
||||
import "other";
|
||||
export { foo };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { h as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { upper } from "module";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
function internal() {
|
||||
return upper(foobar);
|
||||
}
|
||||
export { internal as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
import { d as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
function external2() {
|
||||
foobar += ".";
|
||||
}
|
||||
export { external2 as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 17
|
||||
```js
|
||||
export { external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external1"
|
||||
};
|
||||
export { external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external2"
|
||||
};
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
export { foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foobar"
|
||||
};
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -662,20 +627,20 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 8,
|
||||
Export(
|
||||
"external1",
|
||||
): 1,
|
||||
Exports: 15,
|
||||
): 0,
|
||||
Exports: 12,
|
||||
Export(
|
||||
"foo",
|
||||
): 3,
|
||||
Export(
|
||||
"foobar",
|
||||
): 4,
|
||||
Export(
|
||||
"foobar",
|
||||
): 11,
|
||||
Export(
|
||||
"external2",
|
||||
): 2,
|
||||
): 10,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -683,63 +648,15 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(foobarCopy);
|
||||
import "other";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { external1 };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
export { external2 };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { d as foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { foo };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
export { foobar };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import { upper } from "module";
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
function external1() {
|
||||
return internal() + foobar;
|
||||
@@ -747,118 +664,145 @@ function external1() {
|
||||
function internal() {
|
||||
return upper(foobar);
|
||||
}
|
||||
export { external1 };
|
||||
export { external1 as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { internal as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { internal as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import "module";
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let foobar = "foo";
|
||||
export { foobar as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo };
|
||||
export { foo as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "module";
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { upper } from "module";
|
||||
export { upper as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
foobar += "foo";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
let foobar = "foo";
|
||||
export { foobar as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
console.log(foobarCopy);
|
||||
import "other";
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
const foo = foobar;
|
||||
export { foo as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
const bar = "bar";
|
||||
foobar += bar;
|
||||
export { bar as h } from "__TURBOPACK_VAR__" assert {
|
||||
function external2() {
|
||||
foobar += ".";
|
||||
}
|
||||
export { external2 };
|
||||
export { external2 as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { a as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
let foobarCopy = foobar;
|
||||
export { foobarCopy as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
export { foobar };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
foobar += "foo";
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { a as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
};
|
||||
foobarCopy += "Unused";
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { e as foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
function external2() {
|
||||
foobar += ".";
|
||||
}
|
||||
export { external2 as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
export { external1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external1"
|
||||
};
|
||||
export { external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external2"
|
||||
};
|
||||
export { foo } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foo"
|
||||
};
|
||||
export { external2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export external2"
|
||||
};
|
||||
export { foobar } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export foobar"
|
||||
};
|
||||
@@ -866,14 +810,14 @@ export { foobar } from "__TURBOPACK_PART__" assert {
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { g as foobarCopy } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import "other";
|
||||
"module evaluation";
|
||||
console.log(foobarCopy);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
|
||||
+167
-167
@@ -319,41 +319,41 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(9, Normal), ItemId(10, Normal)]"];
|
||||
N1["Items: [ItemId(Export(("c1_1", #2), "c1_1"))]"];
|
||||
N2["Items: [ItemId(Export(("c1_3", #2), "c1_3"))]"];
|
||||
N3["Items: [ItemId(Export(("c2_2", #2), "c2_2"))]"];
|
||||
N4["Items: [ItemId(0, Normal)]"];
|
||||
N5["Items: [ItemId(1, Normal)]"];
|
||||
N6["Items: [ItemId(2, Normal)]"];
|
||||
N7["Items: [ItemId(3, Normal), ItemId(4, Normal), ItemId(5, Normal)]"];
|
||||
N8["Items: [ItemId(6, Normal), ItemId(7, Normal), ItemId(8, Normal)]"];
|
||||
N2 --> N7;
|
||||
N3 --> N8;
|
||||
N7 --> N4;
|
||||
N7 --> N5;
|
||||
N8 --> N6;
|
||||
N0 -.-> N6;
|
||||
N0 -.-> N5;
|
||||
N0 -.-> N4;
|
||||
N0 -.-> N7;
|
||||
N1 --> N7;
|
||||
N0 -.-> N8;
|
||||
N0["Items: [ItemId(0, Normal)]"];
|
||||
N1["Items: [ItemId(1, Normal)]"];
|
||||
N2["Items: [ItemId(2, Normal)]"];
|
||||
N3["Items: [ItemId(3, Normal), ItemId(4, Normal), ItemId(5, Normal)]"];
|
||||
N4["Items: [ItemId(6, Normal), ItemId(7, Normal), ItemId(8, Normal)]"];
|
||||
N5["Items: [ItemId(9, Normal), ItemId(10, Normal), ItemId(ModuleEvaluation)]"];
|
||||
N6["Items: [ItemId(Export(("c1_1", #2), "c1_1"))]"];
|
||||
N7["Items: [ItemId(Export(("c1_3", #2), "c1_3"))]"];
|
||||
N8["Items: [ItemId(Export(("c2_2", #2), "c2_2"))]"];
|
||||
N7 --> N3;
|
||||
N8 --> N4;
|
||||
N3 --> N0;
|
||||
N3 --> N1;
|
||||
N4 --> N2;
|
||||
N5 -.-> N2;
|
||||
N5 -.-> N1;
|
||||
N5 -.-> N0;
|
||||
N5 -.-> N3;
|
||||
N6 --> N3;
|
||||
N5 -.-> N4;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 5,
|
||||
Export(
|
||||
"c1_1",
|
||||
): 1,
|
||||
): 6,
|
||||
Export(
|
||||
"c1_3",
|
||||
): 2,
|
||||
): 7,
|
||||
Export(
|
||||
"c2_2",
|
||||
): 3,
|
||||
): 8,
|
||||
Exports: 9,
|
||||
}
|
||||
```
|
||||
@@ -362,81 +362,35 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
function d1() {}
|
||||
export { d1 as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
c1_3();
|
||||
c2_2();
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { c as c1_1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
function d2() {}
|
||||
export { d2 as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_1 };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
function d3() {}
|
||||
export { d3 as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_3 };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { b as d2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { c2_2 };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
function d1() {}
|
||||
export { d1 as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
function d2() {}
|
||||
export { d2 as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
function d3() {}
|
||||
export { d3 as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { e as d2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { d as d1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import { a as d1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
function c1_1() {
|
||||
return c1_2();
|
||||
@@ -447,21 +401,21 @@ function c1_2() {
|
||||
function c1_3() {
|
||||
return c1_1(d2);
|
||||
}
|
||||
export { c1_1 as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { c1_1 as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_2 as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { c1_2 as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_3 as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { c1_3 as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 4
|
||||
```js
|
||||
import { f as d3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
import { c as d3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
function c2_1() {
|
||||
return c2_2(d3);
|
||||
@@ -472,16 +426,62 @@ function c2_2() {
|
||||
function c2_3() {
|
||||
return c2_1();
|
||||
}
|
||||
export { c2_1 as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { c2_1 as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c2_2 as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { c2_2 as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c2_3 as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { f as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
c1_3();
|
||||
c2_2();
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import { d as c1_1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { c1_1 };
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { f as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { c1_3 };
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
export { c2_2 };
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
@@ -498,40 +498,40 @@ export { c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { f as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
c1_3();
|
||||
c2_2();
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"c1_1",
|
||||
): 1,
|
||||
): 3,
|
||||
Export(
|
||||
"c1_3",
|
||||
): 2,
|
||||
): 4,
|
||||
Export(
|
||||
"c2_2",
|
||||
): 3,
|
||||
): 5,
|
||||
Exports: 6,
|
||||
}
|
||||
```
|
||||
@@ -540,43 +540,6 @@ c2_2();
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
"module evaluation";
|
||||
c1_3();
|
||||
c2_2();
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { c as c1_1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
export { c1_1 };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
export { c1_3 };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { c2_2 };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
function d1() {}
|
||||
function d2() {}
|
||||
function c1_1() {
|
||||
@@ -588,24 +551,24 @@ function c1_2() {
|
||||
function c1_3() {
|
||||
return c1_1(d2);
|
||||
}
|
||||
export { d1 as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { d1 as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { d2 as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { d2 as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_1 as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_2 as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { c1_2 as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c1_3 as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { c1_3 as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 1
|
||||
```js
|
||||
function d3() {}
|
||||
function c2_1() {
|
||||
@@ -617,19 +580,56 @@ function c2_2() {
|
||||
function c2_3() {
|
||||
return c2_1();
|
||||
}
|
||||
export { d3 as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { d3 as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c2_1 as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { c2_1 as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c2_2 as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { c2_2 as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { c2_3 as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { e as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
c1_3();
|
||||
c2_2();
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as c1_1 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
export { c1_1 };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { e as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
export { c1_3 };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { c2_2 };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
@@ -646,31 +646,31 @@ export { c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import { e as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
"module evaluation";
|
||||
c1_3();
|
||||
c2_2();
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"c1_1",
|
||||
): 1,
|
||||
): 3,
|
||||
Export(
|
||||
"c1_3",
|
||||
): 2,
|
||||
): 4,
|
||||
Export(
|
||||
"c2_2",
|
||||
): 3,
|
||||
): 5,
|
||||
Exports: 6,
|
||||
}
|
||||
```
|
||||
@@ -678,8 +678,8 @@ c2_2();
|
||||
|
||||
## Merged (c1_3)
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import { e as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
export { c1_3 };
|
||||
|
||||
@@ -688,16 +688,16 @@ export { c1_3 };
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"c1_1",
|
||||
): 1,
|
||||
): 3,
|
||||
Export(
|
||||
"c1_3",
|
||||
): 2,
|
||||
): 4,
|
||||
Export(
|
||||
"c2_2",
|
||||
): 3,
|
||||
): 5,
|
||||
Exports: 6,
|
||||
}
|
||||
```
|
||||
@@ -705,11 +705,11 @@ export { c1_3 };
|
||||
|
||||
## Merged (c1_3,c2_2)
|
||||
```js
|
||||
import { a as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import { e as c1_3 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { h as c2_2 } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { c1_3 };
|
||||
export { c2_2 };
|
||||
|
||||
Generated
+164
-164
@@ -276,48 +276,48 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("__TURBOPACK__default__export__", #5), "default"))]"];
|
||||
N2["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(0, ImportBinding(1))]"];
|
||||
N5["Items: [ItemId(0, ImportBinding(2))]"];
|
||||
N6["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(1, ImportBinding(1))]"];
|
||||
N9["Items: [ItemId(1, ImportBinding(2))]"];
|
||||
N10["Items: [ItemId(1, ImportBinding(3))]"];
|
||||
N11["Items: [ItemId(1, ImportBinding(4))]"];
|
||||
N12["Items: [ItemId(2, Normal), ItemId(3, Normal)]"];
|
||||
N6 --> N2;
|
||||
N12 --> N11;
|
||||
N12 --> N10;
|
||||
N12 --> N9;
|
||||
N12 --> N8;
|
||||
N12 --> N3;
|
||||
N12 --> N5;
|
||||
N12 --> N4;
|
||||
N12 --> N7;
|
||||
N11 --> N6;
|
||||
N12 --> N6;
|
||||
N1 --> N12;
|
||||
N0 --> N12;
|
||||
N3 --> N2;
|
||||
N4 --> N2;
|
||||
N5 --> N2;
|
||||
N7 --> N6;
|
||||
N8 --> N6;
|
||||
N9 --> N6;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(0, ImportBinding(1))]"];
|
||||
N3["Items: [ItemId(0, ImportBinding(2))]"];
|
||||
N4["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N5["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N6["Items: [ItemId(1, ImportBinding(1))]"];
|
||||
N7["Items: [ItemId(1, ImportBinding(2))]"];
|
||||
N8["Items: [ItemId(1, ImportBinding(3))]"];
|
||||
N9["Items: [ItemId(1, ImportBinding(4))]"];
|
||||
N10["Items: [ItemId(2, Normal), ItemId(3, Normal)]"];
|
||||
N11["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N12["Items: [ItemId(Export(("__TURBOPACK__default__export__", #5), "default"))]"];
|
||||
N4 --> N0;
|
||||
N10 --> N9;
|
||||
N10 --> N8;
|
||||
N10 --> N7;
|
||||
N10 --> N6;
|
||||
N10 --> N1;
|
||||
N10 --> N3;
|
||||
N10 --> N2;
|
||||
N10 --> N5;
|
||||
N9 --> N4;
|
||||
N10 --> N4;
|
||||
N12 --> N10;
|
||||
N11 --> N10;
|
||||
N1 --> N0;
|
||||
N2 --> N0;
|
||||
N3 --> N0;
|
||||
N5 --> N4;
|
||||
N6 --> N4;
|
||||
N7 --> N4;
|
||||
N8 --> N4;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 11,
|
||||
Export(
|
||||
"default",
|
||||
): 1,
|
||||
): 12,
|
||||
Exports: 13,
|
||||
}
|
||||
```
|
||||
@@ -326,32 +326,38 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
import "react/jsx-runtime";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
export { _jsx as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
export { _jsxs as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
export { _jsx as b } from "__TURBOPACK_VAR__" assert {
|
||||
import { Fragment as _Fragment } from "react/jsx-runtime";
|
||||
export { _Fragment as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -359,21 +365,18 @@ export { _jsx as b } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
export { _jsxs as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import 'next/document';
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Fragment as _Fragment } from "react/jsx-runtime";
|
||||
export { _Fragment as d } from "__TURBOPACK_VAR__" assert {
|
||||
import Document from 'next/document';
|
||||
export { Document as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -381,18 +384,21 @@ export { _Fragment as d } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Html } from 'next/document';
|
||||
export { Html as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import 'next/document';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import Document from 'next/document';
|
||||
export { Document as e } from "__TURBOPACK_VAR__" assert {
|
||||
import { Head } from 'next/document';
|
||||
export { Head as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -400,10 +406,10 @@ export { Document as e } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Html } from 'next/document';
|
||||
export { Html as f } from "__TURBOPACK_VAR__" assert {
|
||||
import { Main } from 'next/document';
|
||||
export { Main as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -411,10 +417,10 @@ export { Html as f } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Head } from 'next/document';
|
||||
export { Head as g } from "__TURBOPACK_VAR__" assert {
|
||||
import { NextScript } from 'next/document';
|
||||
export { NextScript as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -422,61 +428,39 @@ export { Head as g } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 10
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { Main } from 'next/document';
|
||||
export { Main as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { NextScript } from 'next/document';
|
||||
export { NextScript as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import Document from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { Fragment as _Fragment } from "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Html } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Head } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Main } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { NextScript } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
class MyDocument extends Document {
|
||||
static async getInitialProps(ctx) {
|
||||
@@ -510,13 +494,29 @@ class MyDocument extends Document {
|
||||
}
|
||||
}
|
||||
const __TURBOPACK__default__export__ = MyDocument;
|
||||
export { MyDocument as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { MyDocument as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { __TURBOPACK__default__export__ as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { j as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
@@ -528,7 +528,7 @@ export { default } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -537,10 +537,10 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 11,
|
||||
Export(
|
||||
"default",
|
||||
): 1,
|
||||
): 12,
|
||||
Exports: 13,
|
||||
}
|
||||
```
|
||||
@@ -549,32 +549,38 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
import "react/jsx-runtime";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
export { _jsx as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
export { _jsxs as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
export { _jsx as b } from "__TURBOPACK_VAR__" assert {
|
||||
import { Fragment as _Fragment } from "react/jsx-runtime";
|
||||
export { _Fragment as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -582,21 +588,18 @@ export { _jsx as b } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
export { _jsxs as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import 'next/document';
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Fragment as _Fragment } from "react/jsx-runtime";
|
||||
export { _Fragment as d } from "__TURBOPACK_VAR__" assert {
|
||||
import Document from 'next/document';
|
||||
export { Document as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -604,18 +607,21 @@ export { _Fragment as d } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Html } from 'next/document';
|
||||
export { Html as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import 'next/document';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import Document from 'next/document';
|
||||
export { Document as e } from "__TURBOPACK_VAR__" assert {
|
||||
import { Head } from 'next/document';
|
||||
export { Head as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -623,10 +629,10 @@ export { Document as e } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Html } from 'next/document';
|
||||
export { Html as f } from "__TURBOPACK_VAR__" assert {
|
||||
import { Main } from 'next/document';
|
||||
export { Main as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -634,10 +640,10 @@ export { Html as f } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Head } from 'next/document';
|
||||
export { Head as g } from "__TURBOPACK_VAR__" assert {
|
||||
import { NextScript } from 'next/document';
|
||||
export { NextScript as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -645,61 +651,39 @@ export { Head as g } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 10
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { Main } from 'next/document';
|
||||
export { Main as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { NextScript } from 'next/document';
|
||||
export { NextScript as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import Document from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { Fragment as _Fragment } from "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Html } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Head } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { Main } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { NextScript } from 'next/document';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
class MyDocument extends Document {
|
||||
static async getInitialProps(ctx) {
|
||||
@@ -733,13 +717,29 @@ class MyDocument extends Document {
|
||||
}
|
||||
}
|
||||
const __TURBOPACK__default__export__ = MyDocument;
|
||||
export { MyDocument as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { MyDocument as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { __TURBOPACK__default__export__ as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { j as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
@@ -751,7 +751,7 @@ export { default } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+243
-301
@@ -324,74 +324,64 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("originalPathname", #2), "originalPathname"))]"];
|
||||
N2["Items: [ItemId(Export(("patchFetch", #2), "patchFetch"))]"];
|
||||
N3["Items: [ItemId(Export(("requestAsyncStorage", #2), "requestAsyncStorage"))]"];
|
||||
N4["Items: [ItemId(Export(("routeModule", #2), "routeModule"))]"];
|
||||
N5["Items: [ItemId(Export(("serverHooks", #2), "serverHooks"))]"];
|
||||
N6["Items: [ItemId(Export(("workAsyncStorage", #2), "workAsyncStorage"))]"];
|
||||
N7["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N8["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N9["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N10["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N11["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N12["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N13["Items: [ItemId(3, ImportOfModule)]"];
|
||||
N14["Items: [ItemId(3, ImportBinding(0))]"];
|
||||
N15["Items: [ItemId(4, VarDeclarator(0))]"];
|
||||
N16["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N17["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N18["Items: [ItemId(7, Normal)]"];
|
||||
N9 --> N7;
|
||||
N11 --> N9;
|
||||
N13 --> N11;
|
||||
N15 --> N8;
|
||||
N15 --> N10;
|
||||
N15 --> N14;
|
||||
N15 --> N13;
|
||||
N15 -.-> N12;
|
||||
N16 --> N15;
|
||||
N4 --> N15;
|
||||
N3 --> N16;
|
||||
N6 --> N16;
|
||||
N5 --> N16;
|
||||
N1 --> N17;
|
||||
N2 --> N18;
|
||||
N18 --> N12;
|
||||
N18 --> N16;
|
||||
N18 -.-> N5;
|
||||
N18 -.-> N6;
|
||||
N0 --> N15;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N5["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N6["Items: [ItemId(3, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(3, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(4, VarDeclarator(0))]"];
|
||||
N9["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N10["Items: [ItemId(6, VarDeclarator(0)), ItemId(Export(("originalPathname", #2), "originalPathname"))]"];
|
||||
N11["Items: [ItemId(7, Normal), ItemId(Export(("patchFetch", #2), "patchFetch")), ItemId(Export(("serverHooks", #2), "serverHooks")), ItemId(Export(("workAsyncStorage", #2), "workAsyncStorage"))]"];
|
||||
N12["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N13["Items: [ItemId(Export(("requestAsyncStorage", #2), "requestAsyncStorage"))]"];
|
||||
N14["Items: [ItemId(Export(("routeModule", #2), "routeModule"))]"];
|
||||
N2 --> N0;
|
||||
N4 --> N2;
|
||||
N6 --> N4;
|
||||
N8 --> N1;
|
||||
N8 --> N3;
|
||||
N8 --> N7;
|
||||
N10 --> N9;
|
||||
N12 --> N11;
|
||||
N14 --> N13;
|
||||
N8 --> N6;
|
||||
N8 -.-> N5;
|
||||
N9 --> N8;
|
||||
N14 --> N8;
|
||||
N13 --> N9;
|
||||
N5 --> N4;
|
||||
N1 --> N0;
|
||||
N11 --> N5;
|
||||
N7 --> N6;
|
||||
N3 --> N2;
|
||||
N12 --> N8;
|
||||
N11 --> N9;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Export(
|
||||
"patchFetch",
|
||||
): 2,
|
||||
Export(
|
||||
"requestAsyncStorage",
|
||||
): 3,
|
||||
ModuleEvaluation: 12,
|
||||
Export(
|
||||
"serverHooks",
|
||||
): 5,
|
||||
): 11,
|
||||
Export(
|
||||
"patchFetch",
|
||||
): 11,
|
||||
Export(
|
||||
"requestAsyncStorage",
|
||||
): 13,
|
||||
Export(
|
||||
"routeModule",
|
||||
): 4,
|
||||
Exports: 19,
|
||||
): 14,
|
||||
Exports: 15,
|
||||
Export(
|
||||
"workAsyncStorage",
|
||||
): 6,
|
||||
): 11,
|
||||
Export(
|
||||
"originalPathname",
|
||||
): 1,
|
||||
): 10,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -399,152 +389,96 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
};
|
||||
"module evaluation";
|
||||
import '../../server/future/route-modules/app-route/module.compiled';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as originalPathname } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -17
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { AppRouteRouteModule } from '../../server/future/route-modules/app-route/module.compiled';
|
||||
export { AppRouteRouteModule as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { originalPathname };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as patchFetch } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -18
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
export { patchFetch };
|
||||
import '../../server/future/route-kind';
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as requestAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { RouteKind } from '../../server/future/route-kind';
|
||||
export { RouteKind as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { requestAsyncStorage };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
export { routeModule };
|
||||
import '../../server/lib/patch-fetch';
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { e as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch';
|
||||
export { _patchFetch as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { serverHooks };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import { f as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
export { workAsyncStorage };
|
||||
import 'VAR_USERLAND';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import '../../server/future/route-modules/app-route/module.compiled';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
export { userland as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { AppRouteRouteModule } from '../../server/future/route-modules/app-route/module.compiled';
|
||||
export { AppRouteRouteModule as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import '../../server/future/route-kind';
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { RouteKind } from '../../server/future/route-kind';
|
||||
export { RouteKind as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import '../../server/lib/patch-fetch';
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch';
|
||||
export { _patchFetch as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import 'VAR_USERLAND';
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
};
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
export { userland as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { AppRouteRouteModule } from '../../server/future/route-modules/app-route/module.compiled';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { RouteKind } from '../../server/future/route-kind';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
const routeModule = new AppRouteRouteModule({
|
||||
definition: {
|
||||
@@ -558,53 +492,48 @@ const routeModule = new AppRouteRouteModule({
|
||||
nextConfigOutput,
|
||||
userland
|
||||
});
|
||||
export { routeModule as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { routeModule as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 9
|
||||
```js
|
||||
import { d as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import { e as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
const { requestAsyncStorage, workAsyncStorage, serverHooks } = routeModule;
|
||||
export { requestAsyncStorage as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { requestAsyncStorage as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { workAsyncStorage as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { workAsyncStorage as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { serverHooks as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { serverHooks as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 17
|
||||
## Part 10
|
||||
```js
|
||||
const originalPathname = 'VAR_ORIGINAL_PATHNAME';
|
||||
export { originalPathname as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { originalPathname };
|
||||
export { originalPathname as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 18
|
||||
## Part 11
|
||||
```js
|
||||
import { f as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import { g as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch';
|
||||
import { e as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
import { h as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
function patchFetch() {
|
||||
return _patchFetch({
|
||||
@@ -612,12 +541,39 @@ function patchFetch() {
|
||||
workAsyncStorage
|
||||
});
|
||||
}
|
||||
export { patchFetch as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { patchFetch };
|
||||
export { serverHooks };
|
||||
export { workAsyncStorage };
|
||||
export { patchFetch as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 19
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { f as requestAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { requestAsyncStorage };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { e as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { routeModule };
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
export { originalPathname } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export originalPathname"
|
||||
@@ -625,24 +581,24 @@ export { originalPathname } from "__TURBOPACK_PART__" assert {
|
||||
export { patchFetch } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export patchFetch"
|
||||
};
|
||||
export { requestAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export requestAsyncStorage"
|
||||
};
|
||||
export { routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export routeModule"
|
||||
};
|
||||
export { serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export serverHooks"
|
||||
};
|
||||
export { workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export workAsyncStorage"
|
||||
};
|
||||
export { requestAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export requestAsyncStorage"
|
||||
};
|
||||
export { routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export routeModule"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -651,26 +607,26 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 12,
|
||||
Export(
|
||||
"patchFetch",
|
||||
): 2,
|
||||
): 11,
|
||||
Export(
|
||||
"requestAsyncStorage",
|
||||
): 3,
|
||||
): 13,
|
||||
Export(
|
||||
"serverHooks",
|
||||
): 5,
|
||||
): 15,
|
||||
Export(
|
||||
"routeModule",
|
||||
): 4,
|
||||
Exports: 19,
|
||||
): 14,
|
||||
Exports: 17,
|
||||
Export(
|
||||
"workAsyncStorage",
|
||||
): 6,
|
||||
): 16,
|
||||
Export(
|
||||
"originalPathname",
|
||||
): 1,
|
||||
): 10,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -678,149 +634,93 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
};
|
||||
"module evaluation";
|
||||
import '../../server/future/route-modules/app-route/module.compiled';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as originalPathname } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -17
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { AppRouteRouteModule } from '../../server/future/route-modules/app-route/module.compiled';
|
||||
export { AppRouteRouteModule as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { originalPathname };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as patchFetch } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -18
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
export { patchFetch };
|
||||
import '../../server/future/route-kind';
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as requestAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { RouteKind } from '../../server/future/route-kind';
|
||||
export { RouteKind as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { requestAsyncStorage };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
export { routeModule };
|
||||
import '../../server/lib/patch-fetch';
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { e as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch';
|
||||
export { _patchFetch as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { serverHooks };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import { f as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
export { workAsyncStorage };
|
||||
import 'VAR_USERLAND';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import '../../server/future/route-modules/app-route/module.compiled';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
export { userland as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { AppRouteRouteModule } from '../../server/future/route-modules/app-route/module.compiled';
|
||||
export { AppRouteRouteModule as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import '../../server/future/route-kind';
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { RouteKind } from '../../server/future/route-kind';
|
||||
export { RouteKind as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import '../../server/lib/patch-fetch';
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch';
|
||||
export { _patchFetch as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import 'VAR_USERLAND';
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
};
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
export { userland as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { AppRouteRouteModule } from '../../server/future/route-modules/app-route/module.compiled';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { RouteKind } from '../../server/future/route-kind';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
const routeModule = new AppRouteRouteModule({
|
||||
definition: {
|
||||
@@ -834,47 +734,48 @@ const routeModule = new AppRouteRouteModule({
|
||||
nextConfigOutput,
|
||||
userland
|
||||
});
|
||||
export { routeModule as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { routeModule as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 9
|
||||
```js
|
||||
import { d as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import { e as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
const { requestAsyncStorage, workAsyncStorage, serverHooks } = routeModule;
|
||||
export { requestAsyncStorage as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { requestAsyncStorage as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { workAsyncStorage as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { workAsyncStorage as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { serverHooks as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { serverHooks as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 17
|
||||
## Part 10
|
||||
```js
|
||||
const originalPathname = 'VAR_ORIGINAL_PATHNAME';
|
||||
export { originalPathname as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { originalPathname };
|
||||
export { originalPathname as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 18
|
||||
## Part 11
|
||||
```js
|
||||
import { f as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import { g as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch';
|
||||
import { e as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
import { h as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
function patchFetch() {
|
||||
return _patchFetch({
|
||||
@@ -882,12 +783,53 @@ function patchFetch() {
|
||||
workAsyncStorage
|
||||
});
|
||||
}
|
||||
export { patchFetch as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { patchFetch };
|
||||
export { patchFetch as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 19
|
||||
## Part 12
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { f as requestAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { requestAsyncStorage };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { e as routeModule } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { routeModule };
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import { h as serverHooks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { serverHooks };
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
import { g as workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { workAsyncStorage };
|
||||
|
||||
```
|
||||
## Part 17
|
||||
```js
|
||||
export { originalPathname } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export originalPathname"
|
||||
@@ -912,7 +854,7 @@ export { workAsyncStorage } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
Generated
+5
-5
@@ -81,7 +81,7 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(0, Normal), ItemId(1, Normal), ItemId(2, Normal)]"];
|
||||
N0["Items: [ItemId(0, Normal), ItemId(1, Normal), ItemId(2, Normal), ItemId(ModuleEvaluation)]"];
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
@@ -96,10 +96,10 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
"module evaluation";
|
||||
a = ()=>{};
|
||||
function a() {}
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
@@ -111,10 +111,10 @@ export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
"module evaluation";
|
||||
a = ()=>{};
|
||||
function a() {}
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
@@ -133,10 +133,10 @@ export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
"module evaluation";
|
||||
a = ()=>{};
|
||||
function a() {}
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
@@ -148,10 +148,10 @@ export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
"module evaluation";
|
||||
a = ()=>{};
|
||||
function a() {}
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
Generated
+33
-33
@@ -77,17 +77,17 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(2, Normal)]"];
|
||||
N1["Items: [ItemId(0, Normal)]"];
|
||||
N2["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N1 --> N2;
|
||||
N0 --> N2;
|
||||
N0["Items: [ItemId(0, Normal)]"];
|
||||
N1["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N2["Items: [ItemId(2, Normal), ItemId(ModuleEvaluation)]"];
|
||||
N0 --> N1;
|
||||
N2 --> N1;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
}
|
||||
```
|
||||
@@ -97,27 +97,27 @@ graph TD
|
||||
## Part 0
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(a);
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
a = 1;
|
||||
|
||||
```
|
||||
## Part 2
|
||||
## Part 1
|
||||
```js
|
||||
var a;
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
@@ -126,17 +126,17 @@ export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
}
|
||||
```
|
||||
@@ -146,27 +146,27 @@ console.log(a);
|
||||
## Part 0
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(a);
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
a = 1;
|
||||
|
||||
```
|
||||
## Part 2
|
||||
## Part 1
|
||||
```js
|
||||
var a;
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
@@ -175,9 +175,9 @@ export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(a);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
|
||||
Generated
+17
-49
@@ -79,20 +79,16 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(Export(("a", #2), "a"))]"];
|
||||
N1["Items: [ItemId(Export(("b", #2), "b"))]"];
|
||||
N2["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N0 --> N2;
|
||||
N1 --> N3;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0)), ItemId(Export(("a", #2), "a"))]"];
|
||||
N1["Items: [ItemId(1, VarDeclarator(0)), ItemId(Export(("b", #2), "b"))]"];
|
||||
N2["Items: [ItemId(ModuleEvaluation)]"];
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 4,
|
||||
Exports: 5,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
Export(
|
||||
"b",
|
||||
): 1,
|
||||
@@ -106,42 +102,28 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
export { a };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as b } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { b };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
const a = "a";
|
||||
export { a };
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
## Part 1
|
||||
```js
|
||||
const b = "b";
|
||||
export { b };
|
||||
export { b as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
## Part 2
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 3
|
||||
```js
|
||||
export { a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export a"
|
||||
@@ -160,8 +142,8 @@ export { b } from "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 4,
|
||||
Exports: 5,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
Export(
|
||||
"b",
|
||||
): 1,
|
||||
@@ -175,42 +157,28 @@ export { b } from "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
export { a };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as b } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { b };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
const a = "a";
|
||||
export { a };
|
||||
export { a as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
## Part 1
|
||||
```js
|
||||
const b = "b";
|
||||
export { b };
|
||||
export { b as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
## Part 2
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 3
|
||||
```js
|
||||
export { a } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export a"
|
||||
|
||||
+219
-267
@@ -350,68 +350,62 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("cat", #2), "cat"))]"];
|
||||
N2["Items: [ItemId(Export(("dogRef", #2), "dogRef"))]"];
|
||||
N3["Items: [ItemId(Export(("getChimera", #2), "getChimera"))]"];
|
||||
N4["Items: [ItemId(Export(("initialCat", #2), "initialCat"))]"];
|
||||
N5["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N6["Items: [ItemId(1, Normal)]"];
|
||||
N7["Items: [ItemId(2, Normal)]"];
|
||||
N8["Items: [ItemId(3, Normal), ItemId(6, Normal), ItemId(9, VarDeclarator(0))]"];
|
||||
N9["Items: [ItemId(4, Normal)]"];
|
||||
N10["Items: [ItemId(5, Normal)]"];
|
||||
N11["Items: [ItemId(7, Normal)]"];
|
||||
N12["Items: [ItemId(8, Normal)]"];
|
||||
N13["Items: [ItemId(10, VarDeclarator(0))]"];
|
||||
N14["Items: [ItemId(11, VarDeclarator(0))]"];
|
||||
N15["Items: [ItemId(12, Normal)]"];
|
||||
N6 --> N5;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, Normal)]"];
|
||||
N2["Items: [ItemId(2, Normal)]"];
|
||||
N3["Items: [ItemId(3, Normal), ItemId(6, Normal), ItemId(9, VarDeclarator(0)), ItemId(Export(("dogRef", #2), "dogRef"))]"];
|
||||
N4["Items: [ItemId(4, Normal)]"];
|
||||
N5["Items: [ItemId(5, Normal)]"];
|
||||
N6["Items: [ItemId(7, Normal)]"];
|
||||
N7["Items: [ItemId(8, Normal)]"];
|
||||
N8["Items: [ItemId(10, VarDeclarator(0))]"];
|
||||
N9["Items: [ItemId(11, VarDeclarator(0)), ItemId(Export(("initialCat", #2), "initialCat"))]"];
|
||||
N10["Items: [ItemId(12, Normal), ItemId(Export(("getChimera", #2), "getChimera"))]"];
|
||||
N11["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N12["Items: [ItemId(Export(("cat", #2), "cat"))]"];
|
||||
N1 --> N0;
|
||||
N2 --> N1;
|
||||
N2 --> N0;
|
||||
N4 --> N1;
|
||||
N4 --> N0;
|
||||
N4 -.-> N2;
|
||||
N5 --> N4;
|
||||
N5 --> N0;
|
||||
N5 --> N2;
|
||||
N6 --> N4;
|
||||
N6 --> N0;
|
||||
N6 -.-> N5;
|
||||
N7 --> N6;
|
||||
N7 --> N0;
|
||||
N7 --> N5;
|
||||
N9 --> N6;
|
||||
N9 --> N5;
|
||||
N9 -.-> N7;
|
||||
N10 --> N9;
|
||||
N10 --> N5;
|
||||
N10 --> N7;
|
||||
N11 --> N9;
|
||||
N11 --> N5;
|
||||
N11 -.-> N10;
|
||||
N12 --> N11;
|
||||
N12 --> N5;
|
||||
N12 --> N10;
|
||||
N8 --> N11;
|
||||
N8 --> N5;
|
||||
N15 --> N11;
|
||||
N14 --> N13;
|
||||
N2 --> N8;
|
||||
N1 --> N13;
|
||||
N4 --> N14;
|
||||
N3 --> N15;
|
||||
N15 --> N5;
|
||||
N0 --> N12;
|
||||
N8 -.-> N12;
|
||||
N15 --> N13;
|
||||
N3 -.-> N7;
|
||||
N9 --> N8;
|
||||
N3 --> N0;
|
||||
N3 --> N6;
|
||||
N10 --> N8;
|
||||
N12 --> N8;
|
||||
N10 --> N6;
|
||||
N11 --> N7;
|
||||
N10 --> N0;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Export(
|
||||
"getChimera",
|
||||
): 3,
|
||||
): 10,
|
||||
ModuleEvaluation: 11,
|
||||
Export(
|
||||
"initialCat",
|
||||
): 4,
|
||||
Exports: 16,
|
||||
): 9,
|
||||
Exports: 13,
|
||||
Export(
|
||||
"cat",
|
||||
): 1,
|
||||
): 12,
|
||||
Export(
|
||||
"dogRef",
|
||||
): 2,
|
||||
): 3,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -419,81 +413,41 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
export { cat };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as dogRef } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { dogRef };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as getChimera } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
};
|
||||
export { getChimera };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as initialCat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
export { initialCat };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
let dog = "dog";
|
||||
export { dog as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { dog as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 1
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
dog += "!";
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 2
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 3
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
function getDog() {
|
||||
return dog;
|
||||
@@ -506,131 +460,150 @@ const dogRef = {
|
||||
get: getDog,
|
||||
set: setDog
|
||||
};
|
||||
export { getDog as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { dogRef };
|
||||
export { getDog as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { setDog as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { setDog as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { dogRef as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { dogRef as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
dog += "!";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
dog += "!";
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
let cat = "cat";
|
||||
export { cat as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { e as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
const initialCat = cat;
|
||||
export { initialCat };
|
||||
export { initialCat as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
dog += "!";
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { e as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
dog += "!";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
let cat = "cat";
|
||||
export { cat as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { a as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
const initialCat = cat;
|
||||
export { initialCat as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import { e as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { a as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
function getChimera() {
|
||||
return cat + dog;
|
||||
}
|
||||
export { getChimera as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { getChimera };
|
||||
export { getChimera as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 11
|
||||
```js
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { e as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { cat };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
export { dogRef } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export dogRef"
|
||||
};
|
||||
export { initialCat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export initialCat"
|
||||
};
|
||||
export { getChimera } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getChimera"
|
||||
};
|
||||
export { initialCat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export initialCat"
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -639,20 +612,20 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"getChimera",
|
||||
): 3,
|
||||
): 6,
|
||||
Export(
|
||||
"initialCat",
|
||||
): 4,
|
||||
Exports: 11,
|
||||
): 5,
|
||||
Exports: 8,
|
||||
Export(
|
||||
"cat",
|
||||
): 1,
|
||||
): 7,
|
||||
Export(
|
||||
"dogRef",
|
||||
): 2,
|
||||
): 3,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -660,75 +633,43 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { cat };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as dogRef } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
export { dogRef };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { d as getChimera } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
export { getChimera };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { e as initialCat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
export { initialCat };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
let dog = "dog";
|
||||
export { dog as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 1
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
dog += "!";
|
||||
dog += "!";
|
||||
dog += "!";
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 2
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
function getDog() {
|
||||
return dog;
|
||||
@@ -741,82 +682,93 @@ const dogRef = {
|
||||
get: getDog,
|
||||
set: setDog
|
||||
};
|
||||
export { getDog as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { dogRef };
|
||||
export { getDog as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { setDog as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { setDog as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { dogRef as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { dogRef as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 4
|
||||
```js
|
||||
let cat = "cat";
|
||||
export { cat as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { cat as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 5
|
||||
```js
|
||||
import { b as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { e as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
const initialCat = cat;
|
||||
export { initialCat as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { initialCat };
|
||||
export { initialCat as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 6
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import { e as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
function getChimera() {
|
||||
return cat + dog;
|
||||
}
|
||||
export { getChimera as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { getChimera };
|
||||
export { getChimera as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 7
|
||||
```js
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
import { e as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
export { cat };
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
export { dogRef } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export dogRef"
|
||||
};
|
||||
export { initialCat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export initialCat"
|
||||
};
|
||||
export { getChimera } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getChimera"
|
||||
};
|
||||
export { initialCat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export initialCat"
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
"module evaluation";
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
console.log(dog);
|
||||
|
||||
```
|
||||
|
||||
+45
-45
@@ -80,18 +80,18 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(1, Normal)]"];
|
||||
N1["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N2["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N0 --> N1;
|
||||
N0 --> N2;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, Normal), ItemId(ModuleEvaluation)]"];
|
||||
N2 --> N0;
|
||||
N2 --> N1;
|
||||
N1 --> N0;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
}
|
||||
```
|
||||
@@ -100,34 +100,34 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import { baz } from './module';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
"module evaluation";
|
||||
if (1 + 1 == 3) {
|
||||
baz();
|
||||
}
|
||||
import './module';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import './module';
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { baz } from './module';
|
||||
export { baz as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { baz } from './module';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
if (1 + 1 == 3) {
|
||||
baz();
|
||||
}
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
@@ -136,20 +136,20 @@ export { baz as a } from "__TURBOPACK_VAR__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { baz } from './module';
|
||||
"module evaluation";
|
||||
if (1 + 1 == 3) {
|
||||
baz();
|
||||
}
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
}
|
||||
```
|
||||
@@ -158,34 +158,34 @@ if (1 + 1 == 3) {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import { baz } from './module';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
"module evaluation";
|
||||
if (1 + 1 == 3) {
|
||||
baz();
|
||||
}
|
||||
import './module';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import './module';
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { baz } from './module';
|
||||
export { baz as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { baz } from './module';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
if (1 + 1 == 3) {
|
||||
baz();
|
||||
}
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
@@ -194,12 +194,12 @@ export { baz as a } from "__TURBOPACK_VAR__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { baz } from './module';
|
||||
"module evaluation";
|
||||
if (1 + 1 == 3) {
|
||||
baz();
|
||||
}
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
|
||||
+76
-76
@@ -319,31 +319,31 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N2["Items: [ItemId(1, Normal), ItemId(2, Normal)]"];
|
||||
N3["Items: [ItemId(3, Normal)]"];
|
||||
N4["Items: [ItemId(4, Normal), ItemId(5, VarDeclarator(0)), ItemId(6, VarDeclarator(0)), ItemId(7, Normal), ItemId(8, Normal), ItemId(9, Normal)]"];
|
||||
N5["Items: [ItemId(10, Normal)]"];
|
||||
N6["Items: [ItemId(11, VarDeclarator(0)), ItemId(12, Normal), ItemId(13, Normal)]"];
|
||||
N5 --> N4;
|
||||
N2 --> N1;
|
||||
N4 --> N1;
|
||||
N3 -.-> N2;
|
||||
N3 --> N1;
|
||||
N6 -.-> N5;
|
||||
N4 -.-> N2;
|
||||
N5 --> N1;
|
||||
N0 --> N5;
|
||||
N6 --> N1;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, Normal), ItemId(2, Normal)]"];
|
||||
N2["Items: [ItemId(3, Normal)]"];
|
||||
N3["Items: [ItemId(4, Normal), ItemId(5, VarDeclarator(0)), ItemId(6, VarDeclarator(0)), ItemId(7, Normal), ItemId(8, Normal), ItemId(9, Normal)]"];
|
||||
N4["Items: [ItemId(10, Normal)]"];
|
||||
N5["Items: [ItemId(11, VarDeclarator(0)), ItemId(12, Normal), ItemId(13, Normal)]"];
|
||||
N6["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N4 --> N3;
|
||||
N1 --> N0;
|
||||
N3 --> N0;
|
||||
N2 -.-> N1;
|
||||
N2 --> N0;
|
||||
N5 -.-> N4;
|
||||
N3 -.-> N1;
|
||||
N4 --> N0;
|
||||
N6 --> N4;
|
||||
N5 --> N2;
|
||||
N5 --> N0;
|
||||
N5 --> N3;
|
||||
N4 --> N1;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 6,
|
||||
Exports: 7,
|
||||
}
|
||||
```
|
||||
@@ -352,47 +352,39 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
let x = 0;
|
||||
export { x as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
## Part 1
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
x = 1;
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
x = 1;
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
x = 2;
|
||||
let y = x;
|
||||
@@ -408,31 +400,31 @@ export { z as c } from "__TURBOPACK_VAR__" assert {
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 4
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
console.log(x);
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 5
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
let a = x;
|
||||
x = x + a + 5;
|
||||
x = 100;
|
||||
@@ -440,6 +432,14 @@ export { a as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
@@ -448,7 +448,7 @@ export { a as d } from "__TURBOPACK_VAR__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -457,7 +457,7 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 1,
|
||||
Exports: 7,
|
||||
}
|
||||
```
|
||||
@@ -466,30 +466,30 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
let x = 0;
|
||||
export { x as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 1;
|
||||
|
||||
@@ -497,7 +497,7 @@ x = 1;
|
||||
## Part 3
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 2;
|
||||
|
||||
@@ -505,7 +505,7 @@ x = 2;
|
||||
## Part 4
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
let y = x;
|
||||
let z = x;
|
||||
@@ -523,7 +523,7 @@ export { z as c } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 5
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
@@ -538,7 +538,7 @@ export { a as d } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 6
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 100;
|
||||
|
||||
@@ -550,14 +550,14 @@ x = 100;
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
"module evaluation";
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
console.log(x);
|
||||
|
||||
```
|
||||
|
||||
+49
-49
@@ -69,22 +69,22 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("__TURBOPACK__reexport__cat__", #3), "fakeCat"))]"];
|
||||
N2["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N1 --> N3;
|
||||
N0 --> N2;
|
||||
N3 --> N2;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N3["Items: [ItemId(Export(("__TURBOPACK__reexport__cat__", #3), "fakeCat"))]"];
|
||||
N3 --> N1;
|
||||
N2 --> N0;
|
||||
N1 --> N0;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"fakeCat",
|
||||
): 1,
|
||||
): 3,
|
||||
Exports: 4,
|
||||
}
|
||||
```
|
||||
@@ -93,35 +93,35 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
import "./lib";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as __TURBOPACK__reexport__cat__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { __TURBOPACK__reexport__cat__ as fakeCat };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "./lib";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { cat as __TURBOPACK__reexport__cat__ } from "./lib";
|
||||
export { __TURBOPACK__reexport__cat__ as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as __TURBOPACK__reexport__cat__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { __TURBOPACK__reexport__cat__ as fakeCat };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
@@ -133,7 +133,7 @@ export { fakeCat } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -142,10 +142,10 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"fakeCat",
|
||||
): 1,
|
||||
): 3,
|
||||
Exports: 4,
|
||||
}
|
||||
```
|
||||
@@ -154,35 +154,35 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
import "./lib";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as __TURBOPACK__reexport__cat__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
export { __TURBOPACK__reexport__cat__ as fakeCat };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "./lib";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { cat as __TURBOPACK__reexport__cat__ } from "./lib";
|
||||
export { __TURBOPACK__reexport__cat__ as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as __TURBOPACK__reexport__cat__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { __TURBOPACK__reexport__cat__ as fakeCat };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
@@ -194,7 +194,7 @@ export { fakeCat } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+76
-124
@@ -217,22 +217,16 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(Export(("addMessageListener", #2), "addMessageListener"))]"];
|
||||
N1["Items: [ItemId(Export(("connectHMR", #2), "connectHMR"))]"];
|
||||
N2["Items: [ItemId(Export(("sendMessage", #2), "sendMessage"))]"];
|
||||
N3["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N5["Items: [ItemId(2, Normal), ItemId(5, Normal)]"];
|
||||
N6["Items: [ItemId(3, Normal)]"];
|
||||
N7["Items: [ItemId(4, Normal)]"];
|
||||
N8["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N0 --> N6;
|
||||
N2 --> N7;
|
||||
N1 --> N5;
|
||||
N6 --> N4;
|
||||
N7 --> N3;
|
||||
N5 --> N3;
|
||||
N5 --> N4;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N2["Items: [ItemId(2, Normal), ItemId(5, Normal), ItemId(Export(("connectHMR", #2), "connectHMR"))]"];
|
||||
N3["Items: [ItemId(3, Normal), ItemId(Export(("addMessageListener", #2), "addMessageListener"))]"];
|
||||
N4["Items: [ItemId(4, Normal), ItemId(Export(("sendMessage", #2), "sendMessage"))]"];
|
||||
N5["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N4 --> N0;
|
||||
N2 --> N1;
|
||||
N2 --> N0;
|
||||
N3 --> N1;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
@@ -240,15 +234,15 @@ graph TD
|
||||
{
|
||||
Export(
|
||||
"connectHMR",
|
||||
): 1,
|
||||
ModuleEvaluation: 8,
|
||||
): 2,
|
||||
ModuleEvaluation: 5,
|
||||
Export(
|
||||
"addMessageListener",
|
||||
): 0,
|
||||
Exports: 9,
|
||||
): 3,
|
||||
Exports: 6,
|
||||
Export(
|
||||
"sendMessage",
|
||||
): 2,
|
||||
): 4,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -256,51 +250,27 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as addMessageListener } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
let source;
|
||||
export { source as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { addMessageListener };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as connectHMR } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
const eventCallbacks = [];
|
||||
export { eventCallbacks as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { connectHMR };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as sendMessage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { sendMessage };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let source;
|
||||
export { source as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
const eventCallbacks = [];
|
||||
export { eventCallbacks as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { e as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { d as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
function getSocketProtocol(assetPrefix) {
|
||||
let protocol = location.protocol;
|
||||
@@ -350,54 +320,57 @@ function connectHMR(options) {
|
||||
}
|
||||
init();
|
||||
}
|
||||
export { getSocketProtocol as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { connectHMR };
|
||||
export { getSocketProtocol as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { connectHMR as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { connectHMR as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 3
|
||||
```js
|
||||
import { e as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import { b as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
function addMessageListener(cb) {
|
||||
eventCallbacks.push(cb);
|
||||
}
|
||||
export { addMessageListener as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { addMessageListener };
|
||||
export { addMessageListener as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 4
|
||||
```js
|
||||
import { d as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
function sendMessage(data) {
|
||||
if (!source || source.readyState !== source.OPEN) return;
|
||||
return source.send(data);
|
||||
}
|
||||
export { sendMessage as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { sendMessage };
|
||||
export { sendMessage as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 5
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 6
|
||||
```js
|
||||
export { addMessageListener } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export addMessageListener"
|
||||
};
|
||||
export { connectHMR } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export connectHMR"
|
||||
};
|
||||
export { addMessageListener } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export addMessageListener"
|
||||
};
|
||||
export { sendMessage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export sendMessage"
|
||||
};
|
||||
@@ -414,15 +387,15 @@ export { sendMessage } from "__TURBOPACK_PART__" assert {
|
||||
{
|
||||
Export(
|
||||
"connectHMR",
|
||||
): 1,
|
||||
ModuleEvaluation: 8,
|
||||
): 2,
|
||||
ModuleEvaluation: 5,
|
||||
Export(
|
||||
"addMessageListener",
|
||||
): 0,
|
||||
Exports: 9,
|
||||
): 3,
|
||||
Exports: 6,
|
||||
Export(
|
||||
"sendMessage",
|
||||
): 2,
|
||||
): 4,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -430,51 +403,27 @@ export { sendMessage } from "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as addMessageListener } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
let source;
|
||||
export { source as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { addMessageListener };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as connectHMR } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
const eventCallbacks = [];
|
||||
export { eventCallbacks as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { connectHMR };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as sendMessage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
import { b as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
export { sendMessage };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let source;
|
||||
export { source as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
const eventCallbacks = [];
|
||||
export { eventCallbacks as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { e as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { d as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
function getSocketProtocol(assetPrefix) {
|
||||
let protocol = location.protocol;
|
||||
@@ -524,54 +473,57 @@ function connectHMR(options) {
|
||||
}
|
||||
init();
|
||||
}
|
||||
export { getSocketProtocol as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { connectHMR };
|
||||
export { getSocketProtocol as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { connectHMR as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { connectHMR as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 3
|
||||
```js
|
||||
import { e as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import { b as eventCallbacks } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
function addMessageListener(cb) {
|
||||
eventCallbacks.push(cb);
|
||||
}
|
||||
export { addMessageListener as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { addMessageListener };
|
||||
export { addMessageListener as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 4
|
||||
```js
|
||||
import { d as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as source } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
function sendMessage(data) {
|
||||
if (!source || source.readyState !== source.OPEN) return;
|
||||
return source.send(data);
|
||||
}
|
||||
export { sendMessage as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { sendMessage };
|
||||
export { sendMessage as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 5
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 6
|
||||
```js
|
||||
export { addMessageListener } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export addMessageListener"
|
||||
};
|
||||
export { connectHMR } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export connectHMR"
|
||||
};
|
||||
export { addMessageListener } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export addMessageListener"
|
||||
};
|
||||
export { sendMessage } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export sendMessage"
|
||||
};
|
||||
|
||||
+251
-379
File diff suppressed because it is too large
Load Diff
+292
-292
@@ -967,56 +967,56 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(8, VarDeclarator(0)), ItemId(9, Normal), ItemId(10, Normal), ItemId(11, Normal), ItemId(12, Normal), ItemId(13, Normal), ItemId(14, Normal), ItemId(15, Normal), ItemId(16, Normal), ItemId(17, Normal), ItemId(18, Normal), ItemId(19, Normal), ItemId(20, Normal), ItemId(21, Normal), ItemId(22, Normal), ItemId(23, Normal), ItemId(24, Normal)]"];
|
||||
N1["Items: [ItemId(Export(("IPC", #2), "IPC"))]"];
|
||||
N2["Items: [ItemId(Export(("structuredError", #2), "structuredError"))]"];
|
||||
N3["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N4["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N5["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N6["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N7["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N8["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N9["Items: [ItemId(3, Normal)]"];
|
||||
N10["Items: [ItemId(4, Normal), ItemId(5, VarDeclarator(0)), ItemId(6, VarDeclarator(0))]"];
|
||||
N11["Items: [ItemId(7, Normal)]"];
|
||||
N5 --> N3;
|
||||
N7 --> N5;
|
||||
N0 -.-> N4;
|
||||
N0 -.-> N6;
|
||||
N2 --> N9;
|
||||
N1 --> N10;
|
||||
N9 --> N8;
|
||||
N8 --> N7;
|
||||
N0 -.-> N9;
|
||||
N10 -.-> N8;
|
||||
N10 -.-> N6;
|
||||
N10 --> N4;
|
||||
N10 --> N9;
|
||||
N11 --> N10;
|
||||
N11 -.-> N8;
|
||||
N11 -.-> N6;
|
||||
N11 -.-> N4;
|
||||
N11 -.-> N9;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N5["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N6["Items: [ItemId(3, Normal)]"];
|
||||
N7["Items: [ItemId(4, Normal), ItemId(5, VarDeclarator(0)), ItemId(6, VarDeclarator(0))]"];
|
||||
N8["Items: [ItemId(7, Normal)]"];
|
||||
N9["Items: [ItemId(8, VarDeclarator(0)), ItemId(9, Normal), ItemId(10, Normal), ItemId(11, Normal), ItemId(12, Normal), ItemId(13, Normal), ItemId(14, Normal), ItemId(15, Normal), ItemId(16, Normal), ItemId(17, Normal), ItemId(18, Normal), ItemId(19, Normal), ItemId(20, Normal), ItemId(21, Normal), ItemId(22, Normal), ItemId(23, Normal), ItemId(24, Normal), ItemId(ModuleEvaluation)]"];
|
||||
N10["Items: [ItemId(Export(("IPC", #2), "IPC"))]"];
|
||||
N11["Items: [ItemId(Export(("structuredError", #2), "structuredError"))]"];
|
||||
N2 --> N0;
|
||||
N4 --> N2;
|
||||
N9 -.-> N1;
|
||||
N9 -.-> N3;
|
||||
N11 --> N6;
|
||||
N10 --> N7;
|
||||
N1 --> N11;
|
||||
N4 --> N3;
|
||||
N0 -.-> N8;
|
||||
N0 --> N11;
|
||||
N9 --> N6;
|
||||
N6 --> N5;
|
||||
N5 --> N4;
|
||||
N9 -.-> N6;
|
||||
N7 -.-> N5;
|
||||
N7 -.-> N3;
|
||||
N7 --> N1;
|
||||
N7 --> N6;
|
||||
N8 --> N7;
|
||||
N8 -.-> N5;
|
||||
N8 -.-> N3;
|
||||
N8 -.-> N1;
|
||||
N8 -.-> N6;
|
||||
N7 --> N4;
|
||||
N10 --> N8;
|
||||
N1 --> N0;
|
||||
N9 -.-> N5;
|
||||
N9 --> N8;
|
||||
N6 --> N3;
|
||||
N3 --> N2;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 9,
|
||||
Export(
|
||||
"IPC",
|
||||
): 1,
|
||||
): 10,
|
||||
Exports: 12,
|
||||
Export(
|
||||
"structuredError",
|
||||
): 2,
|
||||
): 11,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1024,138 +1024,66 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "node:net";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
export { structuredError };
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
function structuredError(e) {
|
||||
@@ -1166,28 +1094,28 @@ function structuredError(e) {
|
||||
stack: typeof e.stack === "string" ? parseStackTrace(e.stack) : []
|
||||
};
|
||||
}
|
||||
export { structuredError as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { structuredError as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 7
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
function createIpc(port) {
|
||||
const socket = createConnection(port, "127.0.0.1");
|
||||
@@ -1317,67 +1245,56 @@ function createIpc(port) {
|
||||
}
|
||||
const PORT = process.argv[2];
|
||||
const IPC = createIpc(parseInt(PORT, 10));
|
||||
export { createIpc as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { createIpc as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { PORT as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { PORT as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { IPC as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 8
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
process.on("uncaughtException", (err)=>{
|
||||
IPC.sendError(err);
|
||||
});
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
@@ -1408,7 +1325,90 @@ improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { structuredError };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -1417,14 +1417,14 @@ export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 9,
|
||||
Export(
|
||||
"IPC",
|
||||
): 1,
|
||||
): 10,
|
||||
Exports: 12,
|
||||
Export(
|
||||
"structuredError",
|
||||
): 2,
|
||||
): 11,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1432,126 +1432,66 @@ export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "node:net";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
export { structuredError };
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
function structuredError(e) {
|
||||
@@ -1562,22 +1502,22 @@ function structuredError(e) {
|
||||
stack: typeof e.stack === "string" ? parseStackTrace(e.stack) : []
|
||||
};
|
||||
}
|
||||
export { structuredError as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { structuredError as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 7
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
function createIpc(port) {
|
||||
const socket = createConnection(port, "127.0.0.1");
|
||||
@@ -1707,43 +1647,32 @@ function createIpc(port) {
|
||||
}
|
||||
const PORT = process.argv[2];
|
||||
const IPC = createIpc(parseInt(PORT, 10));
|
||||
export { createIpc as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { createIpc as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { PORT as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { PORT as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { IPC as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 8
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
process.on("uncaughtException", (err)=>{
|
||||
IPC.sendError(err);
|
||||
});
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
@@ -1774,7 +1703,78 @@ improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { structuredError };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
|
||||
+98
-114
@@ -263,39 +263,37 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("x", #2), "x"))]"];
|
||||
N2["Items: [ItemId(Export(("y", #2), "y"))]"];
|
||||
N3["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(1, Normal)]"];
|
||||
N5["Items: [ItemId(2, Normal), ItemId(3, Normal)]"];
|
||||
N6["Items: [ItemId(4, Normal)]"];
|
||||
N7["Items: [ItemId(5, Normal), ItemId(6, Normal), ItemId(7, Normal), ItemId(8, Normal), ItemId(9, Normal)]"];
|
||||
N8["Items: [ItemId(11, VarDeclarator(0))]"];
|
||||
N4 --> N3;
|
||||
N1 --> N3;
|
||||
N1 --> N7;
|
||||
N5 --> N3;
|
||||
N6 -.-> N5;
|
||||
N6 --> N3;
|
||||
N0 --> N5;
|
||||
N8 --> N3;
|
||||
N2 --> N8;
|
||||
N7 --> N3;
|
||||
N8 --> N7;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, Normal)]"];
|
||||
N2["Items: [ItemId(2, Normal), ItemId(3, Normal)]"];
|
||||
N3["Items: [ItemId(4, Normal)]"];
|
||||
N4["Items: [ItemId(5, Normal), ItemId(6, Normal), ItemId(7, Normal), ItemId(8, Normal), ItemId(9, Normal)]"];
|
||||
N5["Items: [ItemId(11, VarDeclarator(0)), ItemId(Export(("y", #2), "y"))]"];
|
||||
N6["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N7["Items: [ItemId(Export(("x", #2), "x"))]"];
|
||||
N1 --> N0;
|
||||
N5 --> N4;
|
||||
N4 --> N0;
|
||||
N2 --> N0;
|
||||
N3 -.-> N2;
|
||||
N3 --> N0;
|
||||
N7 --> N4;
|
||||
N7 --> N0;
|
||||
N5 --> N0;
|
||||
N6 --> N2;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 9,
|
||||
ModuleEvaluation: 6,
|
||||
Exports: 8,
|
||||
Export(
|
||||
"y",
|
||||
): 2,
|
||||
): 5,
|
||||
Export(
|
||||
"x",
|
||||
): 1,
|
||||
): 7,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -303,71 +301,44 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
export { x };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as y } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { y };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let x = 1;
|
||||
export { x as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
## Part 1
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 2;
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 2
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 3;
|
||||
console.log(x);
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 3
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
x = 4;
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 4
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 5;
|
||||
x += 6;
|
||||
@@ -376,34 +347,54 @@ x += 8;
|
||||
x += 9;
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 5
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const y = x;
|
||||
export { y };
|
||||
export { y as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 6
|
||||
```js
|
||||
export { x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export x"
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
export { x };
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
export { y } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export y"
|
||||
};
|
||||
export { x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export x"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -412,14 +403,14 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 8,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 7,
|
||||
Export(
|
||||
"y",
|
||||
): 2,
|
||||
): 5,
|
||||
Export(
|
||||
"x",
|
||||
): 1,
|
||||
): 6,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -427,61 +418,42 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
"module evaluation";
|
||||
x = 3;
|
||||
console.log(x);
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
export { x };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as y } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
export { y };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let x = 1;
|
||||
export { x as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
## Part 1
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 2;
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 2
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 3;
|
||||
console.log(x);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 4;
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 4
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
x = 5;
|
||||
x += 6;
|
||||
@@ -490,37 +462,49 @@ x += 8;
|
||||
x += 9;
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 5
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const y = x;
|
||||
export { y };
|
||||
export { y as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 6
|
||||
```js
|
||||
export { x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export x"
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
export { x };
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
export { y } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export y"
|
||||
};
|
||||
export { x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export x"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import { a as x } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
"module evaluation";
|
||||
x = 3;
|
||||
console.log(x);
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
|
||||
+64
-64
@@ -216,26 +216,26 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("run", #2), "run"))]"];
|
||||
N2["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(1, VarDeclarator(0)), ItemId(2, VarDeclarator(0)), ItemId(3, VarDeclarator(0))]"];
|
||||
N4 --> N3;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, VarDeclarator(0)), ItemId(2, VarDeclarator(0)), ItemId(3, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N4["Items: [ItemId(Export(("run", #2), "run"))]"];
|
||||
N2 --> N1;
|
||||
N1 --> N0;
|
||||
N3 --> N2;
|
||||
N0 --> N4;
|
||||
N2 --> N0;
|
||||
N4 --> N2;
|
||||
N1 --> N4;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 3,
|
||||
Exports: 5,
|
||||
Export(
|
||||
"run",
|
||||
): 1,
|
||||
): 4,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -243,44 +243,28 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
import "./index";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as run } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
export { run };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "./index";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { IPC } from "./index";
|
||||
export { IPC as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { IPC as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { IPC } from "./index";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
const ipc = IPC;
|
||||
const queue = [];
|
||||
@@ -375,16 +359,32 @@ const run = async (moduleFactory)=>{
|
||||
}
|
||||
}
|
||||
};
|
||||
export { ipc as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { ipc as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { queue as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { queue as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { run as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { run as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as run } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
export { run };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
@@ -396,7 +396,7 @@ export { run } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -405,11 +405,11 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 3,
|
||||
Exports: 5,
|
||||
Export(
|
||||
"run",
|
||||
): 1,
|
||||
): 4,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -417,44 +417,28 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
import "./index";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as run } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
export { run };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "./index";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { IPC } from "./index";
|
||||
export { IPC as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { IPC as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { IPC } from "./index";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
const ipc = IPC;
|
||||
const queue = [];
|
||||
@@ -549,16 +533,32 @@ const run = async (moduleFactory)=>{
|
||||
}
|
||||
}
|
||||
};
|
||||
export { ipc as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { ipc as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { queue as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { queue as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { run as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { run as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as run } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
export { run };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
@@ -570,7 +570,7 @@ export { run } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+292
-292
@@ -967,56 +967,56 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(8, VarDeclarator(0)), ItemId(9, Normal), ItemId(10, Normal), ItemId(11, Normal), ItemId(12, Normal), ItemId(13, Normal), ItemId(14, Normal), ItemId(15, Normal), ItemId(16, Normal), ItemId(17, Normal), ItemId(18, Normal), ItemId(19, Normal), ItemId(20, Normal), ItemId(21, Normal), ItemId(22, Normal), ItemId(23, Normal), ItemId(24, Normal)]"];
|
||||
N1["Items: [ItemId(Export(("IPC", #2), "IPC"))]"];
|
||||
N2["Items: [ItemId(Export(("structuredError", #2), "structuredError"))]"];
|
||||
N3["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N4["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N5["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N6["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N7["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N8["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N9["Items: [ItemId(3, Normal)]"];
|
||||
N10["Items: [ItemId(4, Normal), ItemId(5, VarDeclarator(0)), ItemId(6, VarDeclarator(0))]"];
|
||||
N11["Items: [ItemId(7, Normal)]"];
|
||||
N5 --> N3;
|
||||
N7 --> N5;
|
||||
N0 -.-> N4;
|
||||
N0 -.-> N6;
|
||||
N2 --> N9;
|
||||
N1 --> N10;
|
||||
N9 --> N8;
|
||||
N8 --> N7;
|
||||
N0 -.-> N9;
|
||||
N10 -.-> N8;
|
||||
N10 -.-> N6;
|
||||
N10 --> N4;
|
||||
N10 --> N9;
|
||||
N11 --> N10;
|
||||
N11 -.-> N8;
|
||||
N11 -.-> N6;
|
||||
N11 -.-> N4;
|
||||
N11 -.-> N9;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N5["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N6["Items: [ItemId(3, Normal)]"];
|
||||
N7["Items: [ItemId(4, Normal), ItemId(5, VarDeclarator(0)), ItemId(6, VarDeclarator(0))]"];
|
||||
N8["Items: [ItemId(7, Normal)]"];
|
||||
N9["Items: [ItemId(8, VarDeclarator(0)), ItemId(9, Normal), ItemId(10, Normal), ItemId(11, Normal), ItemId(12, Normal), ItemId(13, Normal), ItemId(14, Normal), ItemId(15, Normal), ItemId(16, Normal), ItemId(17, Normal), ItemId(18, Normal), ItemId(19, Normal), ItemId(20, Normal), ItemId(21, Normal), ItemId(22, Normal), ItemId(23, Normal), ItemId(24, Normal), ItemId(ModuleEvaluation)]"];
|
||||
N10["Items: [ItemId(Export(("IPC", #2), "IPC"))]"];
|
||||
N11["Items: [ItemId(Export(("structuredError", #2), "structuredError"))]"];
|
||||
N2 --> N0;
|
||||
N4 --> N2;
|
||||
N9 -.-> N1;
|
||||
N9 -.-> N3;
|
||||
N11 --> N6;
|
||||
N10 --> N7;
|
||||
N1 --> N11;
|
||||
N4 --> N3;
|
||||
N0 -.-> N8;
|
||||
N0 --> N11;
|
||||
N9 --> N6;
|
||||
N6 --> N5;
|
||||
N5 --> N4;
|
||||
N9 -.-> N6;
|
||||
N7 -.-> N5;
|
||||
N7 -.-> N3;
|
||||
N7 --> N1;
|
||||
N7 --> N6;
|
||||
N8 --> N7;
|
||||
N8 -.-> N5;
|
||||
N8 -.-> N3;
|
||||
N8 -.-> N1;
|
||||
N8 -.-> N6;
|
||||
N7 --> N4;
|
||||
N10 --> N8;
|
||||
N1 --> N0;
|
||||
N9 -.-> N5;
|
||||
N9 --> N8;
|
||||
N6 --> N3;
|
||||
N3 --> N2;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 9,
|
||||
Export(
|
||||
"IPC",
|
||||
): 1,
|
||||
): 10,
|
||||
Exports: 12,
|
||||
Export(
|
||||
"structuredError",
|
||||
): 2,
|
||||
): 11,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1024,138 +1024,66 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "node:net";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
export { structuredError };
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
function structuredError(e) {
|
||||
@@ -1166,28 +1094,28 @@ function structuredError(e) {
|
||||
stack: typeof e.stack === "string" ? parseStackTrace(e.stack) : []
|
||||
};
|
||||
}
|
||||
export { structuredError as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { structuredError as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 7
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
function createIpc(port) {
|
||||
const socket = createConnection(port, "127.0.0.1");
|
||||
@@ -1317,67 +1245,56 @@ function createIpc(port) {
|
||||
}
|
||||
const PORT = process.argv[2];
|
||||
const IPC = createIpc(parseInt(PORT, 10));
|
||||
export { createIpc as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { createIpc as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { PORT as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { PORT as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { IPC as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 8
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
process.on("uncaughtException", (err)=>{
|
||||
IPC.sendError(err);
|
||||
});
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
@@ -1408,7 +1325,90 @@ improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { structuredError };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -1417,14 +1417,14 @@ export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 9,
|
||||
Export(
|
||||
"IPC",
|
||||
): 1,
|
||||
): 10,
|
||||
Exports: 12,
|
||||
Export(
|
||||
"structuredError",
|
||||
): 2,
|
||||
): 11,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1432,126 +1432,66 @@ export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "node:net";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
export { structuredError };
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
export { createConnection as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "../compiled/stacktrace-parser";
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
export { parseStackTrace as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
};
|
||||
import "./error";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
export { getProperError as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 5
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { parse as parseStackTrace } from "../compiled/stacktrace-parser";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { getProperError } from "./error";
|
||||
function structuredError(e) {
|
||||
@@ -1562,22 +1502,22 @@ function structuredError(e) {
|
||||
stack: typeof e.stack === "string" ? parseStackTrace(e.stack) : []
|
||||
};
|
||||
}
|
||||
export { structuredError as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { structuredError as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 7
|
||||
```js
|
||||
import { c as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { createConnection } from "node:net";
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
function createIpc(port) {
|
||||
const socket = createConnection(port, "127.0.0.1");
|
||||
@@ -1707,43 +1647,32 @@ function createIpc(port) {
|
||||
}
|
||||
const PORT = process.argv[2];
|
||||
const IPC = createIpc(parseInt(PORT, 10));
|
||||
export { createIpc as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { createIpc as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { PORT as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { PORT as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { IPC as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { IPC as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 8
|
||||
```js
|
||||
import { b as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
process.on("uncaughtException", (err)=>{
|
||||
IPC.sendError(err);
|
||||
});
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
@@ -1774,7 +1703,78 @@ improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
export { improveConsole as a } from "__TURBOPACK_VAR__" assert {
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { g as IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
export { IPC };
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { d as structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { structuredError };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
export { IPC } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export IPC"
|
||||
};
|
||||
export { structuredError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export structuredError"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
const improveConsole = (name, stream, addStack)=>{
|
||||
const original = console[name];
|
||||
const stdio = process[stream];
|
||||
console[name] = (...args)=>{
|
||||
stdio.write(`TURBOPACK_OUTPUT_B\n`);
|
||||
original(...args);
|
||||
if (addStack) {
|
||||
const stack = new Error().stack?.replace(/^.+\n.+\n/, "") + "\n";
|
||||
stdio.write("TURBOPACK_OUTPUT_S\n");
|
||||
stdio.write(stack);
|
||||
}
|
||||
stdio.write("TURBOPACK_OUTPUT_E\n");
|
||||
};
|
||||
};
|
||||
improveConsole("error", "stderr", true);
|
||||
improveConsole("warn", "stderr", true);
|
||||
improveConsole("count", "stdout", true);
|
||||
improveConsole("trace", "stderr", false);
|
||||
improveConsole("log", "stdout", true);
|
||||
improveConsole("group", "stdout", true);
|
||||
improveConsole("groupCollapsed", "stdout", true);
|
||||
improveConsole("table", "stdout", true);
|
||||
improveConsole("debug", "stdout", true);
|
||||
improveConsole("info", "stdout", true);
|
||||
improveConsole("dir", "stdout", true);
|
||||
improveConsole("dirxml", "stdout", true);
|
||||
improveConsole("timeEnd", "stdout", true);
|
||||
improveConsole("timeLog", "stdout", true);
|
||||
improveConsole("timeStamp", "stdout", true);
|
||||
improveConsole("assert", "stderr", true);
|
||||
"module evaluation";
|
||||
export { improveConsole as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
|
||||
+78
-110
@@ -178,22 +178,18 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(Export(("getClientComponentLoaderMetrics", #2), "getClientComponentLoaderMetrics"))]"];
|
||||
N1["Items: [ItemId(Export(("wrapClientComponentLoader", #2), "wrapClientComponentLoader"))]"];
|
||||
N2["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N5["Items: [ItemId(3, Normal)]"];
|
||||
N6["Items: [ItemId(4, Normal)]"];
|
||||
N7["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1 --> N5;
|
||||
N0 --> N6;
|
||||
N5 --> N2;
|
||||
N5 --> N4;
|
||||
N5 --> N3;
|
||||
N6 --> N2;
|
||||
N6 --> N3;
|
||||
N6 --> N4;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N2["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(3, Normal), ItemId(Export(("wrapClientComponentLoader", #2), "wrapClientComponentLoader"))]"];
|
||||
N4["Items: [ItemId(4, Normal), ItemId(Export(("getClientComponentLoaderMetrics", #2), "getClientComponentLoaderMetrics"))]"];
|
||||
N5["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N4 --> N0;
|
||||
N4 --> N2;
|
||||
N3 --> N1;
|
||||
N3 --> N2;
|
||||
N3 --> N0;
|
||||
N4 --> N1;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
@@ -201,12 +197,12 @@ graph TD
|
||||
{
|
||||
Export(
|
||||
"getClientComponentLoaderMetrics",
|
||||
): 0,
|
||||
ModuleEvaluation: 7,
|
||||
Exports: 8,
|
||||
): 4,
|
||||
ModuleEvaluation: 5,
|
||||
Exports: 6,
|
||||
Export(
|
||||
"wrapClientComponentLoader",
|
||||
): 1,
|
||||
): 3,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -214,55 +210,39 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getClientComponentLoaderMetrics };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { wrapClientComponentLoader };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as c } from "__TURBOPACK_VAR__" assert {
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
function wrapClientComponentLoader(ComponentMod) {
|
||||
if (!('performance' in globalThis)) {
|
||||
return ComponentMod.__next_app__;
|
||||
@@ -291,21 +271,22 @@ function wrapClientComponentLoader(ComponentMod) {
|
||||
}
|
||||
};
|
||||
}
|
||||
export { wrapClientComponentLoader as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { wrapClientComponentLoader };
|
||||
export { wrapClientComponentLoader as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 4
|
||||
```js
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
function getClientComponentLoaderMetrics(options = {}) {
|
||||
const metrics = clientComponentLoadStart === 0 ? undefined : {
|
||||
@@ -320,24 +301,25 @@ function getClientComponentLoaderMetrics(options = {}) {
|
||||
}
|
||||
return metrics;
|
||||
}
|
||||
export { getClientComponentLoaderMetrics as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { getClientComponentLoaderMetrics };
|
||||
export { getClientComponentLoaderMetrics as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 5
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 6
|
||||
```js
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export wrapClientComponentLoader"
|
||||
};
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
@@ -351,12 +333,12 @@ export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
{
|
||||
Export(
|
||||
"getClientComponentLoaderMetrics",
|
||||
): 0,
|
||||
ModuleEvaluation: 7,
|
||||
Exports: 8,
|
||||
): 4,
|
||||
ModuleEvaluation: 5,
|
||||
Exports: 6,
|
||||
Export(
|
||||
"wrapClientComponentLoader",
|
||||
): 1,
|
||||
): 3,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -364,55 +346,39 @@ export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getClientComponentLoaderMetrics };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { wrapClientComponentLoader };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as c } from "__TURBOPACK_VAR__" assert {
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
function wrapClientComponentLoader(ComponentMod) {
|
||||
if (!('performance' in globalThis)) {
|
||||
return ComponentMod.__next_app__;
|
||||
@@ -441,21 +407,22 @@ function wrapClientComponentLoader(ComponentMod) {
|
||||
}
|
||||
};
|
||||
}
|
||||
export { wrapClientComponentLoader as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { wrapClientComponentLoader };
|
||||
export { wrapClientComponentLoader as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 4
|
||||
```js
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
function getClientComponentLoaderMetrics(options = {}) {
|
||||
const metrics = clientComponentLoadStart === 0 ? undefined : {
|
||||
@@ -470,24 +437,25 @@ function getClientComponentLoaderMetrics(options = {}) {
|
||||
}
|
||||
return metrics;
|
||||
}
|
||||
export { getClientComponentLoaderMetrics as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { getClientComponentLoaderMetrics };
|
||||
export { getClientComponentLoaderMetrics as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 5
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 6
|
||||
```js
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export wrapClientComponentLoader"
|
||||
};
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
|
||||
+78
-110
@@ -178,22 +178,18 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(Export(("getClientComponentLoaderMetrics", #2), "getClientComponentLoaderMetrics"))]"];
|
||||
N1["Items: [ItemId(Export(("wrapClientComponentLoader", #2), "wrapClientComponentLoader"))]"];
|
||||
N2["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N5["Items: [ItemId(3, Normal)]"];
|
||||
N6["Items: [ItemId(4, Normal)]"];
|
||||
N7["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1 --> N5;
|
||||
N0 --> N6;
|
||||
N5 --> N2;
|
||||
N5 --> N4;
|
||||
N5 --> N3;
|
||||
N6 --> N2;
|
||||
N6 --> N3;
|
||||
N6 --> N4;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N2["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(3, Normal), ItemId(Export(("wrapClientComponentLoader", #2), "wrapClientComponentLoader"))]"];
|
||||
N4["Items: [ItemId(4, Normal), ItemId(Export(("getClientComponentLoaderMetrics", #2), "getClientComponentLoaderMetrics"))]"];
|
||||
N5["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N4 --> N0;
|
||||
N4 --> N2;
|
||||
N3 --> N1;
|
||||
N3 --> N2;
|
||||
N3 --> N0;
|
||||
N4 --> N1;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
@@ -201,12 +197,12 @@ graph TD
|
||||
{
|
||||
Export(
|
||||
"getClientComponentLoaderMetrics",
|
||||
): 0,
|
||||
ModuleEvaluation: 7,
|
||||
Exports: 8,
|
||||
): 4,
|
||||
ModuleEvaluation: 5,
|
||||
Exports: 6,
|
||||
Export(
|
||||
"wrapClientComponentLoader",
|
||||
): 1,
|
||||
): 3,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -214,55 +210,39 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getClientComponentLoaderMetrics };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { wrapClientComponentLoader };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as c } from "__TURBOPACK_VAR__" assert {
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
function wrapClientComponentLoader(ComponentMod) {
|
||||
if (!('performance' in globalThis)) {
|
||||
return ComponentMod.__next_app__;
|
||||
@@ -291,21 +271,22 @@ function wrapClientComponentLoader(ComponentMod) {
|
||||
}
|
||||
};
|
||||
}
|
||||
export { wrapClientComponentLoader as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { wrapClientComponentLoader };
|
||||
export { wrapClientComponentLoader as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 4
|
||||
```js
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
function getClientComponentLoaderMetrics(options = {}) {
|
||||
const metrics = clientComponentLoadStart === 0 ? undefined : {
|
||||
@@ -320,24 +301,25 @@ function getClientComponentLoaderMetrics(options = {}) {
|
||||
}
|
||||
return metrics;
|
||||
}
|
||||
export { getClientComponentLoaderMetrics as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { getClientComponentLoaderMetrics };
|
||||
export { getClientComponentLoaderMetrics as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 5
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 6
|
||||
```js
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export wrapClientComponentLoader"
|
||||
};
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
@@ -351,12 +333,12 @@ export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
{
|
||||
Export(
|
||||
"getClientComponentLoaderMetrics",
|
||||
): 0,
|
||||
ModuleEvaluation: 7,
|
||||
Exports: 8,
|
||||
): 4,
|
||||
ModuleEvaluation: 5,
|
||||
Exports: 6,
|
||||
Export(
|
||||
"wrapClientComponentLoader",
|
||||
): 1,
|
||||
): 3,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -364,55 +346,39 @@ export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getClientComponentLoaderMetrics };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { wrapClientComponentLoader };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
let clientComponentLoadStart = 0;
|
||||
export { clientComponentLoadStart as c } from "__TURBOPACK_VAR__" assert {
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
let clientComponentLoadTimes = 0;
|
||||
export { clientComponentLoadTimes as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
let clientComponentLoadCount = 0;
|
||||
export { clientComponentLoadCount as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
function wrapClientComponentLoader(ComponentMod) {
|
||||
if (!('performance' in globalThis)) {
|
||||
return ComponentMod.__next_app__;
|
||||
@@ -441,21 +407,22 @@ function wrapClientComponentLoader(ComponentMod) {
|
||||
}
|
||||
};
|
||||
}
|
||||
export { wrapClientComponentLoader as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { wrapClientComponentLoader };
|
||||
export { wrapClientComponentLoader as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 4
|
||||
```js
|
||||
import { e as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { c as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
import { c as clientComponentLoadCount } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import { d as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
import { a as clientComponentLoadStart } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import { b as clientComponentLoadTimes } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -1
|
||||
};
|
||||
function getClientComponentLoaderMetrics(options = {}) {
|
||||
const metrics = clientComponentLoadStart === 0 ? undefined : {
|
||||
@@ -470,24 +437,25 @@ function getClientComponentLoaderMetrics(options = {}) {
|
||||
}
|
||||
return metrics;
|
||||
}
|
||||
export { getClientComponentLoaderMetrics as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { getClientComponentLoaderMetrics };
|
||||
export { getClientComponentLoaderMetrics as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 5
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
## Part 6
|
||||
```js
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
export { wrapClientComponentLoader } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export wrapClientComponentLoader"
|
||||
};
|
||||
export { getClientComponentLoaderMetrics } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getClientComponentLoaderMetrics"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
|
||||
+705
-705
File diff suppressed because it is too large
Load Diff
+35
-67
@@ -79,26 +79,22 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(Export(("cat", #2), "cat"))]"];
|
||||
N1["Items: [ItemId(Export(("dog", #2), "DOG"))]"];
|
||||
N2["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1 --> N2;
|
||||
N0 --> N3;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0)), ItemId(Export(("dog", #2), "DOG"))]"];
|
||||
N1["Items: [ItemId(1, VarDeclarator(0)), ItemId(Export(("cat", #2), "cat"))]"];
|
||||
N2["Items: [ItemId(ModuleEvaluation)]"];
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 4,
|
||||
Exports: 5,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
Export(
|
||||
"cat",
|
||||
): 0,
|
||||
): 1,
|
||||
Export(
|
||||
"DOG",
|
||||
): 1,
|
||||
): 0,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -106,49 +102,35 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
const dog = "dog";
|
||||
export { dog as DOG };
|
||||
export { dog as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { cat };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
const cat = "cat";
|
||||
export { cat };
|
||||
export { cat as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { dog as DOG };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
const dog = "dog";
|
||||
export { dog as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
const cat = "cat";
|
||||
export { cat as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
};
|
||||
export { DOG } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export DOG"
|
||||
};
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
@@ -160,14 +142,14 @@ export { DOG } from "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 4,
|
||||
Exports: 5,
|
||||
ModuleEvaluation: 2,
|
||||
Exports: 3,
|
||||
Export(
|
||||
"cat",
|
||||
): 0,
|
||||
): 1,
|
||||
Export(
|
||||
"DOG",
|
||||
): 1,
|
||||
): 0,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -175,49 +157,35 @@ export { DOG } from "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import { a as cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
const dog = "dog";
|
||||
export { dog as DOG };
|
||||
export { dog as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { cat };
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { b as dog } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
const cat = "cat";
|
||||
export { cat };
|
||||
export { cat as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { dog as DOG };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
const dog = "dog";
|
||||
export { dog as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
const cat = "cat";
|
||||
export { cat as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
};
|
||||
export { DOG } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export DOG"
|
||||
};
|
||||
export { cat } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export cat"
|
||||
};
|
||||
|
||||
```
|
||||
## Merged (module eval)
|
||||
|
||||
+249
-265
@@ -348,70 +348,68 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("customAlphabet", #2), "customAlphabet"))]"];
|
||||
N2["Items: [ItemId(Export(("customRandom", #2), "customRandom"))]"];
|
||||
N3["Items: [ItemId(Export(("nanoid", #2), "nanoid"))]"];
|
||||
N4["Items: [ItemId(Export(("random", #2), "random"))]"];
|
||||
N5["Items: [ItemId(Export(("urlAlphabet", #2), "urlAlphabet"))]"];
|
||||
N6["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N9["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N10["Items: [ItemId(2, VarDeclarator(0)), ItemId(4, VarDeclarator(0))]"];
|
||||
N11["Items: [ItemId(3, VarDeclarator(0))]"];
|
||||
N12["Items: [ItemId(3, VarDeclarator(1))]"];
|
||||
N13["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N14["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N15["Items: [ItemId(7, VarDeclarator(0))]"];
|
||||
N16["Items: [ItemId(8, VarDeclarator(0))]"];
|
||||
N8 --> N6;
|
||||
N10 --> N11;
|
||||
N9 --> N8;
|
||||
N10 --> N7;
|
||||
N10 --> N12;
|
||||
N10 --> N8;
|
||||
N13 --> N10;
|
||||
N13 --> N11;
|
||||
N13 --> N12;
|
||||
N14 --> N10;
|
||||
N15 --> N14;
|
||||
N15 --> N13;
|
||||
N16 --> N10;
|
||||
N16 --> N12;
|
||||
N16 --> N9;
|
||||
N16 --> N13;
|
||||
N16 --> N11;
|
||||
N3 --> N16;
|
||||
N1 --> N15;
|
||||
N2 --> N14;
|
||||
N5 --> N16;
|
||||
N5 --> N9;
|
||||
N4 --> N13;
|
||||
N0 --> N14;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(2, VarDeclarator(0)), ItemId(4, VarDeclarator(0))]"];
|
||||
N5["Items: [ItemId(3, VarDeclarator(0))]"];
|
||||
N6["Items: [ItemId(3, VarDeclarator(1))]"];
|
||||
N7["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N8["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N9["Items: [ItemId(7, VarDeclarator(0)), ItemId(Export(("customAlphabet", #2), "customAlphabet"))]"];
|
||||
N10["Items: [ItemId(8, VarDeclarator(0))]"];
|
||||
N11["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N12["Items: [ItemId(Export(("customRandom", #2), "customRandom"))]"];
|
||||
N13["Items: [ItemId(Export(("nanoid", #2), "nanoid"))]"];
|
||||
N14["Items: [ItemId(Export(("random", #2), "random"))]"];
|
||||
N15["Items: [ItemId(Export(("urlAlphabet", #2), "urlAlphabet"))]"];
|
||||
N2 --> N0;
|
||||
N4 --> N5;
|
||||
N1 --> N0;
|
||||
N4 --> N1;
|
||||
N4 --> N6;
|
||||
N4 --> N2;
|
||||
N7 --> N4;
|
||||
N7 --> N5;
|
||||
N7 --> N6;
|
||||
N8 --> N4;
|
||||
N9 --> N7;
|
||||
N9 --> N8;
|
||||
N10 --> N4;
|
||||
N10 --> N6;
|
||||
N10 --> N3;
|
||||
N10 --> N7;
|
||||
N10 --> N5;
|
||||
N13 --> N10;
|
||||
N3 --> N2;
|
||||
N12 --> N8;
|
||||
N15 --> N10;
|
||||
N15 --> N3;
|
||||
N14 --> N7;
|
||||
N11 --> N8;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 17,
|
||||
ModuleEvaluation: 11,
|
||||
Exports: 16,
|
||||
Export(
|
||||
"customRandom",
|
||||
): 2,
|
||||
): 12,
|
||||
Export(
|
||||
"customAlphabet",
|
||||
): 1,
|
||||
): 9,
|
||||
Export(
|
||||
"random",
|
||||
): 4,
|
||||
): 14,
|
||||
Export(
|
||||
"urlAlphabet",
|
||||
): 5,
|
||||
): 15,
|
||||
Export(
|
||||
"nanoid",
|
||||
): 3,
|
||||
): 13,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -419,105 +417,53 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
};
|
||||
"module evaluation";
|
||||
import 'crypto';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as customAlphabet } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import crypto from 'crypto';
|
||||
export { crypto as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { customAlphabet };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
export { customRandom };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as nanoid } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
};
|
||||
export { nanoid };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
export { random };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 16
|
||||
};
|
||||
export { urlAlphabet };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import 'crypto';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import crypto from 'crypto';
|
||||
export { crypto as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import './url-alphabet/index.js';
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
export { urlAlphabet as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { urlAlphabet as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 4
|
||||
```js
|
||||
import { g as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import { c as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import { h as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import crypto from 'crypto';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
const POOL_SIZE_MULTIPLIER = 128;
|
||||
let fillPool = (bytes)=>{
|
||||
@@ -531,54 +477,54 @@ let fillPool = (bytes)=>{
|
||||
}
|
||||
poolOffset += bytes;
|
||||
};
|
||||
export { POOL_SIZE_MULTIPLIER as i } from "__TURBOPACK_VAR__" assert {
|
||||
export { POOL_SIZE_MULTIPLIER as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { fillPool as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { fillPool as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 5
|
||||
```js
|
||||
let pool;
|
||||
export { pool as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { pool as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
## Part 6
|
||||
```js
|
||||
let poolOffset;
|
||||
export { poolOffset as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { poolOffset as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
## Part 7
|
||||
```js
|
||||
import { j as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { f as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { h as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { g as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import { c as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
let random = (bytes)=>{
|
||||
fillPool((bytes -= 0));
|
||||
return pool.subarray(poolOffset - bytes, poolOffset);
|
||||
};
|
||||
export { random as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { random as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
let customRandom = (alphabet, size, getRandom)=>{
|
||||
let mask = (2 << (31 - Math.clz32((alphabet.length - 1) | 1))) - 1;
|
||||
@@ -595,42 +541,43 @@ let customRandom = (alphabet, size, getRandom)=>{
|
||||
}
|
||||
};
|
||||
};
|
||||
export { customRandom as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { customRandom as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 9
|
||||
```js
|
||||
import { b as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
import { h as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import { d as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import { g as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
let customAlphabet = (alphabet, size)=>customRandom(alphabet, size, random);
|
||||
export { customAlphabet as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { customAlphabet };
|
||||
export { customAlphabet as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 10
|
||||
```js
|
||||
import { j as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { f as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { g as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import { c as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
import { h as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
let nanoid = (size = 21)=>{
|
||||
fillPool((size -= 0));
|
||||
@@ -640,12 +587,56 @@ let nanoid = (size = 21)=>{
|
||||
}
|
||||
return id;
|
||||
};
|
||||
export { nanoid as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { nanoid as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 17
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { h as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { customRandom };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { j as nanoid } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
export { nanoid };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { g as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
export { random };
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
export { urlAlphabet };
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
export { customAlphabet } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export customAlphabet"
|
||||
@@ -667,7 +658,7 @@ export { urlAlphabet } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -676,23 +667,23 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 17,
|
||||
ModuleEvaluation: 11,
|
||||
Exports: 16,
|
||||
Export(
|
||||
"customRandom",
|
||||
): 2,
|
||||
): 12,
|
||||
Export(
|
||||
"customAlphabet",
|
||||
): 1,
|
||||
): 9,
|
||||
Export(
|
||||
"random",
|
||||
): 4,
|
||||
): 14,
|
||||
Export(
|
||||
"urlAlphabet",
|
||||
): 5,
|
||||
): 15,
|
||||
Export(
|
||||
"nanoid",
|
||||
): 3,
|
||||
): 13,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -700,105 +691,53 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
};
|
||||
"module evaluation";
|
||||
import 'crypto';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as customAlphabet } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import crypto from 'crypto';
|
||||
export { crypto as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { customAlphabet };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
export { customRandom };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as nanoid } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -16
|
||||
};
|
||||
export { nanoid };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
export { random };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 16
|
||||
};
|
||||
export { urlAlphabet };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import 'crypto';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import crypto from 'crypto';
|
||||
export { crypto as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import './url-alphabet/index.js';
|
||||
|
||||
```
|
||||
## Part 9
|
||||
## Part 3
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
export { urlAlphabet as f } from "__TURBOPACK_VAR__" assert {
|
||||
export { urlAlphabet as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 4
|
||||
```js
|
||||
import { g as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import { c as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import { h as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import crypto from 'crypto';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
const POOL_SIZE_MULTIPLIER = 128;
|
||||
let fillPool = (bytes)=>{
|
||||
@@ -812,54 +751,54 @@ let fillPool = (bytes)=>{
|
||||
}
|
||||
poolOffset += bytes;
|
||||
};
|
||||
export { POOL_SIZE_MULTIPLIER as i } from "__TURBOPACK_VAR__" assert {
|
||||
export { POOL_SIZE_MULTIPLIER as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { fillPool as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { fillPool as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 5
|
||||
```js
|
||||
let pool;
|
||||
export { pool as h } from "__TURBOPACK_VAR__" assert {
|
||||
export { pool as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
## Part 6
|
||||
```js
|
||||
let poolOffset;
|
||||
export { poolOffset as g } from "__TURBOPACK_VAR__" assert {
|
||||
export { poolOffset as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
## Part 7
|
||||
```js
|
||||
import { j as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { f as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { h as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { g as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import { c as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
let random = (bytes)=>{
|
||||
fillPool((bytes -= 0));
|
||||
return pool.subarray(poolOffset - bytes, poolOffset);
|
||||
};
|
||||
export { random as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { random as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
let customRandom = (alphabet, size, getRandom)=>{
|
||||
let mask = (2 << (31 - Math.clz32((alphabet.length - 1) | 1))) - 1;
|
||||
@@ -876,42 +815,43 @@ let customRandom = (alphabet, size, getRandom)=>{
|
||||
}
|
||||
};
|
||||
};
|
||||
export { customRandom as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { customRandom as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 9
|
||||
```js
|
||||
import { b as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
import { h as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import { d as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import { g as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
let customAlphabet = (alphabet, size)=>customRandom(alphabet, size, random);
|
||||
export { customAlphabet as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { customAlphabet };
|
||||
export { customAlphabet as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 10
|
||||
```js
|
||||
import { j as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
import { f as fillPool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
};
|
||||
import { g as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
import { c as poolOffset } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
import { h as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as pool } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
let nanoid = (size = 21)=>{
|
||||
fillPool((size -= 0));
|
||||
@@ -921,12 +861,56 @@ let nanoid = (size = 21)=>{
|
||||
}
|
||||
return id;
|
||||
};
|
||||
export { nanoid as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { nanoid as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 17
|
||||
## Part 11
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { h as customRandom } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { customRandom };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { j as nanoid } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -10
|
||||
};
|
||||
export { nanoid };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { g as random } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
export { random };
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { urlAlphabet } from './url-alphabet/index.js';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
};
|
||||
export { urlAlphabet };
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
export { customAlphabet } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export customAlphabet"
|
||||
@@ -948,7 +932,7 @@ export { urlAlphabet } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
__turbopack_part__: 8
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+177
-193
@@ -410,54 +410,52 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("NextResponse", #2), "NextResponse"))]"];
|
||||
N2["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N5["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N6["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(2, ImportBinding(1))]"];
|
||||
N9["Items: [ItemId(3, ImportOfModule)]"];
|
||||
N10["Items: [ItemId(3, ImportBinding(0))]"];
|
||||
N11["Items: [ItemId(4, ImportOfModule)]"];
|
||||
N12["Items: [ItemId(4, ImportBinding(0))]"];
|
||||
N13["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N14["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N15["Items: [ItemId(7, Normal), ItemId(8, Normal)]"];
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(2, ImportOfModule)]"];
|
||||
N5["Items: [ItemId(2, ImportBinding(0))]"];
|
||||
N6["Items: [ItemId(2, ImportBinding(1))]"];
|
||||
N7["Items: [ItemId(3, ImportOfModule)]"];
|
||||
N8["Items: [ItemId(3, ImportBinding(0))]"];
|
||||
N9["Items: [ItemId(4, ImportOfModule)]"];
|
||||
N10["Items: [ItemId(4, ImportBinding(0))]"];
|
||||
N11["Items: [ItemId(5, VarDeclarator(0))]"];
|
||||
N12["Items: [ItemId(6, VarDeclarator(0))]"];
|
||||
N13["Items: [ItemId(7, Normal), ItemId(8, Normal), ItemId(Export(("NextResponse", #2), "NextResponse"))]"];
|
||||
N14["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N2 --> N0;
|
||||
N4 --> N2;
|
||||
N6 --> N4;
|
||||
N9 --> N6;
|
||||
N7 --> N4;
|
||||
N9 --> N7;
|
||||
N11 --> N9;
|
||||
N13 --> N11;
|
||||
N14 --> N13;
|
||||
N15 --> N12;
|
||||
N15 --> N3;
|
||||
N12 --> N11;
|
||||
N15 --> N10;
|
||||
N15 --> N13;
|
||||
N15 --> N5;
|
||||
N15 --> N7;
|
||||
N15 --> N14;
|
||||
N15 --> N8;
|
||||
N1 --> N15;
|
||||
N0 --> N14;
|
||||
N13 --> N6;
|
||||
N13 --> N12;
|
||||
N13 --> N5;
|
||||
N13 --> N3;
|
||||
N13 --> N11;
|
||||
N13 --> N8;
|
||||
N8 --> N7;
|
||||
N13 --> N1;
|
||||
N13 --> N10;
|
||||
N10 --> N9;
|
||||
N14 --> N12;
|
||||
N1 --> N0;
|
||||
N3 --> N2;
|
||||
N5 --> N4;
|
||||
N7 --> N6;
|
||||
N8 --> N6;
|
||||
N10 --> N9;
|
||||
N6 --> N4;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 14,
|
||||
Export(
|
||||
"NextResponse",
|
||||
): 1,
|
||||
Exports: 16,
|
||||
): 13,
|
||||
Exports: 15,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -465,23 +463,26 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
};
|
||||
"module evaluation";
|
||||
import '../../web/spec-extension/cookies';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as NextResponse } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
export { stringifyCookie as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { NextResponse };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import '../next-url';
|
||||
|
||||
```
|
||||
## Part 3
|
||||
@@ -489,8 +490,8 @@ import '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
export { stringifyCookie as b } from "__TURBOPACK_VAR__" assert {
|
||||
import { NextURL } from '../next-url';
|
||||
export { NextURL as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -500,7 +501,7 @@ export { stringifyCookie as b } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import '../next-url';
|
||||
import '../utils';
|
||||
|
||||
```
|
||||
## Part 5
|
||||
@@ -508,8 +509,8 @@ import '../next-url';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { NextURL } from '../next-url';
|
||||
export { NextURL as c } from "__TURBOPACK_VAR__" assert {
|
||||
import { toNodeOutgoingHttpHeaders } from '../utils';
|
||||
export { toNodeOutgoingHttpHeaders as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -519,27 +520,27 @@ export { NextURL as c } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import '../utils';
|
||||
import { validateURL } from '../utils';
|
||||
export { validateURL as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { toNodeOutgoingHttpHeaders } from '../utils';
|
||||
export { toNodeOutgoingHttpHeaders as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import './adapters/reflect';
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { validateURL } from '../utils';
|
||||
export { validateURL as e } from "__TURBOPACK_VAR__" assert {
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
export { ReflectAdapter as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -547,9 +548,9 @@ export { validateURL as e } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import './adapters/reflect';
|
||||
import './cookies';
|
||||
|
||||
```
|
||||
## Part 10
|
||||
@@ -557,8 +558,8 @@ import './adapters/reflect';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
export { ReflectAdapter as f } from "__TURBOPACK_VAR__" assert {
|
||||
import { ResponseCookies } from './cookies';
|
||||
export { ResponseCookies as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -568,7 +569,10 @@ export { ReflectAdapter as f } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import './cookies';
|
||||
const INTERNALS = Symbol('internal response');
|
||||
export { INTERNALS as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
@@ -576,28 +580,6 @@ import './cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import { ResponseCookies } from './cookies';
|
||||
export { ResponseCookies as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
const INTERNALS = Symbol('internal response');
|
||||
export { INTERNALS as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
};
|
||||
const REDIRECTS = new Set([
|
||||
301,
|
||||
302,
|
||||
@@ -605,42 +587,42 @@ const REDIRECTS = new Set([
|
||||
307,
|
||||
308
|
||||
]);
|
||||
export { REDIRECTS as i } from "__TURBOPACK_VAR__" assert {
|
||||
export { REDIRECTS as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 13
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { validateURL } from '../utils';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import { ResponseCookies } from './cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
import { h as INTERNALS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { validateURL } from '../utils';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { ResponseCookies } from './cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
import { g as INTERNALS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { NextURL } from '../next-url';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { toNodeOutgoingHttpHeaders } from '../utils';
|
||||
import { i as REDIRECTS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
import { h as REDIRECTS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
};
|
||||
function handleMiddlewareField(init, headers) {
|
||||
var _init_request;
|
||||
@@ -744,15 +726,24 @@ class NextResponse extends Response {
|
||||
});
|
||||
}
|
||||
}
|
||||
export { handleMiddlewareField as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextResponse };
|
||||
export { handleMiddlewareField as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { NextResponse as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextResponse as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 14
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
export { NextResponse } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export NextResponse"
|
||||
@@ -762,7 +753,7 @@ export { NextResponse } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -771,11 +762,11 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 14,
|
||||
Export(
|
||||
"NextResponse",
|
||||
): 1,
|
||||
Exports: 16,
|
||||
): 13,
|
||||
Exports: 15,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -783,23 +774,26 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
};
|
||||
"module evaluation";
|
||||
import '../../web/spec-extension/cookies';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as NextResponse } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
export { stringifyCookie as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { NextResponse };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import '../next-url';
|
||||
|
||||
```
|
||||
## Part 3
|
||||
@@ -807,8 +801,8 @@ import '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
export { stringifyCookie as b } from "__TURBOPACK_VAR__" assert {
|
||||
import { NextURL } from '../next-url';
|
||||
export { NextURL as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -818,7 +812,7 @@ export { stringifyCookie as b } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import '../next-url';
|
||||
import '../utils';
|
||||
|
||||
```
|
||||
## Part 5
|
||||
@@ -826,8 +820,8 @@ import '../next-url';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { NextURL } from '../next-url';
|
||||
export { NextURL as c } from "__TURBOPACK_VAR__" assert {
|
||||
import { toNodeOutgoingHttpHeaders } from '../utils';
|
||||
export { toNodeOutgoingHttpHeaders as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -837,27 +831,27 @@ export { NextURL as c } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import '../utils';
|
||||
import { validateURL } from '../utils';
|
||||
export { validateURL as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { toNodeOutgoingHttpHeaders } from '../utils';
|
||||
export { toNodeOutgoingHttpHeaders as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import './adapters/reflect';
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { validateURL } from '../utils';
|
||||
export { validateURL as e } from "__TURBOPACK_VAR__" assert {
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
export { ReflectAdapter as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -865,9 +859,9 @@ export { validateURL as e } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import './adapters/reflect';
|
||||
import './cookies';
|
||||
|
||||
```
|
||||
## Part 10
|
||||
@@ -875,8 +869,8 @@ import './adapters/reflect';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
export { ReflectAdapter as f } from "__TURBOPACK_VAR__" assert {
|
||||
import { ResponseCookies } from './cookies';
|
||||
export { ResponseCookies as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -886,7 +880,10 @@ export { ReflectAdapter as f } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import './cookies';
|
||||
const INTERNALS = Symbol('internal response');
|
||||
export { INTERNALS as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
@@ -894,28 +891,6 @@ import './cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import { ResponseCookies } from './cookies';
|
||||
export { ResponseCookies as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
const INTERNALS = Symbol('internal response');
|
||||
export { INTERNALS as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
};
|
||||
const REDIRECTS = new Set([
|
||||
301,
|
||||
302,
|
||||
@@ -923,42 +898,42 @@ const REDIRECTS = new Set([
|
||||
307,
|
||||
308
|
||||
]);
|
||||
export { REDIRECTS as i } from "__TURBOPACK_VAR__" assert {
|
||||
export { REDIRECTS as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 13
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { validateURL } from '../utils';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 11
|
||||
};
|
||||
import { ResponseCookies } from './cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
import { h as INTERNALS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { validateURL } from '../utils';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
import { ResponseCookies } from './cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { stringifyCookie } from '../../web/spec-extension/cookies';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import { ReflectAdapter } from './adapters/reflect';
|
||||
import { g as INTERNALS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import { NextURL } from '../next-url';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
import { toNodeOutgoingHttpHeaders } from '../utils';
|
||||
import { i as REDIRECTS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
import { h as REDIRECTS } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
};
|
||||
function handleMiddlewareField(init, headers) {
|
||||
var _init_request;
|
||||
@@ -1062,15 +1037,24 @@ class NextResponse extends Response {
|
||||
});
|
||||
}
|
||||
}
|
||||
export { handleMiddlewareField as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextResponse };
|
||||
export { handleMiddlewareField as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { NextResponse as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextResponse as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 16
|
||||
## Part 14
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
export { NextResponse } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export NextResponse"
|
||||
@@ -1080,7 +1064,7 @@ export { NextResponse } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 14
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+285
-285
@@ -596,67 +596,67 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("BubbledError", #2), "BubbledError"))]"];
|
||||
N2["Items: [ItemId(Export(("SpanKind", #2), "SpanKind"))]"];
|
||||
N3["Items: [ItemId(Export(("SpanStatusCode", #2), "SpanStatusCode"))]"];
|
||||
N4["Items: [ItemId(Export(("getTracer", #2), "getTracer"))]"];
|
||||
N5["Items: [ItemId(Export(("isBubbledError", #2), "isBubbledError"))]"];
|
||||
N6["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(0, ImportBinding(1))]"];
|
||||
N9["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N10["Items: [ItemId(2, Normal)]"];
|
||||
N11["Items: [ItemId(3, VarDeclarator(0))]"];
|
||||
N12["Items: [ItemId(4, VarDeclarator(0)), ItemId(8, VarDeclarator(0)), ItemId(9, VarDeclarator(0)), ItemId(10, VarDeclarator(0)), ItemId(11, VarDeclarator(0)), ItemId(12, VarDeclarator(0)), ItemId(13, Normal), ItemId(14, VarDeclarator(0))]"];
|
||||
N13["Items: [ItemId(5, Normal)]"];
|
||||
N14["Items: [ItemId(6, Normal)]"];
|
||||
N15["Items: [ItemId(7, VarDeclarator(0))]"];
|
||||
N10 --> N9;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(0, ImportBinding(1))]"];
|
||||
N3["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N4["Items: [ItemId(2, Normal)]"];
|
||||
N5["Items: [ItemId(3, VarDeclarator(0))]"];
|
||||
N6["Items: [ItemId(4, VarDeclarator(0)), ItemId(8, VarDeclarator(0)), ItemId(9, VarDeclarator(0)), ItemId(10, VarDeclarator(0)), ItemId(11, VarDeclarator(0)), ItemId(12, VarDeclarator(0)), ItemId(13, Normal), ItemId(14, VarDeclarator(0))]"];
|
||||
N7["Items: [ItemId(5, Normal)]"];
|
||||
N8["Items: [ItemId(6, Normal)]"];
|
||||
N9["Items: [ItemId(7, VarDeclarator(0))]"];
|
||||
N10["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N11["Items: [ItemId(Export(("BubbledError", #2), "BubbledError"))]"];
|
||||
N12["Items: [ItemId(Export(("SpanKind", #2), "SpanKind"))]"];
|
||||
N13["Items: [ItemId(Export(("SpanStatusCode", #2), "SpanStatusCode"))]"];
|
||||
N14["Items: [ItemId(Export(("getTracer", #2), "getTracer"))]"];
|
||||
N15["Items: [ItemId(Export(("isBubbledError", #2), "isBubbledError"))]"];
|
||||
N4 --> N3;
|
||||
N4 --> N0;
|
||||
N5 --> N4;
|
||||
N5 --> N3;
|
||||
N9 --> N8;
|
||||
N9 --> N5;
|
||||
N11 --> N7;
|
||||
N6 -.-> N7;
|
||||
N15 --> N8;
|
||||
N14 --> N6;
|
||||
N13 --> N9;
|
||||
N6 --> N3;
|
||||
N6 --> N4;
|
||||
N10 --> N6;
|
||||
N11 --> N10;
|
||||
N11 --> N9;
|
||||
N15 --> N14;
|
||||
N15 --> N11;
|
||||
N1 --> N13;
|
||||
N12 -.-> N13;
|
||||
N5 --> N14;
|
||||
N4 --> N12;
|
||||
N3 --> N15;
|
||||
N12 --> N9;
|
||||
N12 --> N10;
|
||||
N0 --> N12;
|
||||
N8 --> N6;
|
||||
N12 --> N11;
|
||||
N3 --> N11;
|
||||
N12 --> N15;
|
||||
N12 --> N7;
|
||||
N7 --> N6;
|
||||
N14 --> N13;
|
||||
N12 --> N8;
|
||||
N2 --> N11;
|
||||
N2 --> N0;
|
||||
N6 --> N5;
|
||||
N13 --> N5;
|
||||
N6 --> N9;
|
||||
N6 --> N1;
|
||||
N1 --> N0;
|
||||
N8 --> N7;
|
||||
N6 --> N2;
|
||||
N12 --> N5;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 10,
|
||||
Export(
|
||||
"SpanKind",
|
||||
): 2,
|
||||
): 12,
|
||||
Export(
|
||||
"isBubbledError",
|
||||
): 5,
|
||||
): 15,
|
||||
Exports: 16,
|
||||
Export(
|
||||
"SpanStatusCode",
|
||||
): 3,
|
||||
): 13,
|
||||
Export(
|
||||
"BubbledError",
|
||||
): 1,
|
||||
): 11,
|
||||
Export(
|
||||
"getTracer",
|
||||
): 4,
|
||||
): 14,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -664,97 +664,46 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
import './constants';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { LogSpanAllowList } from './constants';
|
||||
export { LogSpanAllowList as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { BubbledError };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as SpanKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextVanillaSpanAllowlist } from './constants';
|
||||
export { NextVanillaSpanAllowlist as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { SpanKind };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
let api;
|
||||
export { api as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
};
|
||||
export { SpanStatusCode };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as getTracer } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
};
|
||||
export { getTracer };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { e as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
export { isBubbledError };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import './constants';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { LogSpanAllowList } from './constants';
|
||||
export { LogSpanAllowList as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { NextVanillaSpanAllowlist } from './constants';
|
||||
export { NextVanillaSpanAllowlist as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
let api;
|
||||
export { api as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { h as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { c as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
api = require('@opentelemetry/api');
|
||||
@@ -767,68 +716,68 @@ if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
}
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 5
|
||||
```js
|
||||
import { h as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { c as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const { context, propagation, trace, SpanStatusCode, SpanKind, ROOT_CONTEXT } = api;
|
||||
export { context as i } from "__TURBOPACK_VAR__" assert {
|
||||
export { context as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { propagation as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { propagation as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { trace as k } from "__TURBOPACK_VAR__" assert {
|
||||
export { trace as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { SpanStatusCode as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { SpanStatusCode as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { SpanKind as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { SpanKind as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { ROOT_CONTEXT as l } from "__TURBOPACK_VAR__" assert {
|
||||
export { ROOT_CONTEXT as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
## Part 6
|
||||
```js
|
||||
import { i as context } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as context } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { j as propagation } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { e as propagation } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { h as api } from "__TURBOPACK_PART__" assert {
|
||||
import { c as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { j as closeSpanWithError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
import { m as closeSpanWithError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { LogSpanAllowList } from './constants';
|
||||
import { l as ROOT_CONTEXT } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { i as ROOT_CONTEXT } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextVanillaSpanAllowlist } from './constants';
|
||||
import { k as trace } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { f as trace } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 13
|
||||
__turbopack_part__: 7
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const isPromise = (p)=>{
|
||||
return p !== null && typeof p === 'object' && typeof p.then === 'function';
|
||||
@@ -987,33 +936,33 @@ const getTracer = (()=>{
|
||||
const tracer = new NextTracerImpl();
|
||||
return ()=>tracer;
|
||||
})();
|
||||
export { isPromise as n } from "__TURBOPACK_VAR__" assert {
|
||||
export { isPromise as k } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { rootSpanAttributesStore as o } from "__TURBOPACK_VAR__" assert {
|
||||
export { rootSpanAttributesStore as l } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { rootSpanIdKey as p } from "__TURBOPACK_VAR__" assert {
|
||||
export { rootSpanIdKey as m } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { lastSpanId as q } from "__TURBOPACK_VAR__" assert {
|
||||
export { lastSpanId as n } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getSpanId as r } from "__TURBOPACK_VAR__" assert {
|
||||
export { getSpanId as o } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { clientTraceDataSetter as s } from "__TURBOPACK_VAR__" assert {
|
||||
export { clientTraceDataSetter as p } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { NextTracerImpl as t } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextTracerImpl as q } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getTracer as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { getTracer as r } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
## Part 7
|
||||
```js
|
||||
class BubbledError extends Error {
|
||||
constructor(bubble, result){
|
||||
@@ -1022,32 +971,32 @@ class BubbledError extends Error {
|
||||
this.result = result;
|
||||
}
|
||||
}
|
||||
export { BubbledError as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { BubbledError as s } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
## Part 8
|
||||
```js
|
||||
import { a as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import { s as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
function isBubbledError(error) {
|
||||
if (typeof error !== 'object' || error === null) return false;
|
||||
return error instanceof BubbledError;
|
||||
}
|
||||
export { isBubbledError as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { isBubbledError as t } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 9
|
||||
```js
|
||||
import { e as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
import { t as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import { c as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { g as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
const closeSpanWithError = (span, error)=>{
|
||||
if (isBubbledError(error) && error.bubble) {
|
||||
@@ -1063,10 +1012,61 @@ const closeSpanWithError = (span, error)=>{
|
||||
}
|
||||
span.end();
|
||||
};
|
||||
export { closeSpanWithError as m } from "__TURBOPACK_VAR__" assert {
|
||||
export { closeSpanWithError as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { s as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
export { BubbledError };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { h as SpanKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { SpanKind };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { g as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
export { SpanStatusCode };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { r as getTracer } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { getTracer };
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import { t as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { isBubbledError };
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
@@ -1090,7 +1090,7 @@ export { isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -1099,23 +1099,23 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 10,
|
||||
Export(
|
||||
"SpanKind",
|
||||
): 2,
|
||||
): 12,
|
||||
Export(
|
||||
"isBubbledError",
|
||||
): 5,
|
||||
): 15,
|
||||
Exports: 16,
|
||||
Export(
|
||||
"SpanStatusCode",
|
||||
): 3,
|
||||
): 13,
|
||||
Export(
|
||||
"BubbledError",
|
||||
): 1,
|
||||
): 11,
|
||||
Export(
|
||||
"getTracer",
|
||||
): 4,
|
||||
): 14,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1123,97 +1123,46 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
};
|
||||
"module evaluation";
|
||||
import './constants';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { LogSpanAllowList } from './constants';
|
||||
export { LogSpanAllowList as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { BubbledError };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as SpanKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextVanillaSpanAllowlist } from './constants';
|
||||
export { NextVanillaSpanAllowlist as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { SpanKind };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { c as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
let api;
|
||||
export { api as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 15
|
||||
};
|
||||
export { SpanStatusCode };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import { d as getTracer } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -12
|
||||
};
|
||||
export { getTracer };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
import { e as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
};
|
||||
export { isBubbledError };
|
||||
|
||||
```
|
||||
## Part 6
|
||||
```js
|
||||
import './constants';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { LogSpanAllowList } from './constants';
|
||||
export { LogSpanAllowList as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { NextVanillaSpanAllowlist } from './constants';
|
||||
export { NextVanillaSpanAllowlist as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
let api;
|
||||
export { api as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import { h as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { c as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
api = require('@opentelemetry/api');
|
||||
@@ -1226,65 +1175,65 @@ if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
}
|
||||
|
||||
```
|
||||
## Part 11
|
||||
## Part 5
|
||||
```js
|
||||
import { h as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import { c as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const { context, propagation, trace, SpanStatusCode, SpanKind, ROOT_CONTEXT } = api;
|
||||
export { context as i } from "__TURBOPACK_VAR__" assert {
|
||||
export { context as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { propagation as j } from "__TURBOPACK_VAR__" assert {
|
||||
export { propagation as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { trace as k } from "__TURBOPACK_VAR__" assert {
|
||||
export { trace as f } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { SpanStatusCode as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { SpanStatusCode as g } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { SpanKind as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { SpanKind as h } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { ROOT_CONTEXT as l } from "__TURBOPACK_VAR__" assert {
|
||||
export { ROOT_CONTEXT as i } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 12
|
||||
## Part 6
|
||||
```js
|
||||
import { i as context } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { d as context } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { j as propagation } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { e as propagation } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import { h as api } from "__TURBOPACK_PART__" assert {
|
||||
import { c as api } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -3
|
||||
};
|
||||
import { j as closeSpanWithError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
};
|
||||
import { m as closeSpanWithError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -15
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { LogSpanAllowList } from './constants';
|
||||
import { l as ROOT_CONTEXT } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { i as ROOT_CONTEXT } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextVanillaSpanAllowlist } from './constants';
|
||||
import { k as trace } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { f as trace } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 10
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
const isPromise = (p)=>{
|
||||
return p !== null && typeof p === 'object' && typeof p.then === 'function';
|
||||
@@ -1443,33 +1392,33 @@ const getTracer = (()=>{
|
||||
const tracer = new NextTracerImpl();
|
||||
return ()=>tracer;
|
||||
})();
|
||||
export { isPromise as n } from "__TURBOPACK_VAR__" assert {
|
||||
export { isPromise as k } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { rootSpanAttributesStore as o } from "__TURBOPACK_VAR__" assert {
|
||||
export { rootSpanAttributesStore as l } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { rootSpanIdKey as p } from "__TURBOPACK_VAR__" assert {
|
||||
export { rootSpanIdKey as m } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { lastSpanId as q } from "__TURBOPACK_VAR__" assert {
|
||||
export { lastSpanId as n } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getSpanId as r } from "__TURBOPACK_VAR__" assert {
|
||||
export { getSpanId as o } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { clientTraceDataSetter as s } from "__TURBOPACK_VAR__" assert {
|
||||
export { clientTraceDataSetter as p } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { NextTracerImpl as t } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextTracerImpl as q } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getTracer as d } from "__TURBOPACK_VAR__" assert {
|
||||
export { getTracer as r } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 13
|
||||
## Part 7
|
||||
```js
|
||||
class BubbledError extends Error {
|
||||
constructor(bubble, result){
|
||||
@@ -1478,32 +1427,32 @@ class BubbledError extends Error {
|
||||
this.result = result;
|
||||
}
|
||||
}
|
||||
export { BubbledError as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { BubbledError as s } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 14
|
||||
## Part 8
|
||||
```js
|
||||
import { a as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -13
|
||||
import { s as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
function isBubbledError(error) {
|
||||
if (typeof error !== 'object' || error === null) return false;
|
||||
return error instanceof BubbledError;
|
||||
}
|
||||
export { isBubbledError as e } from "__TURBOPACK_VAR__" assert {
|
||||
export { isBubbledError as t } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 15
|
||||
## Part 9
|
||||
```js
|
||||
import { e as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -14
|
||||
import { t as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
import { c as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -11
|
||||
import { g as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
const closeSpanWithError = (span, error)=>{
|
||||
if (isBubbledError(error) && error.bubble) {
|
||||
@@ -1519,10 +1468,61 @@ const closeSpanWithError = (span, error)=>{
|
||||
}
|
||||
span.end();
|
||||
};
|
||||
export { closeSpanWithError as m } from "__TURBOPACK_VAR__" assert {
|
||||
export { closeSpanWithError as j } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 11
|
||||
```js
|
||||
import { s as BubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -7
|
||||
};
|
||||
export { BubbledError };
|
||||
|
||||
```
|
||||
## Part 12
|
||||
```js
|
||||
import { h as SpanKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { SpanKind };
|
||||
|
||||
```
|
||||
## Part 13
|
||||
```js
|
||||
import { g as SpanStatusCode } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 9
|
||||
};
|
||||
export { SpanStatusCode };
|
||||
|
||||
```
|
||||
## Part 14
|
||||
```js
|
||||
import { r as getTracer } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { getTracer };
|
||||
|
||||
```
|
||||
## Part 15
|
||||
```js
|
||||
import { t as isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
};
|
||||
export { isBubbledError };
|
||||
|
||||
```
|
||||
## Part 16
|
||||
```js
|
||||
@@ -1546,7 +1546,7 @@ export { isBubbledError } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 12
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+75
-75
@@ -128,25 +128,25 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("__TURBOPACK__default__export__", #4), "default"))]"];
|
||||
N2["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N3["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N4["Items: [ItemId(1, VarDeclarator(0)), ItemId(2, Normal), ItemId(3, Normal)]"];
|
||||
N4 --> N2;
|
||||
N4 --> N3;
|
||||
N0 --> N4;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, VarDeclarator(0)), ItemId(2, Normal), ItemId(3, Normal)]"];
|
||||
N3["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N4["Items: [ItemId(Export(("__TURBOPACK__default__export__", #4), "default"))]"];
|
||||
N2 --> N0;
|
||||
N2 --> N1;
|
||||
N3 --> N2;
|
||||
N1 --> N4;
|
||||
N1 --> N0;
|
||||
N4 --> N2;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 3,
|
||||
Export(
|
||||
"default",
|
||||
): 1,
|
||||
): 4,
|
||||
Exports: 5,
|
||||
}
|
||||
```
|
||||
@@ -155,23 +155,41 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
import 'node:stream';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
export { Stream as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
|
||||
function fetch() {}
|
||||
const __TURBOPACK__default__export__ = fetch;
|
||||
export { streamDestructionSupported as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { fetch as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
@@ -179,33 +197,15 @@ import 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
export { Stream as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
|
||||
function fetch() {}
|
||||
const __TURBOPACK__default__export__ = fetch;
|
||||
export { streamDestructionSupported as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { fetch as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { d as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
@@ -218,7 +218,7 @@ export { default } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -227,10 +227,10 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 3,
|
||||
Export(
|
||||
"default",
|
||||
): 1,
|
||||
): 4,
|
||||
Exports: 5,
|
||||
}
|
||||
```
|
||||
@@ -239,23 +239,41 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
};
|
||||
"module evaluation";
|
||||
import 'node:stream';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -4
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
export { Stream as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
|
||||
function fetch() {}
|
||||
const __TURBOPACK__default__export__ = fetch;
|
||||
export { streamDestructionSupported as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { fetch as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
@@ -263,33 +281,15 @@ import 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
export { Stream as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
import Stream from 'node:stream';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
|
||||
function fetch() {}
|
||||
const __TURBOPACK__default__export__ = fetch;
|
||||
export { streamDestructionSupported as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { fetch as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
import { d as __TURBOPACK__default__export__ } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
export { __TURBOPACK__default__export__ as default };
|
||||
|
||||
```
|
||||
## Part 5
|
||||
@@ -302,7 +302,7 @@ export { default } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 4
|
||||
__turbopack_part__: 2
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+5
-5
@@ -43,7 +43,7 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation), ItemId(0, Normal)]"];
|
||||
N0["Items: [ItemId(0, Normal), ItemId(ModuleEvaluation)]"];
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
@@ -58,8 +58,8 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
"module evaluation";
|
||||
process.turbopack = {};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
@@ -68,8 +68,8 @@ process.turbopack = {};
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
"module evaluation";
|
||||
process.turbopack = {};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
# Entrypoints
|
||||
@@ -85,8 +85,8 @@ process.turbopack = {};
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
"module evaluation";
|
||||
process.turbopack = {};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
@@ -95,7 +95,7 @@ process.turbopack = {};
|
||||
```
|
||||
## Merged (module eval)
|
||||
```js
|
||||
"module evaluation";
|
||||
process.turbopack = {};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
|
||||
+119
-151
@@ -173,41 +173,37 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("getEnv", #2), "getEnv"))]"];
|
||||
N2["Items: [ItemId(Export(("getEnvWithoutDefaults", #2), "getEnvWithoutDefaults"))]"];
|
||||
N3["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N4["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N5["Items: [ItemId(0, ImportBinding(1))]"];
|
||||
N6["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N7["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N8["Items: [ItemId(2, Normal)]"];
|
||||
N9["Items: [ItemId(3, Normal)]"];
|
||||
N6 --> N3;
|
||||
N1 --> N8;
|
||||
N2 --> N9;
|
||||
N8 --> N5;
|
||||
N8 --> N7;
|
||||
N8 --> N4;
|
||||
N9 --> N5;
|
||||
N9 --> N7;
|
||||
N0 --> N6;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(0, ImportBinding(1))]"];
|
||||
N3["Items: [ItemId(1, ImportOfModule)]"];
|
||||
N4["Items: [ItemId(1, ImportBinding(0))]"];
|
||||
N5["Items: [ItemId(2, Normal), ItemId(Export(("getEnv", #2), "getEnv"))]"];
|
||||
N6["Items: [ItemId(3, Normal), ItemId(Export(("getEnvWithoutDefaults", #2), "getEnvWithoutDefaults"))]"];
|
||||
N7["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N3 --> N0;
|
||||
N6 --> N2;
|
||||
N2 --> N0;
|
||||
N5 --> N1;
|
||||
N5 --> N4;
|
||||
N5 --> N2;
|
||||
N4 --> N3;
|
||||
N5 --> N3;
|
||||
N7 --> N6;
|
||||
N6 --> N4;
|
||||
N7 --> N3;
|
||||
N1 --> N0;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 10,
|
||||
ModuleEvaluation: 7,
|
||||
Exports: 8,
|
||||
Export(
|
||||
"getEnv",
|
||||
): 1,
|
||||
): 5,
|
||||
Export(
|
||||
"getEnvWithoutDefaults",
|
||||
): 2,
|
||||
): 6,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -215,31 +211,37 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
import '../../utils/environment';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as getEnv } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
export { DEFAULT_ENVIRONMENT as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getEnv };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as getEnvWithoutDefaults } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
export { parseEnvironment as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getEnvWithoutDefaults };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import './globalThis';
|
||||
|
||||
```
|
||||
## Part 4
|
||||
@@ -247,8 +249,8 @@ import '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
export { DEFAULT_ENVIRONMENT as c } from "__TURBOPACK_VAR__" assert {
|
||||
import { _globalThis } from './globalThis';
|
||||
export { _globalThis as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -256,10 +258,23 @@ export { DEFAULT_ENVIRONMENT as c } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
export { parseEnvironment as d } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
function getEnv() {
|
||||
var globalEnv = parseEnvironment(_globalThis);
|
||||
return Object.assign({}, DEFAULT_ENVIRONMENT, globalEnv);
|
||||
}
|
||||
export { getEnv };
|
||||
export { getEnv as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -269,62 +284,29 @@ export { parseEnvironment as d } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import './globalThis';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
export { _globalThis as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
function getEnv() {
|
||||
var globalEnv = parseEnvironment(_globalThis);
|
||||
return Object.assign({}, DEFAULT_ENVIRONMENT, globalEnv);
|
||||
}
|
||||
export { getEnv as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
function getEnvWithoutDefaults() {
|
||||
return parseEnvironment(_globalThis);
|
||||
}
|
||||
export { getEnvWithoutDefaults as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { getEnvWithoutDefaults };
|
||||
export { getEnvWithoutDefaults as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
export { getEnv } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getEnv"
|
||||
@@ -337,7 +319,7 @@ export { getEnvWithoutDefaults } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -346,14 +328,14 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 10,
|
||||
ModuleEvaluation: 7,
|
||||
Exports: 8,
|
||||
Export(
|
||||
"getEnv",
|
||||
): 1,
|
||||
): 5,
|
||||
Export(
|
||||
"getEnvWithoutDefaults",
|
||||
): 2,
|
||||
): 6,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -361,31 +343,37 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
"module evaluation";
|
||||
import '../../utils/environment';
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as getEnv } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -8
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
export { DEFAULT_ENVIRONMENT as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getEnv };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as getEnvWithoutDefaults } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -9
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
export { parseEnvironment as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
export { getEnvWithoutDefaults };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import './globalThis';
|
||||
|
||||
```
|
||||
## Part 4
|
||||
@@ -393,8 +381,8 @@ import '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
export { DEFAULT_ENVIRONMENT as c } from "__TURBOPACK_VAR__" assert {
|
||||
import { _globalThis } from './globalThis';
|
||||
export { _globalThis as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -402,10 +390,23 @@ export { DEFAULT_ENVIRONMENT as c } from "__TURBOPACK_VAR__" assert {
|
||||
## Part 5
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
export { parseEnvironment as d } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
function getEnv() {
|
||||
var globalEnv = parseEnvironment(_globalThis);
|
||||
return Object.assign({}, DEFAULT_ENVIRONMENT, globalEnv);
|
||||
}
|
||||
export { getEnv };
|
||||
export { getEnv as d } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
@@ -415,62 +416,29 @@ export { parseEnvironment as d } from "__TURBOPACK_VAR__" assert {
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import './globalThis';
|
||||
|
||||
```
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
export { _globalThis as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { DEFAULT_ENVIRONMENT } from '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
function getEnv() {
|
||||
var globalEnv = parseEnvironment(_globalThis);
|
||||
return Object.assign({}, DEFAULT_ENVIRONMENT, globalEnv);
|
||||
}
|
||||
export { getEnv as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 9
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
};
|
||||
import { _globalThis } from './globalThis';
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { parseEnvironment } from '../../utils/environment';
|
||||
function getEnvWithoutDefaults() {
|
||||
return parseEnvironment(_globalThis);
|
||||
}
|
||||
export { getEnvWithoutDefaults as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { getEnvWithoutDefaults };
|
||||
export { getEnvWithoutDefaults as e } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 10
|
||||
## Part 7
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 8
|
||||
```js
|
||||
export { getEnv } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export getEnv"
|
||||
@@ -483,7 +451,7 @@ export { getEnvWithoutDefaults } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 6
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+56
-88
@@ -116,31 +116,27 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("GET", #2), "GET"))]"];
|
||||
N2["Items: [ItemId(Export(("runtime", #2), "runtime"))]"];
|
||||
N3["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N4["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N5["Items: [ItemId(1, VarDeclarator(0))]"];
|
||||
N6["Items: [ItemId(2, VarDeclarator(0))]"];
|
||||
N5 --> N4;
|
||||
N1 --> N5;
|
||||
N2 --> N6;
|
||||
N0 --> N3;
|
||||
N4 --> N3;
|
||||
N0["Items: [ItemId(0, ImportOfModule)]"];
|
||||
N1["Items: [ItemId(0, ImportBinding(0))]"];
|
||||
N2["Items: [ItemId(1, VarDeclarator(0)), ItemId(Export(("GET", #2), "GET"))]"];
|
||||
N3["Items: [ItemId(2, VarDeclarator(0)), ItemId(Export(("runtime", #2), "runtime"))]"];
|
||||
N4["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N2 --> N1;
|
||||
N1 --> N0;
|
||||
N4 --> N0;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 7,
|
||||
ModuleEvaluation: 4,
|
||||
Exports: 5,
|
||||
Export(
|
||||
"runtime",
|
||||
): 2,
|
||||
): 3,
|
||||
Export(
|
||||
"GET",
|
||||
): 1,
|
||||
): 2,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -148,48 +144,24 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
import "next/server";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as GET } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { GET };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as runtime } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { runtime };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "next/server";
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextResponse } from "next/server";
|
||||
export { NextResponse as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextResponse as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextResponse } from "next/server";
|
||||
const GET = (req)=>{
|
||||
@@ -197,20 +169,30 @@ const GET = (req)=>{
|
||||
pathname: req.nextUrl.pathname
|
||||
});
|
||||
};
|
||||
export { GET as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { GET };
|
||||
export { GET as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 3
|
||||
```js
|
||||
const runtime = "edge";
|
||||
export { runtime as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { runtime };
|
||||
export { runtime as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
export { GET } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export GET"
|
||||
@@ -223,7 +205,7 @@ export { runtime } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -232,14 +214,14 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
Exports: 7,
|
||||
ModuleEvaluation: 4,
|
||||
Exports: 5,
|
||||
Export(
|
||||
"runtime",
|
||||
): 2,
|
||||
): 3,
|
||||
Export(
|
||||
"GET",
|
||||
): 1,
|
||||
): 2,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -247,48 +229,24 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
import "next/server";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as GET } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -5
|
||||
};
|
||||
export { GET };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import { b as runtime } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -6
|
||||
};
|
||||
export { runtime };
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import "next/server";
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextResponse } from "next/server";
|
||||
export { NextResponse as c } from "__TURBOPACK_VAR__" assert {
|
||||
export { NextResponse as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 5
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
import { NextResponse } from "next/server";
|
||||
const GET = (req)=>{
|
||||
@@ -296,20 +254,30 @@ const GET = (req)=>{
|
||||
pathname: req.nextUrl.pathname
|
||||
});
|
||||
};
|
||||
export { GET as a } from "__TURBOPACK_VAR__" assert {
|
||||
export { GET };
|
||||
export { GET as b } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 6
|
||||
## Part 3
|
||||
```js
|
||||
const runtime = "edge";
|
||||
export { runtime as b } from "__TURBOPACK_VAR__" assert {
|
||||
export { runtime };
|
||||
export { runtime as c } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 7
|
||||
## Part 4
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 5
|
||||
```js
|
||||
export { GET } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: "export GET"
|
||||
@@ -322,7 +290,7 @@ export { runtime } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 0
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
+56
-56
@@ -81,23 +81,23 @@ graph TD
|
||||
# Final
|
||||
```mermaid
|
||||
graph TD
|
||||
N0["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N1["Items: [ItemId(Export(("RouteKind", #2), "RouteKind"))]"];
|
||||
N2["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N3["Items: [ItemId(1, Normal)]"];
|
||||
N3 --> N2;
|
||||
N1 --> N3;
|
||||
N1 --> N2;
|
||||
N0 --> N3;
|
||||
N0["Items: [ItemId(0, VarDeclarator(0))]"];
|
||||
N1["Items: [ItemId(1, Normal)]"];
|
||||
N2["Items: [ItemId(ModuleEvaluation)]"];
|
||||
N3["Items: [ItemId(Export(("RouteKind", #2), "RouteKind"))]"];
|
||||
N1 --> N0;
|
||||
N3 --> N1;
|
||||
N3 --> N0;
|
||||
N2 --> N1;
|
||||
```
|
||||
# Entrypoints
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"RouteKind",
|
||||
): 1,
|
||||
): 3,
|
||||
Exports: 4,
|
||||
}
|
||||
```
|
||||
@@ -106,35 +106,16 @@ graph TD
|
||||
# Modules (dev)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
export { RouteKind };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
var RouteKind;
|
||||
export { RouteKind as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
## Part 1
|
||||
```js
|
||||
import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
(function(RouteKind) {
|
||||
RouteKind["PAGES"] = "PAGES";
|
||||
@@ -143,6 +124,25 @@ import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
RouteKind["APP_ROUTE"] = "APP_ROUTE";
|
||||
})(RouteKind || (RouteKind = {}));
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
export { RouteKind };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
@@ -154,7 +154,7 @@ export { RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
@@ -163,10 +163,10 @@ import "__TURBOPACK_PART__" assert {
|
||||
|
||||
```
|
||||
{
|
||||
ModuleEvaluation: 0,
|
||||
ModuleEvaluation: 2,
|
||||
Export(
|
||||
"RouteKind",
|
||||
): 1,
|
||||
): 3,
|
||||
Exports: 4,
|
||||
}
|
||||
```
|
||||
@@ -175,35 +175,16 @@ import "__TURBOPACK_PART__" assert {
|
||||
# Modules (prod)
|
||||
## Part 0
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 1
|
||||
```js
|
||||
import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
};
|
||||
export { RouteKind };
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
var RouteKind;
|
||||
export { RouteKind as a } from "__TURBOPACK_VAR__" assert {
|
||||
__turbopack_var__: true
|
||||
};
|
||||
|
||||
```
|
||||
## Part 3
|
||||
## Part 1
|
||||
```js
|
||||
import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -2
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
(function(RouteKind) {
|
||||
RouteKind["PAGES"] = "PAGES";
|
||||
@@ -212,6 +193,25 @@ import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
RouteKind["APP_ROUTE"] = "APP_ROUTE";
|
||||
})(RouteKind || (RouteKind = {}));
|
||||
|
||||
```
|
||||
## Part 2
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
```
|
||||
## Part 3
|
||||
```js
|
||||
import { a as RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: -0
|
||||
};
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
export { RouteKind };
|
||||
|
||||
```
|
||||
## Part 4
|
||||
```js
|
||||
@@ -223,7 +223,7 @@ export { RouteKind } from "__TURBOPACK_PART__" assert {
|
||||
## Merged (module eval)
|
||||
```js
|
||||
import "__TURBOPACK_PART__" assert {
|
||||
__turbopack_part__: 3
|
||||
__turbopack_part__: 1
|
||||
};
|
||||
"module evaluation";
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user