forked from umijs/babel-plugin-import
-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
按照这样子配置
{
"plugins": [xxx,
["component", {
libraryName: "antd",
style: true,
}, "antd"],
["component", {
libraryName: "test-module",
style: true,
}, "test-module"]
]
}
跑起来就报错了,
修改成{
"plugins": [xxx,
["component", {
libraryName: "antd",
style: true,
}, {
libraryName: "test-module",
style: true,
}]
]
}
跑起来没有问题,但打包后发现第二个“test-module”组件库的按需引入没有起到作用,即使按需引入也引入了整个包。
求大神帮解决哈
Metadata
Metadata
Assignees
Labels
No labels