From eb1372c9ea267114e9799a04dfdc1d9d1ae7bb20 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 2 Jun 2021 12:44:56 +0100 Subject: [PATCH] ignore raw content when register dependencies --- 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) {