Skip to content

Commit

Permalink
Update CustomModuleType import
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Jul 3, 2023
1 parent f6a1522 commit 61f719f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/next-swc/crates/next-core/src/next_image/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ use turbopack_binding::{
core::{
asset::AssetVc,
context::{AssetContext, AssetContextVc},
plugin::{CustomModuleType, CustomModuleTypeVc},
reference_type::{InnerAssetsVc, ReferenceType},
resolve::ModulePartVc,
},
r#static::StaticModuleAssetVc,
turbopack::{
module_options::{CustomModuleType, CustomModuleTypeVc},
ModuleAssetContextVc,
},
},
};

Expand Down Expand Up @@ -76,9 +79,9 @@ impl CustomModuleType for StructuredImageModuleType {
fn create_module(
&self,
source: AssetVc,
context: AssetContextVc,
context: ModuleAssetContextVc,
_part: Option<ModulePartVc>,
) -> AssetVc {
StructuredImageModuleType::create_module(source, self.blur_placeholder_mode, context)
StructuredImageModuleType::create_module(source, self.blur_placeholder_mode, context.into())
}
}

0 comments on commit 61f719f

Please sign in to comment.