babel-plugin-variable-token
support different token,support different languages javascript
fork from @babel/parser
install
npm install babel-plugin-variable-token
example
const babelCore = const babelPluginVariableToken = babelPluginVariableTokencustomTokenTypes_functionkeyword = '函数'babelPluginVariableTokencustomTokenTypes_ifkeyword = '如果'babelPluginVariableTokencustomTokenTypes_returnkeyword = '返回'const result = babelCore;/** * result.code: * function 斐波那契(所求数) { * if (所求数 <= 2) { * return 1; * }; * return 斐波那契(所求数 - 2) + 斐波那契(所求数 - 1); * } */