@mrvicadai/babel-preset-prettify-bucklescript
v1.0.4
Published
## Why?
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
/* () */0filler - [x] Convert record access code to object access code.
- [x] Convert
Curryrelated code into uncurried code. - [x] Remove
dll.length = (dll.length - 1) | 0;cast - [ ] Remove
String()constructor. - [ ] Convert
Belt.Optionrelated code to plainundefined. - [ ] Create
Option.mapAPI in utils.
