Skip to content

Commit

Permalink
Fix postcss config plugin check (parcel-bundler#5062)
Browse files Browse the repository at this point in the history
Not sure if it creates any real issue, but this check seems
incorrect

Co-authored-by: Maksim Semenov <[email protected]>
  • Loading branch information
maksimsemenov and Maksim Semenov authored Aug 25, 2020
1 parent 5864b76 commit 1e5321f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transformers/postcss/src/loadConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function load({
if (
contents.plugins == null ||
typeof contents.plugins !== 'object' ||
Object.keys(contents.plugins) === 0
Object.keys(contents.plugins).length === 0
) {
throw new Error('PostCSS config must have plugins');
}
Expand Down

0 comments on commit 1e5321f

Please sign in to comment.