@poi/plugin-reason

Use Reason in your JavaScript apps.

Install

yarn add @poi/plugin-reason bs-platform --dev

How to use

In your poi.config.js:

module.exports = {
  entry: './src/index.re',
  plugins: [
    {
      resolve: '@poi/plugin-reason'
    }
  ]
}

Then add a bsconfig.json in your project:

{
  "name": "whatever",
  "sources": {
    "dir": "src",
    "subdirs": true
  },
  "package-specs": {
    "module": "commonjs",
    "in-source": true
  },
  "suffix": ".bs.js",
  "bs-dependencies": [
  ],
  "warnings": {
    "error": "+101"
  },
  "namespace": true,
  "refmt": 3
}

And the entry file src/index.re:

print_endline("Hello World");
Last Updated: 12/1/2018, 10:18:44 AM