Skip to content

[bug] @genType generates incorrect output #7444

Open
@tx46

Description

@tx46

I don't have a minimal repro as I only have a huge couple of files from production code

rescript.json has .res.js as suffix

if i put @genType on a function, a .gen.ts-file is generated that tries to import incorrectly:

import * as ModuleJS from Module.bs.js

i.e., it's outputting .bs.js despite suffix being set to .res.js in rescript.json

sorry for a rather lame report, im thinking it might be easy to debug given the .bs.js hardcoded(?) suffix. get back if you absolutely need a repro and i will try to extract it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions