Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve jsx across Expo SDK #24889

Merged
merged 6 commits into from
Oct 17, 2023
Merged

preserve jsx across Expo SDK #24889

merged 6 commits into from
Oct 17, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

  • Revert Compile jsx in all packages #8421
  • When users transpile jsx, it provides a hook for switching how JSX is handled which is useful for styling tools like nativewind. e.g. Nativewind will be able to easily intercept the View creation in expo-blur to add className support.
  • Could be considered a breaking change as bundler implementations will need to target Expo packages and strip JSX, which we already do in Metro and expo/webpack.

How

  • Use the tsconfig jsx react-native setting which seemingly does nothing.

Test Plan

  • build folders will contain JSX left as-is.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Oct 16, 2023
EvanBacon and others added 2 commits October 16, 2023 13:36
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot
Copy link
Collaborator

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing changelog entries


Your changes should be noted in the changelog. Read Updating Changelogs guide and consider adding an appropriate entry to the following changelogs:


Generated by ExpoBot 🤖 against 6120c22

@EvanBacon EvanBacon merged commit c7cdf53 into main Oct 17, 2023
12 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/preserve-jsx branch October 17, 2023 18:17
marklawlor added a commit that referenced this pull request Oct 30, 2023
- Revert #8421
- When users transpile jsx, it provides a hook for switching how JSX is
handled which is useful for styling tools like nativewind. e.g.
Nativewind will be able to easily intercept the View creation in
`expo-blur` to add `className` support.
- Could be considered a breaking change as bundler implementations will
need to target Expo packages and strip JSX, which we already do in Metro
and expo/webpack.

- Use the tsconfig jsx react-native setting which seemingly does
nothing.

- build folders will contain JSX left as-is.

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants