BSB Plugin
Hassle free reasonmling with webpack
Getting Started
- Install bsb-plugin and bs-platform as dev dependencies
npm i -s -D bsb-plugin bs-platform
- Add it to your webpack.config
const path = const bsbPlugin = moduleexports = entry: './src/index.js' output: filename: 'index.js' path: path plugins: options: true
- Freely import .re files within your javascript files, it will be compiled to javascript
test.re
let greet = name => "Hello " ++ name;
index.js
console