Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
61e86c15
Commit
61e86c15
authored
Mar 13, 2026
by
Niklas Mischkulnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turbopackTransition
parent
0b4c9c40
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
91 additions
and
91 deletions
+91
-91
app_page_loader_tree.rs
crates/next-core/src/app_page_loader_tree.rs
+1
-1
dynamic.rs
crates/next-custom-transforms/src/transforms/dynamic.rs
+4
-4
output-turbo-dev.js
...s/fixture/next-dynamic-app-dir/no-ssr/output-turbo-dev.js
+2
-2
output-turbo-prod.js
.../fixture/next-dynamic-app-dir/no-ssr/output-turbo-prod.js
+2
-2
output-turbo-server-client-layer.js
...ynamic-app-dir/no-ssr/output-turbo-server-client-layer.js
+2
-2
output-turbo-server.js
...ixture/next-dynamic-app-dir/no-ssr/output-turbo-server.js
+2
-2
output-turbo-dev.js
...xture/next-dynamic/duplicated-imports/output-turbo-dev.js
+4
-4
output-turbo-prod.js
...ture/next-dynamic/duplicated-imports/output-turbo-prod.js
+4
-4
output-turbo-server.js
...re/next-dynamic/duplicated-imports/output-turbo-server.js
+4
-4
output-turbo-dev.js
...ests/fixture/next-dynamic/issue-48098/output-turbo-dev.js
+2
-2
output-turbo-prod.js
...sts/fixture/next-dynamic/issue-48098/output-turbo-prod.js
+2
-2
output-turbo-server.js
...s/fixture/next-dynamic/issue-48098/output-turbo-server.js
+2
-2
output-turbo-dev.js
...re/next-dynamic/member-with-same-name/output-turbo-dev.js
+2
-2
output-turbo-prod.js
...e/next-dynamic/member-with-same-name/output-turbo-prod.js
+2
-2
output-turbo-server.js
...next-dynamic/member-with-same-name/output-turbo-server.js
+2
-2
output-turbo-dev.js
...tests/fixture/next-dynamic/no-options/output-turbo-dev.js
+2
-2
output-turbo-prod.js
...ests/fixture/next-dynamic/no-options/output-turbo-prod.js
+2
-2
output-turbo-server.js
...ts/fixture/next-dynamic/no-options/output-turbo-server.js
+2
-2
output-turbo-dev.js
...fixture/next-dynamic/template-literal/output-turbo-dev.js
+2
-2
output-turbo-prod.js
...ixture/next-dynamic/template-literal/output-turbo-prod.js
+2
-2
output-turbo-server.js
...ture/next-dynamic/template-literal/output-turbo-server.js
+2
-2
output-turbo-dev.js
...sts/fixture/next-dynamic/with-options/output-turbo-dev.js
+6
-6
output-turbo-prod.js
...ts/fixture/next-dynamic/with-options/output-turbo-prod.js
+6
-6
output-turbo-server.js
.../fixture/next-dynamic/with-options/output-turbo-server.js
+6
-6
output-turbo-dev.js
...s/fixture/next-dynamic/wrapped-import/output-turbo-dev.js
+4
-4
output-turbo-prod.js
.../fixture/next-dynamic/wrapped-import/output-turbo-prod.js
+4
-4
output-turbo-server.js
...ixture/next-dynamic/wrapped-import/output-turbo-server.js
+4
-4
app-page.ts
packages/next/src/build/templates/app-page.ts
+4
-4
action-async-storage.external.ts
...xt/src/server/app-render/action-async-storage.external.ts
+1
-1
after-task-async-storage.external.ts
...rc/server/app-render/after-task-async-storage.external.ts
+1
-1
console-async-storage.external.ts
...t/src/server/app-render/console-async-storage.external.ts
+1
-1
dynamic-access-async-storage.external.ts
...erver/app-render/dynamic-access-async-storage.external.ts
+1
-1
track-module-loading.external.ts
...pp-render/module-loading/track-module-loading.external.ts
+1
-1
work-async-storage.external.ts
...next/src/server/app-render/work-async-storage.external.ts
+1
-1
work-unit-async-storage.external.ts
...src/server/app-render/work-unit-async-storage.external.ts
+1
-1
annotations.rs
turbopack/crates/turbopack-ecmascript/src/annotations.rs
+1
-1
No files found.
crates/next-core/src/app_page_loader_tree.rs
View file @
61e86c15
...
@@ -224,7 +224,7 @@ impl AppPageLoaderTreeBuilder {
...
@@ -224,7 +224,7 @@ impl AppPageLoaderTreeBuilder {
let
inner_module_id
=
format!
(
"METADATA_{i}"
);
let
inner_module_id
=
format!
(
"METADATA_{i}"
);
let
helper_import
=
rcstr!
(
let
helper_import
=
rcstr!
(
"import { fillMetadataSegment } from 'next/dist/lib/metadata/get-metadata-route' with
\
"import { fillMetadataSegment } from 'next/dist/lib/metadata/get-metadata-route' with
\
{ 'turbopack
-t
ransition': 'next-server-utility' }"
{ 'turbopack
T
ransition': 'next-server-utility' }"
);
);
if
!
self
.base.imports
.contains
(
&
helper_import
)
{
if
!
self
.base.imports
.contains
(
&
helper_import
)
{
...
...
crates/next-custom-transforms/src/transforms/dynamic.rs
View file @
61e86c15
...
@@ -375,7 +375,7 @@ impl VisitMut for NextDynamicPatcher {
...
@@ -375,7 +375,7 @@ impl VisitMut for NextDynamicPatcher {
expr
.args
[
0
]
=
side_effect_free_loader_arg
.as_arg
();
expr
.args
[
0
]
=
side_effect_free_loader_arg
.as_arg
();
}
else
{
}
else
{
// Add `{with:{turbopack
-t
ransition: ...}}` to the dynamic import
// Add `{with:{turbopack
T
ransition: ...}}` to the dynamic import
let
mut
visitor
=
DynamicImportTransitionAdder
{
let
mut
visitor
=
DynamicImportTransitionAdder
{
transition_name
:
dynamic_transition_name
,
transition_name
:
dynamic_transition_name
,
};
};
...
@@ -404,7 +404,7 @@ impl VisitMut for NextDynamicPatcher {
...
@@ -404,7 +404,7 @@ impl VisitMut for NextDynamicPatcher {
struct
DynamicImportTransitionAdder
<
'a
>
{
struct
DynamicImportTransitionAdder
<
'a
>
{
transition_name
:
&
'a
str
,
transition_name
:
&
'a
str
,
}
}
// Add `{with:{turbopack
-t
ransition: <self.transition_name>}}` to any dynamic imports
// Add `{with:{turbopack
T
ransition: <self.transition_name>}}` to any dynamic imports
impl
VisitMut
for
DynamicImportTransitionAdder
<
'_
>
{
impl
VisitMut
for
DynamicImportTransitionAdder
<
'_
>
{
fn
visit_mut_call_expr
(
&
mut
self
,
expr
:
&
mut
CallExpr
)
{
fn
visit_mut_call_expr
(
&
mut
self
,
expr
:
&
mut
CallExpr
)
{
if
let
Callee
::
Import
(
..
)
=
&
expr
.callee
{
if
let
Callee
::
Import
(
..
)
=
&
expr
.callee
{
...
@@ -573,12 +573,12 @@ fn rel_filename(base: Option<&Path>, file: &FileName) -> String {
...
@@ -573,12 +573,12 @@ fn rel_filename(base: Option<&Path>, file: &FileName) -> String {
}
}
fn
with_transition
(
transition_name
:
&
str
)
->
ObjectLit
{
fn
with_transition
(
transition_name
:
&
str
)
->
ObjectLit
{
with_clause
(
&
[(
"turbopack
-t
ransition"
,
transition_name
)])
with_clause
(
&
[(
"turbopack
T
ransition"
,
transition_name
)])
}
}
fn
with_transition_chunking_type
(
transition_name
:
&
str
,
chunking_type
:
&
str
)
->
Box
<
ObjectLit
>
{
fn
with_transition_chunking_type
(
transition_name
:
&
str
,
chunking_type
:
&
str
)
->
Box
<
ObjectLit
>
{
Box
::
new
(
with_clause
(
&
[
Box
::
new
(
with_clause
(
&
[
(
"turbopack
-t
ransition"
,
transition_name
),
(
"turbopack
T
ransition"
,
transition_name
),
(
"turbopackChunkingType"
,
chunking_type
),
(
"turbopackChunkingType"
,
chunking_type
),
]))
]))
}
}
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic-app-dir/no-ssr/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic-app-dir/no-ssr/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic-app-dir/no-ssr/output-turbo-server-client-layer.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic-app-dir/no-ssr/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/duplicated-imports/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello1"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello1"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello2"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello2"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic1
from
'next/dynamic'
;
import
dynamic1
from
'next/dynamic'
;
import
dynamic2
from
'next/dynamic'
;
import
dynamic2
from
'next/dynamic'
;
const
DynamicComponent1
=
dynamic1
(()
=>
import
(
'../components/hello1'
,
{
const
DynamicComponent1
=
dynamic1
(()
=>
import
(
'../components/hello1'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -21,7 +21,7 @@ const DynamicComponent1 = dynamic1(()=>import('../components/hello1', {
...
@@ -21,7 +21,7 @@ const DynamicComponent1 = dynamic1(()=>import('../components/hello1', {
});
});
const
DynamicComponent2
=
dynamic2
(()
=>
import
(
'../components/hello2'
,
{
const
DynamicComponent2
=
dynamic2
(()
=>
import
(
'../components/hello2'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/duplicated-imports/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello1"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello1"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello2"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello2"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic1
from
'next/dynamic'
;
import
dynamic1
from
'next/dynamic'
;
import
dynamic2
from
'next/dynamic'
;
import
dynamic2
from
'next/dynamic'
;
const
DynamicComponent1
=
dynamic1
(()
=>
import
(
'../components/hello1'
,
{
const
DynamicComponent1
=
dynamic1
(()
=>
import
(
'../components/hello1'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -21,7 +21,7 @@ const DynamicComponent1 = dynamic1(()=>import('../components/hello1', {
...
@@ -21,7 +21,7 @@ const DynamicComponent1 = dynamic1(()=>import('../components/hello1', {
});
});
const
DynamicComponent2
=
dynamic2
(()
=>
import
(
'../components/hello2'
,
{
const
DynamicComponent2
=
dynamic2
(()
=>
import
(
'../components/hello2'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/duplicated-imports/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello1"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello1"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello2"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello2"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic1
from
'next/dynamic'
;
import
dynamic1
from
'next/dynamic'
;
import
dynamic2
from
'next/dynamic'
;
import
dynamic2
from
'next/dynamic'
;
const
DynamicComponent1
=
dynamic1
(()
=>
import
(
'../components/hello1'
,
{
const
DynamicComponent1
=
dynamic1
(()
=>
import
(
'../components/hello1'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -21,7 +21,7 @@ const DynamicComponent1 = dynamic1(()=>import('../components/hello1', {
...
@@ -21,7 +21,7 @@ const DynamicComponent1 = dynamic1(()=>import('../components/hello1', {
});
});
const
DynamicComponent2
=
dynamic2
(()
=>
import
(
'../components/hello2'
,
{
const
DynamicComponent2
=
dynamic2
(()
=>
import
(
'../components/hello2'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/issue-48098/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/issue-48098/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/issue-48098/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../text-dynamic-no-ssr-server"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
export
const
NextDynamicNoSSRServerComponent
=
dynamic
(()
=>
import
(
'../text-dynamic-no-ssr-server'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
import
somethingElse
from
'something-else'
;
import
somethingElse
from
'something-else'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
import
somethingElse
from
'something-else'
;
import
somethingElse
from
'something-else'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/member-with-same-name/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
import
somethingElse
from
'something-else'
;
import
somethingElse
from
'something-else'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/no-options/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/no-options/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/no-options/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/template-literal/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
`../components/hello`
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
`../components/hello`
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/template-literal/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
`../components/hello`
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
`../components/hello`
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/template-literal/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent
=
dynamic
(()
=>
import
(
`../components/hello`
,
{
const
DynamicComponent
=
dynamic
(()
=>
import
(
`../components/hello`
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id2
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id2
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponentWithCustomLoading
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponentWithCustomLoading
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -25,7 +25,7 @@ const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hell
...
@@ -25,7 +25,7 @@ const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hell
});
});
const
DynamicClientOnlyComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicClientOnlyComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -37,7 +37,7 @@ const DynamicClientOnlyComponent = dynamic(()=>import('../components/hello', {
...
@@ -37,7 +37,7 @@ const DynamicClientOnlyComponent = dynamic(()=>import('../components/hello', {
});
});
const
DynamicClientOnlyComponentWithSuspense
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicClientOnlyComponentWithSuspense
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id2
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id2
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponentWithCustomLoading
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponentWithCustomLoading
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -25,7 +25,7 @@ const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hell
...
@@ -25,7 +25,7 @@ const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hell
});
});
const
DynamicClientOnlyComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicClientOnlyComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -37,7 +37,7 @@ const DynamicClientOnlyComponent = dynamic(()=>import('../components/hello', {
...
@@ -37,7 +37,7 @@ const DynamicClientOnlyComponent = dynamic(()=>import('../components/hello', {
});
});
const
DynamicClientOnlyComponentWithSuspense
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicClientOnlyComponentWithSuspense
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id2
}
from
"../components/hello"
with
{
import
{
__turbopack_module_id__
as
id2
}
from
"../components/hello"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponentWithCustomLoading
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicComponentWithCustomLoading
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -25,7 +25,7 @@ const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hell
...
@@ -25,7 +25,7 @@ const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hell
});
});
const
DynamicClientOnlyComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicClientOnlyComponent
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -37,7 +37,7 @@ const DynamicClientOnlyComponent = dynamic(()=>import('../components/hello', {
...
@@ -37,7 +37,7 @@ const DynamicClientOnlyComponent = dynamic(()=>import('../components/hello', {
});
});
const
DynamicClientOnlyComponentWithSuspense
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
const
DynamicClientOnlyComponentWithSuspense
=
dynamic
(()
=>
import
(
'../components/hello'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}),
{
}),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/wrapped-import/output-turbo-dev.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"./components/hello1"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"./components/hello1"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"./components/hello2"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"./components/hello2"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent1
=
dynamic
(()
=>
handleImport
(
import
(
'./components/hello1'
,
{
const
DynamicComponent1
=
dynamic
(()
=>
handleImport
(
import
(
'./components/hello1'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
})),
{
})),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -22,7 +22,7 @@ const DynamicComponent1 = dynamic(()=>handleImport(import('./components/hello1',
...
@@ -22,7 +22,7 @@ const DynamicComponent1 = dynamic(()=>handleImport(import('./components/hello1',
});
});
const
DynamicComponent2
=
dynamic
(()
=>
import
(
'./components/hello2'
,
{
const
DynamicComponent2
=
dynamic
(()
=>
import
(
'./components/hello2'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}).
then
((
mod
)
=>
{
}).
then
((
mod
)
=>
{
return
mod
.
Button
;
return
mod
.
Button
;
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/wrapped-import/output-turbo-prod.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"./components/hello1"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"./components/hello1"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"./components/hello2"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"./components/hello2"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent1
=
dynamic
(()
=>
handleImport
(
import
(
'./components/hello1'
,
{
const
DynamicComponent1
=
dynamic
(()
=>
handleImport
(
import
(
'./components/hello1'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
})),
{
})),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -22,7 +22,7 @@ const DynamicComponent1 = dynamic(()=>handleImport(import('./components/hello1',
...
@@ -22,7 +22,7 @@ const DynamicComponent1 = dynamic(()=>handleImport(import('./components/hello1',
});
});
const
DynamicComponent2
=
dynamic
(()
=>
import
(
'./components/hello2'
,
{
const
DynamicComponent2
=
dynamic
(()
=>
import
(
'./components/hello2'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}).
then
((
mod
)
=>
{
}).
then
((
mod
)
=>
{
return
mod
.
Button
;
return
mod
.
Button
;
...
...
crates/next-custom-transforms/tests/fixture/next-dynamic/wrapped-import/output-turbo-server.js
View file @
61e86c15
import
{
__turbopack_module_id__
as
id
}
from
"./components/hello1"
with
{
import
{
__turbopack_module_id__
as
id
}
from
"./components/hello1"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
{
__turbopack_module_id__
as
id1
}
from
"./components/hello2"
with
{
import
{
__turbopack_module_id__
as
id1
}
from
"./components/hello2"
with
{
"turbopack
-t
ransition"
:
"next-client-dynamic"
,
"turbopack
T
ransition"
:
"next-client-dynamic"
,
"turbopackChunkingType"
:
"none"
"turbopackChunkingType"
:
"none"
};
};
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
const
DynamicComponent1
=
dynamic
(()
=>
handleImport
(
import
(
'./components/hello1'
,
{
const
DynamicComponent1
=
dynamic
(()
=>
handleImport
(
import
(
'./components/hello1'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
})),
{
})),
{
loadableGenerated
:
{
loadableGenerated
:
{
...
@@ -22,7 +22,7 @@ const DynamicComponent1 = dynamic(()=>handleImport(import('./components/hello1',
...
@@ -22,7 +22,7 @@ const DynamicComponent1 = dynamic(()=>handleImport(import('./components/hello1',
});
});
const
DynamicComponent2
=
dynamic
(()
=>
import
(
'./components/hello2'
,
{
const
DynamicComponent2
=
dynamic
(()
=>
import
(
'./components/hello2'
,
{
with
:
{
with
:
{
"turbopack
-t
ransition"
:
"next-dynamic"
"turbopack
T
ransition"
:
"next-dynamic"
}
}
}).
then
((
mod
)
=>
{
}).
then
((
mod
)
=>
{
return
mod
.
Button
;
return
mod
.
Button
;
...
...
packages/next/src/build/templates/app-page.ts
View file @
61e86c15
...
@@ -5,9 +5,9 @@ import type { FallbackRouteParam } from '../static-paths/types'
...
@@ -5,9 +5,9 @@ import type { FallbackRouteParam } from '../static-paths/types'
import
{
import
{
AppPageRouteModule
,
AppPageRouteModule
,
type
AppPageRouteHandlerContext
,
type
AppPageRouteHandlerContext
,
}
from
'../../server/route-modules/app-page/module.compiled'
with
{
'turbopack-transition'
:
'next-ssr'
}
}
from
'../../server/route-modules/app-page/module.compiled'
with
{
turbopackTransition
:
'next-ssr'
}
import
{
RouteKind
}
from
'../../server/route-kind'
with
{
'turbopack-transition'
:
'next-server-utility'
}
import
{
RouteKind
}
from
'../../server/route-kind'
with
{
turbopackTransition
:
'next-server-utility'
}
import
{
getRevalidateReason
}
from
'../../server/instrumentation/utils'
import
{
getRevalidateReason
}
from
'../../server/instrumentation/utils'
import
{
getTracer
,
SpanKind
,
type
Span
}
from
'../../server/lib/trace/tracer'
import
{
getTracer
,
SpanKind
,
type
Span
}
from
'../../server/lib/trace/tracer'
...
@@ -97,7 +97,7 @@ export const __next_app__ = {
...
@@ -97,7 +97,7 @@ export const __next_app__ = {
loadChunk
:
__next_app_load_chunk__
,
loadChunk
:
__next_app_load_chunk__
,
}
}
import
*
as
entryBase
from
'../../server/app-render/entry-base'
with
{
'turbopack-transition'
:
'next-server-utility'
}
import
*
as
entryBase
from
'../../server/app-render/entry-base'
with
{
turbopackTransition
:
'next-server-utility'
}
import
{
RedirectStatusCode
}
from
'../../client/components/redirect-status-code'
import
{
RedirectStatusCode
}
from
'../../client/components/redirect-status-code'
import
{
InvariantError
}
from
'../../shared/lib/invariant-error'
import
{
InvariantError
}
from
'../../shared/lib/invariant-error'
import
{
scheduleOnNextTick
}
from
'../../lib/scheduler'
import
{
scheduleOnNextTick
}
from
'../../lib/scheduler'
...
@@ -107,7 +107,7 @@ import {
...
@@ -107,7 +107,7 @@ import {
getSegmentParam
,
getSegmentParam
,
}
from
'../../shared/lib/router/utils/get-segment-param'
}
from
'../../shared/lib/router/utils/get-segment-param'
export
*
from
'../../server/app-render/entry-base'
with
{
'turbopack-transition'
:
'next-server-utility'
}
export
*
from
'../../server/app-render/entry-base'
with
{
turbopackTransition
:
'next-server-utility'
}
// Create and export the route module that will be consumed.
// Create and export the route module that will be consumed.
export
const
routeModule
=
new
AppPageRouteModule
({
export
const
routeModule
=
new
AppPageRouteModule
({
...
...
packages/next/src/server/app-render/action-async-storage.external.ts
View file @
61e86c15
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
// Share the instance module in the next-shared layer
// Share the instance module in the next-shared layer
import
{
actionAsyncStorageInstance
}
from
'./action-async-storage-instance'
with
{
'turbopack-transition'
:
'next-shared'
}
import
{
actionAsyncStorageInstance
}
from
'./action-async-storage-instance'
with
{
turbopackTransition
:
'next-shared'
}
export
interface
ActionStore
{
export
interface
ActionStore
{
readonly
isAction
?:
boolean
readonly
isAction
?:
boolean
readonly
isAppRoute
?:
boolean
readonly
isAppRoute
?:
boolean
...
...
packages/next/src/server/app-render/after-task-async-storage.external.ts
View file @
61e86c15
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
// Share the instance module in the next-shared layer
// Share the instance module in the next-shared layer
import
{
afterTaskAsyncStorageInstance
as
afterTaskAsyncStorage
}
from
'./after-task-async-storage-instance'
with
{
'turbopack-transition'
:
'next-shared'
}
import
{
afterTaskAsyncStorageInstance
as
afterTaskAsyncStorage
}
from
'./after-task-async-storage-instance'
with
{
turbopackTransition
:
'next-shared'
}
import
type
{
WorkUnitStore
}
from
'./work-unit-async-storage.external'
import
type
{
WorkUnitStore
}
from
'./work-unit-async-storage.external'
export
interface
AfterTaskStore
{
export
interface
AfterTaskStore
{
...
...
packages/next/src/server/app-render/console-async-storage.external.ts
View file @
61e86c15
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
// Share the instance module in the next-shared layer
// Share the instance module in the next-shared layer
import
{
consoleAsyncStorageInstance
}
from
'./console-async-storage-instance'
with
{
'turbopack-transition'
:
'next-shared'
}
import
{
consoleAsyncStorageInstance
}
from
'./console-async-storage-instance'
with
{
turbopackTransition
:
'next-shared'
}
export
interface
ConsoleStore
{
export
interface
ConsoleStore
{
/**
/**
...
...
packages/next/src/server/app-render/dynamic-access-async-storage.external.ts
View file @
61e86c15
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
import
type
{
AsyncLocalStorage
}
from
'async_hooks'
// Share the instance module in the next-shared layer
// Share the instance module in the next-shared layer
import
{
dynamicAccessAsyncStorageInstance
}
from
'./dynamic-access-async-storage-instance'
with
{
'turbopack-transition'
:
'next-shared'
}
import
{
dynamicAccessAsyncStorageInstance
}
from
'./dynamic-access-async-storage-instance'
with
{
turbopackTransition
:
'next-shared'
}
export
interface
DynamicAccessAsyncStore
{
export
interface
DynamicAccessAsyncStore
{
readonly
abortController
:
AbortController
readonly
abortController
:
AbortController
...
...
packages/next/src/server/app-render/module-loading/track-module-loading.external.ts
View file @
61e86c15
...
@@ -6,6 +6,6 @@ import {
...
@@ -6,6 +6,6 @@ import {
trackPendingChunkLoad
,
trackPendingChunkLoad
,
trackPendingImport
,
trackPendingImport
,
trackPendingModules
,
trackPendingModules
,
}
from
'./track-module-loading.instance'
with
{
'turbopack-transition'
:
'next-shared'
}
}
from
'./track-module-loading.instance'
with
{
turbopackTransition
:
'next-shared'
}
export
{
trackPendingChunkLoad
,
trackPendingImport
,
trackPendingModules
}
export
{
trackPendingChunkLoad
,
trackPendingImport
,
trackPendingModules
}
packages/next/src/server/app-render/work-async-storage.external.ts
View file @
61e86c15
...
@@ -7,7 +7,7 @@ import type { AfterContext } from '../after/after-context'
...
@@ -7,7 +7,7 @@ import type { AfterContext } from '../after/after-context'
import
type
{
CacheLife
}
from
'../use-cache/cache-life'
import
type
{
CacheLife
}
from
'../use-cache/cache-life'
// Share the instance module in the next-shared layer
// Share the instance module in the next-shared layer
import
{
workAsyncStorageInstance
}
from
'./work-async-storage-instance'
with
{
'turbopack-transition'
:
'next-shared'
}
import
{
workAsyncStorageInstance
}
from
'./work-async-storage-instance'
with
{
turbopackTransition
:
'next-shared'
}
import
type
{
LazyResult
}
from
'../lib/lazy-result'
import
type
{
LazyResult
}
from
'../lib/lazy-result'
import
type
{
DigestedError
}
from
'./create-error-handler'
import
type
{
DigestedError
}
from
'./create-error-handler'
import
type
{
ActionRevalidationKind
}
from
'../../shared/lib/action-revalidation-kind'
import
type
{
ActionRevalidationKind
}
from
'../../shared/lib/action-revalidation-kind'
...
...
packages/next/src/server/app-render/work-unit-async-storage.external.ts
View file @
61e86c15
...
@@ -9,7 +9,7 @@ import type { DynamicTrackingState } from './dynamic-rendering'
...
@@ -9,7 +9,7 @@ import type { DynamicTrackingState } from './dynamic-rendering'
import
type
{
OpaqueFallbackRouteParams
}
from
'../request/fallback-params'
import
type
{
OpaqueFallbackRouteParams
}
from
'../request/fallback-params'
// Share the instance module in the next-shared layer
// Share the instance module in the next-shared layer
import
{
workUnitAsyncStorageInstance
}
from
'./work-unit-async-storage-instance'
with
{
'turbopack-transition'
:
'next-shared'
}
import
{
workUnitAsyncStorageInstance
}
from
'./work-unit-async-storage-instance'
with
{
turbopackTransition
:
'next-shared'
}
import
type
{
ServerComponentsHmrCache
}
from
'../response-cache'
import
type
{
ServerComponentsHmrCache
}
from
'../response-cache'
import
type
{
import
type
{
RenderResumeDataCache
,
RenderResumeDataCache
,
...
...
turbopack/crates/turbopack-ecmascript/src/annotations.rs
View file @
61e86c15
...
@@ -7,7 +7,7 @@ use swc_core::{
...
@@ -7,7 +7,7 @@ use swc_core::{
pub
const
ANNOTATION_CHUNKING_TYPE
:
&
str
=
"turbopackChunkingType"
;
pub
const
ANNOTATION_CHUNKING_TYPE
:
&
str
=
"turbopackChunkingType"
;
/// Enables a specified transition for the annotated import
/// Enables a specified transition for the annotated import
pub
const
ANNOTATION_TRANSITION
:
&
str
=
"turbopack
-t
ransition"
;
pub
const
ANNOTATION_TRANSITION
:
&
str
=
"turbopack
T
ransition"
;
pub
fn
with_clause
<
'a
>
(
pub
fn
with_clause
<
'a
>
(
entries
:
impl
IntoIterator
<
Item
=
&
'a
(
&
'a
str
,
&
'a
str
)
>
,
entries
:
impl
IntoIterator
<
Item
=
&
'a
(
&
'a
str
,
&
'a
str
)
>
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment