Skip to content

Repository files navigation

babel-plugin

🍄 运行

  • yarn test

  • npm run test

🌵 查看代码覆盖率

  • yarn test-cov

  • nom run test-cov

🌴 插件一
  1. 替换url中的环境变量
consta=`https://edu-activity.cn/activity?fe_env=e`;转换为consta=`https://edu-activity.cn/activity`;
🌲 插件二
  1. 为代码加入异常捕获
functionsum(a,b){returna+b+c;}转换为(functionsum(a,b){try{returna+b+c;}catch(error){console.log(error);}});

About

babel插件-合集

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages