mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[Autotag] Fix CSS tag having wrong no value
This commit is contained in:
parent
f72a1d49cf
commit
100118f24a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue