提交 4b4e10dc 编写于 作者: fxy060608's avatar fxy060608 提交者: qiang

wip(uvue): 优化 provider 扩展插件编译

上级 0529abe2
......@@ -482,7 +482,6 @@ const DEFAULT_IMPORTS = [
'io.dcloud.uts.UTSAndroid',
'io.dcloud.uts.*',
'io.dcloud.uniapp.*',
'io.dcloud.uniapp.extapi.*',
]
const DEFAULT_IMPORTS_X = [
......@@ -527,6 +526,9 @@ export async function compile(
true
) + '.*'
)
} else {
// 本地 provider 的时候,不要引入 io.dcloud.uniapp.extapi.*,因为里边包含了相同的类型定义
imports.push('io.dcloud.uniapp.extapi.*')
}
const componentsCode = genComponentsCode(filename, components, isX)
const { package: pluginPackage, id: pluginId } = parseKotlinPackage(filename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册