We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
第一个: build UMD时 为什么在 webpack配置里面去增加babel-plugin-import 不太明白? 第二个: ts编译之后已经输出cjs es代码(可以直接运行)了 为什么还需要babel转一下 ?
The text was updated successfully, but these errors were encountered:
Modularly import plugin for babel.
https://github.com/ant-design/babel-plugin-import
import { Button } from 'antd'; ReactDOM.render(<Button>xxxx</Button>); ↓ ↓ ↓ ↓ ↓ ↓ var _button = require('antd/lib/button'); require('antd/lib/button/style/css'); ReactDOM.render(<_button>xxxx</_button>);
Sorry, something went wrong.
No branches or pull requests
第一个: build UMD时 为什么在 webpack配置里面去增加babel-plugin-import 不太明白?
第二个: ts编译之后已经输出cjs es代码(可以直接运行)了 为什么还需要babel转一下 ?
The text was updated successfully, but these errors were encountered: