You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
那现在样式全量引入吗
| |
jiangzhifeng666
|
|
邮箱:jiangzhifeng666@163.com
|
Signature is customized by Netease Mail Master
在2020年06月08日 17:39,偏右 写道:
对,我们不推荐用 babel-plugin-import 了。
详情见:
#24184#23988
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Reproduction link
https://new-issue.ant.design/
Steps to reproduce
import {Button} from "antd"
What is expected?
自动加载样式
What is actually happening?
并没有自动加载,antd 默认支持基于 ES modules 的 tree shaking,对于 js 部分,直接引入 import { Button } from 'antd' 就会有按需加载的效果,文档上说这句话难道不是不需要babel-plugin-import 的意思吗
The text was updated successfully, but these errors were encountered: