Skip to content

Commit

Permalink
remove warning when there is no PostCSS config (#7920)
Browse files Browse the repository at this point in the history
### Description

That's useless

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2922
  • Loading branch information
sokra authored Apr 10, 2024
1 parent ac53aff commit 6697255
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/turbopack-node/src/transforms/postcss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ use turbopack_core::{
file_source::FileSource,
ident::AssetIdent,
issue::{
Issue, IssueDescriptionExt, IssueExt, IssueSeverity, IssueStage, OptionStyledString,
StyledString,
Issue, IssueDescriptionExt, IssueSeverity, IssueStage, OptionStyledString, StyledString,
},
reference_type::{EntryReferenceSubType, InnerAssets, ReferenceType},
resolve::{find_context_file, options::ImportMapping, FindContextFileResult},
Expand Down Expand Up @@ -335,15 +334,6 @@ impl PostCssTransformedAsset {
let Some(config_path) =
find_config_in_location(project_path, this.config_location, this.source).await?
else {
PostCssTransformIssue {
source: this.source.ident().path(),
title: "PostCSS transform skipped".to_string(),
description: "Unable to find PostCSS config".to_string(),
severity: IssueSeverity::Warning.cell(),
}
.cell()
.emit();

return Ok(ProcessPostCssResult {
content: this.source.content(),
assets: Vec::new(),
Expand Down

0 comments on commit 6697255

Please sign in to comment.