Skip to content

Commit

Permalink
fix(turbopack): support reloading typescript tailwind config (vercel/…
Browse files Browse the repository at this point in the history
…turborepo#7274)

### Description

Just needed to be added to the array so turbopack knows that it needs to
watch it.

Closes PACK-2393
Fixes #61607
  • Loading branch information
ForsakenHarmony authored Feb 5, 2024
1 parent bf658b5 commit 9f67b39
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/turbopack-node/src/transforms/postcss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,13 @@ async fn extra_configs(
asset_context: Vc<Box<dyn AssetContext>>,
postcss_config_path: Vc<FileSystemPath>,
) -> Result<Vc<Completion>> {
let config_paths = [postcss_config_path
.parent()
.join("tailwind.config.js".to_string())];
let parent_path = postcss_config_path.parent();

let config_paths = [
parent_path.join("tailwind.config.js".to_string()),
parent_path.join("tailwind.config.ts".to_string()),
];

let configs = config_paths
.into_iter()
.map(|path| async move {
Expand Down

0 comments on commit 9f67b39

Please sign in to comment.