rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

[bug] @genType generates incorrect output

Open tx46 opened this issue 7 months ago • 0 comments

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

tx46 avatar May 08 '25 15:05 tx46