Skip to content

Jsx mode is ignored when set via @@jsxConfig #5927

Closed
@cknitt

Description

@cknitt

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 is matching for

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

This problem exists for both 10.1.x and master.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions