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

genType doesn't support BS 8.3 flexible filenames #477

Closed

Description

@vknez

I was really excited to use the newly enabled flexible filenames in ReScript compiler, such as AppModal.web.re, AppModal.android.re or 404.re, but I realized that the latest genType doesn't support them.

The generated .gen.tsx files currently contain invalid TypeScript identifiers:

const AppModal.webBS = require('./AppModal.web.bs');
...
const 404BS = require('./404.bs');

https://rescript-lang.org/blog/release-8-3-pt1#more-flexible-filename-support

Any chance we can have such a feature implemented soon? There's a lot of boilerplate needed currently to work around those limitations.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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