Skip to content

Commit

Permalink
Postcss: fix failures processing .postcssrc.json (vercel/turborepo#8303)
Browse files Browse the repository at this point in the history
We create `Internal` `ReferenceType`s for these config files that need
to be processed as JSON. This sets the ModuleEffect for JSON types to
run on all references, like other file types.

Test TBD
  • Loading branch information
wbinnssmith authored Jun 5, 2024
1 parent 09cfe11 commit 4ea14e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbopack/src/module_options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl ModuleOptions {
);

let mut rules = vec![
ModuleRule::new(
ModuleRule::new_all(
ModuleRuleCondition::ResourcePathEndsWith(".json".to_string()),
vec![ModuleRuleEffect::ModuleType(ModuleType::Json)],
),
Expand Down

0 comments on commit 4ea14e5

Please sign in to comment.