β

发布一个 babel preset 插件:babel-preset-reactenv

Web 平台和移动应用开发 36 阅读

特性:

包含以下插件:
* @babel/plugin-proposal-class-properties
* @babel/plugin-proposal-decorators
* @babel/plugin-proposal-nullish-coalescing-operator
* @babel/plugin-proposal-optional-chaining
* @babel/plugin-proposal-pipeline-operator
* @babel/plugin-syntax-dynamic-import
* @babel/preset-env
* @babel/preset-react
* babel-plugin-import

项目地址: https://github.com/princetoad/babel-preset-reactenv

安装:
npm i -D babel-preset-reactenv

发表评论