提供一个提取代码中,中文的一个bable插件,原理是通过词法分析(Lexical Analysis),在Babel转码得到AST 来实现
Transform DOM elements into react-native-svg components
Transform SVG into component
This plugin transforms ES2015 modules to CommonJS
Add a __source prop to all JSX Elements
Compile ES2015 classes to ES5
Apply ES2015 function.name semantics to all functions
Compile ES2015 block scoping (const and let) to ES5
Add a __self prop to all JSX Elements
Compile ES2015 arrow functions to ES5
Transform optional chaining operators into a series of nil checks
Compile ES2015 shorthand properties to ES5
Babel plugin to ensure function declarations at the block level are block scoped
Compile ES2015 destructuring to ES5
Explode async and generator functions into a state machine.
Ensure that reserved words are quoted in object property keys
Compile ES2015 computed properties to ES5
Compile ES2015 default and rest parameters to ES5
Transform TypeScript into ES.next
Compile exponentiation operator to ES5
Remove numeric separators from Decimal, Binary, Hex and Octal literals
Compile ES2015 Unicode regex to ES5
This plugin transforms ES2015 modules to AMD
This plugin transforms private class methods