Skip to content

Babel Plugin to transform R.merge(a, b) → { ...a, ...b }

License

Notifications You must be signed in to change notification settings

pnavarrc/babel-plugin-ramda-no-useless-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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