mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix: always colorize jsx fragment as component
This commit is contained in:
parent
d1677a1a8f
commit
b445e0c790
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ export function serialize(ctx, adapter, vnode, level, limit) {
|
|||
// syntax `<>`. They can only have a `key` prop in React, but Preact
|
||||
// doesn't have that restriction
|
||||
if (isFragment) {
|
||||
TAGS = isKeyed ? COMPONENT : ELEMENT;
|
||||
TAGS = COMPONENT;
|
||||
namePretty = isKeyed ? ctx.stylize("Fragment", COMPONENT) : "";
|
||||
} else {
|
||||
const name = adapter.getName(vnode);
|
||||
|
|
Loading…
Reference in a new issue