rescript-lang/rescript-lang.org

Guide on how to create a ReScript lib for JS usage

开放

#174 创建于 2021年1月5日

 (6 条评论) (3 个反应) (0 位负责人)MDX (258 个派生)github user discovery
help wantedmanual

仓库指标

星标
 (1,855 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

It would be great if we'd document how to set up a ReScript project, so that it is publishable on npm without any dependency to the ReScript compiler toolchain.

I know that some workflows are blocked by the fact that ReScript doesn't ship an independent precompiled stdlib / belt package, but others have reported that a rollup based workflow is also viable as well.

Would be interesting to create a dedicated page for a rollup based setup, just to bridge the gap until we see how ppl are getting along with shipping ReScript based JS libs.

贡献者指南