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

Fix jsx mode being ignored when set via @@jsxConfig #727

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Jan 5, 2023

See rescript-lang/rescript#5927.

When setting the JSX mode in-source via

@@jsxConfig({version: 4, mode: "automatic"})

it is currently ignored. This is because the AST is

Pexp_constant PConst_string ("automatic",Some "js")

but the code was matching for

{pexp_desc = Pexp_constant (Pconst_string (value, None))}

@cknitt cknitt requested review from cristianoc and mununki January 5, 2023 17:50
@cknitt cknitt merged commit fff41d1 into master Jan 5, 2023
@cknitt cknitt deleted the fix-jsx-mode-ignored branch January 5, 2023 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants