From c9108d19f9ed86a9e6454c49d7b052bc938c37de Mon Sep 17 00:00:00 2001 From: Jonny Burger Date: Thu, 2 May 2024 04:59:30 +0200 Subject: [PATCH] Re-enable support_jsxs_in_jsx_transform flag (#10734) --- src/feature_flags.zig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/feature_flags.zig b/src/feature_flags.zig index 9a847aad00bff..93bb8f0309311 100644 --- a/src/feature_flags.zig +++ b/src/feature_flags.zig @@ -91,11 +91,10 @@ pub const disable_lolhtml = false; /// "localhost" fails to connect. pub const hardcode_localhost_to_127_0_0_1 = false; -/// React doesn't do anything with jsxs -/// If the "jsxs" import is development, "jsxs" isn't supported -/// But it's very easy to end up importing it accidentally, causing an error at runtime -/// so we just disable it -pub const support_jsxs_in_jsx_transform = false; +/// React will issue warnings in development if there are multiple children +/// without keys and "jsxs" is not used. +/// https://github.com/oven-sh/bun/issues/10733 +pub const support_jsxs_in_jsx_transform = true; pub const use_simdutf = bun.Environment.isNative and !bun.JSC.is_bindgen;