Hello everyone,
I work on a ReScript/React Design System, we expose many components for our users.
I try to export a module component named “Text” and the compiler transform (in JS) the module into “var $$Text = …”.
The problem is that I can’t import, in JS, the component with the name “Text”.
I find the same behavior with Boolean and String (https://rescript-lang.org/try?code=LYewJgrgNgpgBAFRgDwC5wLxwN4F8DcAUKJLHAEIgiwCGAdpjgceNPAMqoBOAlnQOaM8RFqXgAxKCBroswwqLZwAknVlMiQA)
Is “Text” a reserve keyword ?
I want to understand why the compiler build this