@mrvicadai/babel-preset-prettify-bucklescript
v1.0.4
Published
## Why?
Downloads
2
Readme
bs-prettify
Why?
This tool is built so the javascript output from Bucklescript could be more human-readable.
Ugly syntax such as:
var task = /* record */ [/* data */ data, /* callback */ callback];
will be converted to:
let task = {
data: data,
callback: callback
};
Checklist
- [x] Convert record creation code to object.
- [x] Remove
/* () */0
filler - [x] Convert record access code to object access code.
- [x] Convert
Curry
related code into uncurried code. - [x] Remove
dll.length = (dll.length - 1) | 0;
cast - [ ] Remove
String()
constructor. - [ ] Convert
Belt.Option
related code to plainundefined
. - [ ] Create
Option.map
API in utils.