Skip to content

同时按需引入两个组件,官方的配置报错,如何配置 #54

@Evis5

Description

@Evis5

按照这样子配置
{
"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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions