File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
crates/next-core/src/next_client
turbopack/crates/turbopack-browser/src Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ pub async fn get_client_chunking_context(
447
447
448
448
let next_mode = mode. await ?;
449
449
let asset_prefix = asset_prefix. owned ( ) . await ?;
450
- let chunk_suffix_path = chunk_suffix_path. to_resolved ( ) . await ?;
450
+ let chunk_suffix_path = chunk_suffix_path. owned ( ) . await ?;
451
451
let mut builder = BrowserChunkingContext :: builder (
452
452
root_path,
453
453
client_root. clone ( ) ,
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ impl BrowserChunkingContextBuilder {
125
125
self
126
126
}
127
127
128
- pub fn chunk_suffix_path ( mut self , chunk_suffix_path : ResolvedVc < Option < RcStr > > ) -> Self {
129
- self . chunking_context . chunk_suffix_path = Some ( chunk_suffix_path) ;
128
+ pub fn chunk_suffix_path ( mut self , chunk_suffix_path : Option < RcStr > ) -> Self {
129
+ self . chunking_context . chunk_suffix_path = chunk_suffix_path;
130
130
self
131
131
}
132
132
@@ -222,7 +222,7 @@ pub struct BrowserChunkingContext {
222
222
chunk_base_path : Option < RcStr > ,
223
223
/// Suffix path that will be appended to all chunk URLs when loading them.
224
224
/// This path will not appear in chunk paths or chunk data.
225
- chunk_suffix_path : Option < ResolvedVc < Option < RcStr > > > ,
225
+ chunk_suffix_path : Option < RcStr > ,
226
226
/// URL prefix that will be prepended to all static asset URLs when loading
227
227
/// them.
228
228
asset_base_path : Option < RcStr > ,
@@ -381,11 +381,7 @@ impl BrowserChunkingContext {
381
381
/// Returns the asset suffix path.
382
382
#[ turbo_tasks:: function]
383
383
pub fn chunk_suffix_path ( & self ) -> Vc < Option < RcStr > > {
384
- if let Some ( chunk_suffix_path) = self . chunk_suffix_path {
385
- * chunk_suffix_path
386
- } else {
387
- Vc :: cell ( None )
388
- }
384
+ Vc :: cell ( self . chunk_suffix_path . clone ( ) )
389
385
}
390
386
391
387
/// Returns the source map type.
You can’t perform that action at this time.
0 commit comments