babel plugin transform replace expressions:一个Babel插件用于用其他表达式替换表达式 源码
babel-plugin-transplace-expressions 用其他表达式替换JavaScript表达式。 安装 $ yarn add --dev babel-plugin-transform-replace-expressions 例 输入文件: const env = process . env . NODE_ENV ; typeof Hello === "number" ; .babelrc : { " plugins " : [ [ " babel-plugin-transform-replace-expressions " , {
下载地址
用户评论