react引入antd按需加载警告“You are using a whole package of antd, please use...“
react引入antd后报出黄色警告You are using a whole package of antd, please use https://www.npmjs.com/package/babel-plugin-import
此时需要引入babel-plugin-import按需加载
npm install babel-plugin-import --save-dev
新建文件babelrc
{
"plugins": [
["import", { "libraryNa..
原创
2021-01-27 10:08:20 ·
4545 阅读 ·
5 评论