Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

[Feedback] Preserve JSX mode

$
0
0

Nice :slight_smile: looking forward to hear more about the retreat.

  • Currently, all files share the same extension. Changing to .jsx might seem unusual if your file doesn’t contain any React components. In large projects, this may be mitigated by using preserve mode only for specific packages in the mono repo.

Have you considered a new file extension like *.resx?
So in your example it could compile *.res files to *.res.js and *.resx files to *.res.jsx. resx files will preserve jsx mode and res files wouldn’t.


Viewing all articles
Browse latest Browse all 2592

Trending Articles