提交 a4da226c 编写于 作者: Q qiang

fix: 修复h5开启treeShaking后编译picker和picker-view冲突的问题

上级 62cca7f2
......@@ -20,12 +20,12 @@ module.exports = function updateComponents(tags) {
autoloadTags.root.forEach(tagName => {
tags.add(tagName)
})
tags = [...tags]
Object.keys(autoloadTags.other).forEach(tagName => {
if (tags.includes(tagName)) {
tags.push(...autoloadTags.other[tagName])
if (tags.has(tagName)) {
autoloadTags.other[tagName].forEach(tag => tags.add(tag))
}
})
tags = [...tags]
const importsStr = tags.map(tagName => {
if (platformTags.indexOf(tagName) !== -1) {
return `import ${capitalize(camelize(tagName))} from 'uni-platform/view/components/${tagName}'`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册