An open API service indexing awesome lists of open source software.

https://github.com/karimsa/babel-preset-mjs-babili

Transpile transformed code from babili to restricted minified code.
https://github.com/karimsa/babel-preset-mjs-babili

Last synced: 3 months ago
JSON representation

Transpile transformed code from babili to restricted minified code.

Awesome Lists containing this project

README

        

# babel-preset-mjs-babili

Babel preset to minify mjs code.

## Features

| Restriction | Solution |
| ----------- | -------- |
| Sequence expressions are not supported by mjs. | `log(),log()` -> `[log(),log()].pop()` |

## Usage

This preset should be hit after babili, which should be hit
after babel-preset-mjs.

`.babelrc`:

```json
{
"presets": [
"mjs-babili",
"mjs"
]
}
```

## License

Licensed under [MIT](LICENSED.md) license.

Copyright (C) 2017 Karim Alibhai.