Skip to content

Commit

Permalink
Postcss: fix failures processing .postcssrc.json
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 committed Jun 4, 2024
1 parent 396319b commit 301e6c3
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 301e6c3

Please sign in to comment.