rescript-compiler
rescript-compiler copied to clipboard
[bug] @genType generates incorrect output
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