babel-replace-variable-init
0.1.1 • Public • Published babel-replace-variable-init 
Generate a babel plugin which replaces variable initializations
Usage
import babelReplaceVariableInit from 'babel-replace-variable-init';
export default babelReplaceVariable({
variableName: ({types: t}) => t.stringLiteral('')
});
This will create a babel plugin which will replace the initialization of any
variableName
variable with an empty string.
Readme
Keywords
nonePackage Sidebar
Install
npm i babel-replace-variable-init
Weekly Downloads