Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Explore JSX preserve mode (i.e. output jsx syntax in the generated code) #539

Closed
@cristianoc

Description

@cristianoc

Rough steps

  • Add configuration to turn off JSX ppx entirely. Separately, figure out where best to expose this configuration. Likely depends on how JSX V4 evolves (e.g. how you configure V3 vs V4 for gradual upgrade).
  • Explore whether the result (i.e. what the JSX ppx uses as input) contains already enough information for preserve mode.
  • Find a way to communicate the information to the compiler's code emitter.
  • Change the compiler's back-end to emit JSX syntax containing compiler-generated code. This should not be very different than a special way to print function application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions