From 100118f24acf9595e8bd98c8604db94b16d0ae1a Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 7 Mar 2021 14:50:11 +0000 Subject: [PATCH] [Autotag] Fix CSS tag having wrong no value --- src/autoTag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autoTag.js b/src/autoTag.js index 0ea51f8..038faa6 100644 --- a/src/autoTag.js +++ b/src/autoTag.js @@ -7,7 +7,7 @@ export default (bundleCode) => { // Scans final bundle JS to try and auto-detect basicIncludes(bundleCode, 'react'), basicIncludes(bundleCode, 'document', 'DOM'), - (bundleCode.includes('document.createTextNode') && /document\.createElement\(['"`]style['"`]\)/.test(bundleCode)) ? 'CSS' : '', + (bundleCode.includes('document.createTextNode') && /document\.createElement\(['"`]style['"`]\)/.test(bundleCode)) ? 'CSS' : undefined, ].filter((x) => x !== undefined);