babel-plugin-replace-identifiers
replace-identifiers
It replace an Identifier to another Identifier.
If you want to replace an Identifier to a string literal(LVal), you can see this: babel-plugin-inline-replace-variables
Example
.babelrc
In
React;
Out
Rx;
Installation
$ npm install babel-plugin-replace-identifiers
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins replace-identifiers script.js
Via Node API
;