-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
babel plugins 小全 #7
Comments
transform-runtime是为了减少重复代码而生的。 babel生成的代码,可能会用到一些_extend(), classCallCheck() 之类的工具函数,默认情况下,这些工具函数的代码会包含在编译后的文件中。如果存在多个文件,那每个文件都有可能含有一份重复的代码。 |
transform-object-rest-spread |
add-module-exports |
babel-plugin-react-requireBabel plugin that adds React import declaration if file contains JSX tags. This plugin is only about stateless components that doesn't extends React.Component. If you want to use any other React functions then you should import their by yourself. |
babel-polyfill
是对浏览器缺失API的支持。比如浏览器可能没有Array.from() 方法。
The text was updated successfully, but these errors were encountered: