From 93183b9b194234f79a6645b993e51d74cfc77578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Sat, 30 Nov 2024 10:44:48 +0900 Subject: [PATCH] fix --- .../turbopack-node/src/transforms/postcss.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/turbopack/crates/turbopack-node/src/transforms/postcss.rs b/turbopack/crates/turbopack-node/src/transforms/postcss.rs index 5913faec2891e..3c3d7cb79bc5d 100644 --- a/turbopack/crates/turbopack-node/src/transforms/postcss.rs +++ b/turbopack/crates/turbopack-node/src/transforms/postcss.rs @@ -183,8 +183,12 @@ async fn config_changed( .module(); Ok(Vc::::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()) } @@ -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( @@ -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 },