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) {