从babel plugin插件入门到babel plugin import 源码解析

Babel 是一个微内核架构,大部分工作是由插件来完成的。Babel 分为三个处理步骤:解析(parse),转换(transform),生成(generate)。Babel 插件的工作就是在转换阶段介入的。