rescript-lang.org icon indicating copy to clipboard operation
rescript-lang.org copied to clipboard

Allow .bs flag on output suffix for cjs, mjs?

Open AlexMoutonNoble opened this issue 3 years ago • 1 comments

Hi Patrick Maybe the wrong repo*, but i notice that the compiler doesnt allow the .bs flag when using .cjs output suffix. Can We add allowance for this? The bs bit has been very helpful in porting files from rescript, and trying to sort out cjs/es6 migration these output files break our existing ".bs" imports and otherwise collide with the existing js files in suffixless import.

Thanks Alex

  • a quick search showed this enum in a json schema here.

AlexMoutonNoble avatar Jul 08 '22 15:07 AlexMoutonNoble

The context: https://forum.rescript-lang.org/t/why-there-s-no-bs-mjs-suffix-option-in-bsconfig-json/3697

nkrkv avatar Aug 31 '22 20:08 nkrkv

.bs.cjs is supported for a while now

fhammerschmidt avatar Oct 02 '23 08:10 fhammerschmidt