From 45ead43fb48bf26f751714a0ca990dc45d6334ca Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 2 Jun 2021 13:50:55 +0100 Subject: [PATCH] ignore raw content when register dependencies (#4542) --- src/lib/purgeUnusedStyles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/purgeUnusedStyles.js b/src/lib/purgeUnusedStyles.js index 2b6bfe26844f..46d0546a1b2e 100644 --- a/src/lib/purgeUnusedStyles.js +++ b/src/lib/purgeUnusedStyles.js @@ -63,7 +63,7 @@ export default function purgeUnusedUtilities(config, configChanged, registerDepe let content = Array.isArray(config.purge) ? config.purge : config.purge.content - for (let maybeGlob of content) { + for (let maybeGlob of content.filter((item) => typeof item === 'string')) { let { is, base } = parseGlob(maybeGlob) if (is.glob) {