2.2.4 • Published 4 years ago

babel-plugin-rambdax v2.2.4

Weekly downloads
3
License
WTFPL
Repository
github
Last release
4 years ago

babel-plugin-rambdax Build Status

This plugin is a transform to remove unused rambdax dependencies, without forcing the user to cherry pick methods manually. This lets you use rambdax naturally (aka as documented) without worrying about bundling parts you're not using.

See also babel-plugin-lodash.

Example

Converts

import R, {map} from 'rambdax';

map(R.add(1), [1, 2, 3]);

Roughly to

import add from 'rambdax/src/add';
import map from 'rambdax/src/map';

map(add(1), [1, 2, 3]);

Limitations

  • You must be using ES6 imports (both specifiers and default work) to load rambdax.

FAQ

I receive TypeError: The plugin "rambdax" didn’t export a Plugin instance or, can I use this plugin with Babel v5?

Babel v5 is no longer supported. Use v0.1.2 for support.

Usage

Via .babelrc (Recommended)
{
  "plugins": ["rambdax"]
}

or

{
  "plugins": "rambdax"
}
Via CLI
$ babel --plugins rambdax script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["rambdax"]
});
2.2.3

4 years ago

2.2.4

4 years ago

2.2.2

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago