1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix: always colorize jsx fragment as component

This commit is contained in:
Marvin Hagemeister 2023-09-29 19:02:34 +02:00
parent d1677a1a8f
commit b445e0c790

View file

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