diff --git a/packages/transformer/lib/transformer/swc/presets.ts b/packages/transformer/lib/transformer/swc/presets.ts index c5dcce1d..f42394f5 100644 --- a/packages/transformer/lib/transformer/swc/presets.ts +++ b/packages/transformer/lib/transformer/swc/presets.ts @@ -34,6 +34,13 @@ const getReactNativeRuntimePreset = (): TransformerOptionsPreset => { loose: false, externalHelpers: true, keepClassNames: true, + transform: { + react: { + runtime: 'automatic', + development: context.dev, + refresh: false, + }, + }, }, filename: context.path, root: context.root, @@ -70,6 +77,8 @@ const getJestPreset = ( }, react: { runtime: 'automatic', + development: context.dev, + refresh: false, }, }, experimental: {