diff options
Diffstat (limited to 'src/feature_flags.zig')
-rw-r--r-- | src/feature_flags.zig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/feature_flags.zig b/src/feature_flags.zig index f626b725b..a0db75f79 100644 --- a/src/feature_flags.zig +++ b/src/feature_flags.zig @@ -113,3 +113,24 @@ pub const hardcode_localhost_to_127_0_0_1 = true; pub const support_jsxs_in_jsx_transform = false; pub const use_simdutf = !@import("bun").JSC.is_bindgen; + +pub const inline_properties_in_transpiler = true; + +pub const same_target_becomes_destructuring = true; + +pub const react_server_components = true; + +pub const help_catch_memory_issues = @import("bun").Environment.allow_assert; + +/// Disabled because we need to handle module scope for CJS better. +/// +/// The current bugs are: +/// - We need to handle name collisions in the top-level due to hoisted functions +/// It breaks when multiple modules bundled together have functions with the +/// same name at the top-level scope. +/// - Cyclical requires need to be a de-optimization. +/// +/// Once fixed, it's a very meaningful bundle size improvement +pub const commonjs_to_esm = false; + +pub const boundary_based_chunking = true; |