[Autotag] Fix CSS tag having wrong no value
This commit is contained in:
parent
f72a1d49cf
commit
100118f24a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue