Skip to content

Commit

Permalink
[turbopack] Use updated RawOutput API (#65300)
Browse files Browse the repository at this point in the history
Use updated API suggested by sokra in review on #65223:

#65223 (comment)

Depends on vercel/turborepo#8075
  • Loading branch information
bgw authored and ForsakenHarmony committed Aug 15, 2024
1 parent e4f1ba1 commit 6a469cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/next-swc/crates/next-api/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ use turbopack_binding::{
},
turbopack::{
core::{
asset::{Asset, AssetContent},
asset::AssetContent,
chunk::{
availability_info::AvailabilityInfo, ChunkingContext, ChunkingContextExt,
EvaluatableAssets,
},
file_source::FileSource,
module::Module,
output::{OutputAsset, OutputAssets},
raw_output::RawOutput,
source::Source,
virtual_output::VirtualOutputAsset,
},
Expand Down Expand Up @@ -907,7 +908,7 @@ impl AppEndpoint {
let polyfill_output_path =
client_chunking_context.chunk_path(polyfill_source.ident(), ".js".to_string());
let polyfill_output_asset =
VirtualOutputAsset::new(polyfill_output_path, polyfill_source.content());
RawOutput::new(polyfill_output_path, Vc::upcast(polyfill_source));
let polyfill_client_path = client_relative_path_ref
.get_path_to(&*polyfill_output_path.await?)
.context("failed to resolve client-relative path to polyfill")?
Expand Down

0 comments on commit 6a469cc

Please sign in to comment.