snowpack-plugin-rescript

Snowpack plugin for ReScript

Usage no npm install needed!

<script type="module">
  import snowpackPluginRescript from 'https://cdn.skypack.dev/snowpack-plugin-rescript';
</script>

README

snowpack-plugin-rescript

Snowpack plugin for running building whole project through bsb-platform

Installation

npm install snowpack-plugin-rescript -D

After this you should add plugin to snowpack.config.js:

{
  "plugins": ["snowpack-plugin-rescript"]
}

Also you must have bsconfig.json file with in-source option.

Why? Because ReScript team recommend it

{
  "package-specs": {
    "module": "es6-global",
    "in-source": true
  },
  "suffix": ".bs.js"
}

License

MIT License