Skip to content

Commit

Permalink
feat(transformer): supports runtime jsx transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
leegeunhyeok committed Oct 27, 2023
1 parent a960c14 commit c17e1c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/transformer/lib/transformer/swc/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ const getReactNativeRuntimePreset = (): TransformerOptionsPreset<Options> => {
loose: false,
externalHelpers: true,
keepClassNames: true,
transform: {
react: {
runtime: 'automatic',
development: context.dev,
refresh: false,
},
},
},
filename: context.path,
root: context.root,
Expand Down Expand Up @@ -70,6 +77,8 @@ const getJestPreset = (
},
react: {
runtime: 'automatic',
development: context.dev,
refresh: false,
},
},
experimental: {
Expand Down

2 comments on commit c17e1c6

@vercel
Copy link

@vercel vercel bot commented on c17e1c6 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 16.22% 327/2016
🔴 Branches 16.3% 82/503
🔴 Functions 10.85% 65/599
🔴 Lines 15.49% 297/1917

Test suite run success

83 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from c17e1c6

Please sign in to comment.