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
34ee0757
Commit
34ee0757
authored
Mar 31, 2026
by
Niklas Mischkulnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only public path, not static/chunks
parent
5d532e0a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
14 deletions
+15
-14
client_reference_manifest.rs
...next-core/src/next_manifests/client_reference_manifest.rs
+2
-9
react-server-dom-turbopack-client.browser.development.js
.../react-server-dom-turbopack-client.browser.development.js
+1
-1
react-server-dom-turbopack-client.browser.production.js
...s/react-server-dom-turbopack-client.browser.production.js
+1
-1
react-server-dom-turbopack-client.browser.development.js
.../react-server-dom-turbopack-client.browser.development.js
+1
-1
react-server-dom-turbopack-client.browser.production.js
...s/react-server-dom-turbopack-client.browser.production.js
+1
-1
taskfile.js
packages/next/taskfile.js
+9
-1
No files found.
crates/next-core/src/next_manifests/client_reference_manifest.rs
View file @
34ee0757
...
@@ -177,8 +177,7 @@ async fn build_manifest(
...
@@ -177,8 +177,7 @@ async fn build_manifest(
rcstr!
(
""
)
rcstr!
(
""
)
};
};
entry_manifest
.module_loading.prefix
=
entry_manifest
.module_loading.prefix
=
prefix_path
;
format!
(
"{}static/chunks"
,
prefix_path
)
.into
();
entry_manifest
.module_loading.cross_origin
=
next_config
.cross_origin
()
.owned
()
.await
?
;
entry_manifest
.module_loading.cross_origin
=
next_config
.cross_origin
()
.owned
()
.await
?
;
let
ClientReferencesChunks
{
let
ClientReferencesChunks
{
client_component_client_chunks
,
client_component_client_chunks
,
...
@@ -284,15 +283,9 @@ async fn build_manifest(
...
@@ -284,15 +283,9 @@ async fn build_manifest(
// be handled separately.
// be handled separately.
.filter
(|
path
|
path
.ends_with
(
".js"
))
.filter
(|
path
|
path
.ends_with
(
".js"
))
.map
(|
path
|
{
.map
(|
path
|
{
// All client JS chunks are under `static/chunks/`. Strip
// that prefix here since `moduleLoading.prefix` already
// contains it, saving one repetition per entry.
let
relative
=
path
.strip_prefix
(
"static/chunks"
)
.unwrap_or
(
&
path
);
format!
(
format!
(
"{}{}"
,
"{}{}"
,
relative
.split
(
'/'
)
.map
(
encode_uri_component
)
.format
(
"/"
),
path
.split
(
'/'
)
.map
(
encode_uri_component
)
.format
(
"/"
),
suffix_path
suffix_path
)
)
})
})
...
...
packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js
View file @
34ee0757
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
i
<
chunks
.
length
;
i
<
chunks
.
length
;
i
++
i
++
)
{
)
{
var
thenable
=
__turbopack_load_
by_url_
_
(
chunks
[
i
]);
var
thenable
=
__turbopack_load__
(
chunks
[
i
]);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
...
...
packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js
View file @
34ee0757
...
@@ -74,7 +74,7 @@ var instrumentedChunks = new WeakSet(),
...
@@ -74,7 +74,7 @@ var instrumentedChunks = new WeakSet(),
function
ignoreReject
()
{}
function
ignoreReject
()
{}
function
preloadModule
(
metadata
)
{
function
preloadModule
(
metadata
)
{
for
(
var
chunks
=
metadata
[
1
],
promises
=
[],
i
=
0
;
i
<
chunks
.
length
;
i
++
)
{
for
(
var
chunks
=
metadata
[
1
],
promises
=
[],
i
=
0
;
i
<
chunks
.
length
;
i
++
)
{
var
thenable
=
__turbopack_load_
by_url_
_
(
chunks
[
i
]);
var
thenable
=
__turbopack_load__
(
chunks
[
i
]);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
...
...
packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js
View file @
34ee0757
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
i
<
chunks
.
length
;
i
<
chunks
.
length
;
i
++
i
++
)
{
)
{
var
thenable
=
__turbopack_load_
by_url_
_
(
chunks
[
i
]);
var
thenable
=
__turbopack_load__
(
chunks
[
i
]);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
...
...
packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js
View file @
34ee0757
...
@@ -74,7 +74,7 @@ var instrumentedChunks = new WeakSet(),
...
@@ -74,7 +74,7 @@ var instrumentedChunks = new WeakSet(),
function
ignoreReject
()
{}
function
ignoreReject
()
{}
function
preloadModule
(
metadata
)
{
function
preloadModule
(
metadata
)
{
for
(
var
chunks
=
metadata
[
1
],
promises
=
[],
i
=
0
;
i
<
chunks
.
length
;
i
++
)
{
for
(
var
chunks
=
metadata
[
1
],
promises
=
[],
i
=
0
;
i
<
chunks
.
length
;
i
++
)
{
var
thenable
=
__turbopack_load_
by_url_
_
(
chunks
[
i
]);
var
thenable
=
__turbopack_load__
(
chunks
[
i
]);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
loadedChunks
.
has
(
thenable
)
||
promises
.
push
(
thenable
);
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
if
(
!
instrumentedChunks
.
has
(
thenable
))
{
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
var
resolve
=
loadedChunks
.
add
.
bind
(
loadedChunks
,
thenable
);
...
...
packages/next/taskfile.js
View file @
34ee0757
...
@@ -1715,7 +1715,15 @@ export async function copy_vendor_react(task_) {
...
@@ -1715,7 +1715,15 @@ export async function copy_vendor_react(task_) {
// package will be bundled alongside user code and we don't need to introduce the extra
// package will be bundled alongside user code and we don't need to introduce the extra
// indirection
// indirection
if
(
if
(
file
.
base
.
startsWith
(
'react-server-dom-turbopack-client.browser'
))
{
const
source
=
file
.
data
.
toString
()
let
newSource
=
source
.
replace
(
/__turbopack_load_by_url__/g
,
'__turbopack_load__'
)
file
.
data
=
newSource
}
else
if
(
(
file
.
base
.
startsWith
(
'react-server-dom-turbopack-client'
)
||
(
file
.
base
.
startsWith
(
'react-server-dom-turbopack-client'
)
||
file
.
base
.
startsWith
(
'react-server-dom-turbopack-server'
))
&&
file
.
base
.
startsWith
(
'react-server-dom-turbopack-server'
))
&&
!
file
.
base
.
includes
(
'.browser.'
)
!
file
.
base
.
includes
(
'.browser.'
)
...
...
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