diaozheng999 / melange-stdlib

ReScript stdlib generated by Melange compiler
1 stars 0 forks source link

This is great! #1

Closed idkjs closed 3 years ago

idkjs commented 3 years ago

Would it be possible to show an example of its usage?

Thank you for sharing.

diaozheng999 commented 3 years ago

Hi!

This repo is to allow the use of external-stdlib key in bsconfig.json. If you're using Melange, add the following to package.json

{
  "dependencies": {
    "@rescript/std": "diaozheng999/melange-stdlib"
  }
}

And add the following to bsconfig.json

{
  "external-stdlib": "@rescript/std"
}

This is helpful if you're using melange with non-standard environments (such as React Native) which do not follow symlink.

idkjs commented 3 years ago

Thank you. I will revert if any issues.