[Autotag] Fix CSS tag having wrong no value

This commit is contained in:
Ducko 2021-03-07 14:50:11 +00:00 committed by Keanu
parent f72a1d49cf
commit 100118f24a
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 1 additions and 1 deletions

View File

@ -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);