-
安装 babel-plugin-import
npm i babel-plugin-import --save-dev
-
.babelrc添加如下配置项
{"plugins": ["transform-runtime",["import", { "libraryName": "antd", "style":"css" }] ] }
安装 babel-plugin-import
npm i babel-plugin-import --save-dev
.babelrc添加如下配置项
{"plugins": ["transform-runtime",["import", { "libraryName": "antd", "style":"css" }] ] }
本文标题:按需加载antv
本文链接:https://www.haomeiwen.com/subject/xtsmdqtx.html
网友评论