Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.03 KB

File metadata and controls

58 lines (38 loc) · 1.03 KB

babel-plugin-ramda-no-useless-merge

Replaces R.merge(a, b) with { ...a, ...b }

Installation

Using npm

npm install --save-dev babel-plugin-ramda-no-useless-merge

or using yarn

yarn add babel-plugin-ramda-no-useless-merge

Example

In

const c = R.merge(a, b);

Out

const c = { ...a, ...b };

Usage

Via .babelrc

{
  "plugins": ["ramda-no-useless-merge"]
}

Via CLI

babel --plugins ramda-no-useless-merge script.js

Learn More

License

MIT