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

Add react-jsx-ppx as a separate package #396

Closed
wants to merge 9 commits into from
Closed

Add react-jsx-ppx as a separate package #396

wants to merge 9 commits into from

Conversation

davesnx
Copy link
Member

@davesnx davesnx commented Oct 28, 2022

Makes it possible for clients to remove jsx-3 and add (preprocess (ppx melange.react-jsx-ppx)) to transform [@JSX] and [@react.component].

This PR adds the new ppx as a separate package and keeps the old behaviour with the "-bs-jsx" flag to have an easier transition. We would need to update the template all in once and that would mean we need the dune integration to update the templates, I believe is easier to have both options for a bit of time.

The only missing part are name and versioning. It's @anmonteiro call. The name of the package and if it will live under melange? So melange.react-jsx-ppx or react-jsx-ppx or reactjs-jsx-ppx. How versioning should be done, maybe a separate version might make sense, but coupling with melange versions is easier/safer. Once this is sorted, we should push it to opam.

@anmonteiro
Copy link
Member

This happens to fix #191

@davesnx davesnx changed the title Remove reactjs_jsx_ppx_v3 and publish as a new package Add react-jsx-ppx as a separate package Dec 2, 2022
@davesnx davesnx marked this pull request as ready for review December 2, 2022 12:11
@davesnx davesnx closed this by deleting the head repository Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants