Type information in the compiled js comments

Can we put the variant type info in the compiled js where defined the type?
As you can see in the screenshot, all i know is that S_None is represented by number 4, but what the others are represented by? I think this is very helpful when we debugging the compiled js code.

1 Like

There’s a debug mode for that: https://github.com/rescript-association/rescript-lang.org/blob/master/pages/docs/reason-compiler/latest/better-data-structures-printing-debug-mode.mdx

4 Likes