提交 13f46ef6 编写于 作者: 雪洛's avatar 雪洛

fix: 修复引用多个原生鸿蒙包时编译结果错误的Bug

上级 a74945c2
......@@ -44,7 +44,8 @@ function generateHarmonyImportSpecifier(id) {
function generateHarmonyImportExternalCode(hamonyPackageNames) {
return hamonyPackageNames
.filter((hamonyPackageName) => isHarmoneyGlobal(hamonyPackageName))
.map((hamonyPackageName) => `import ${generateHarmonyImportSpecifier(hamonyPackageName)} from '${hamonyPackageName}';`);
.map((hamonyPackageName) => `import ${generateHarmonyImportSpecifier(hamonyPackageName)} from '${hamonyPackageName}';`)
.join('');
}
function uniAppHarmonyPlugin() {
return {
......
......@@ -56,6 +56,7 @@ function generateHarmonyImportExternalCode(hamonyPackageNames: string[]) {
hamonyPackageName
)} from '${hamonyPackageName}';`
)
.join('')
}
export function uniAppHarmonyPlugin(): UniVitePlugin {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册