Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 30, 2024
1 parent eb5b68c commit 93183b9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions turbopack/crates/turbopack-node/src/transforms/postcss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,12 @@ async fn config_changed(
.module();

Ok(Vc::<Completions>::cell(vec![
any_content_changed_of_module(config_asset),
extra_configs_changed(asset_context, postcss_config_path),
any_content_changed_of_module(config_asset)
.to_resolved()
.await?,
extra_configs_changed(asset_context, postcss_config_path)
.to_resolved()
.await?,
])
.completed())
}
Expand All @@ -207,7 +211,7 @@ async fn extra_configs_changed(
.map(|path| async move {
Ok(
if matches!(&*path.get_type().await?, FileSystemEntryType::File) {
asset_context
match asset_context
.process(
Vc::upcast(FileSource::new(path)),
Value::new(ReferenceType::Internal(
Expand All @@ -216,7 +220,12 @@ async fn extra_configs_changed(
)
.try_into_module()
.await?
.map(|rvc| any_content_changed_of_module(*rvc))
{
Some(module) => {
Some(any_content_changed_of_module(module).to_resolved().await?)
}
None => None,
}
} else {
None
},
Expand Down

0 comments on commit 93183b9

Please sign in to comment.