1.0.4 • Published 5 years ago
@mrvicadai/babel-preset-prettify-bucklescript v1.0.4
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
- Convert record creation code to object.
- Remove
/* () */0
filler - Convert record access code to object access code.
- Convert
Curry
related code into uncurried code. - Remove
dll.length = (dll.length - 1) | 0;
cast - Remove
String()
constructor. - Convert
Belt.Option
related code to plainundefined
. - Create
Option.map
API in utils.