Skip to content

Commit

Permalink
fix(uni-app-x): 修复部分实际未被编译的插件也被记录到了已编译插件内
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Jan 11, 2025
1 parent 4a3b76c commit 54ae2b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/uni-cli-shared/src/vite/plugins/uts/uni_modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ export function uniUTSAppUniModulesPlugin(
}

if (!utsPlugins.has(pluginId)) {
utsPlugins.add(pluginId)
if (uniXKotlinCompiler) {
const platform = 'app-android'
const indexFileName = resolveTscUniModuleIndexFileName(
platform,
pluginDir
)
if (indexFileName) {
utsPlugins.add(pluginId)
await uniXKotlinCompiler.addRootFile(indexFileName)
}
}
Expand All @@ -375,6 +375,7 @@ export function uniUTSAppUniModulesPlugin(
pluginDir
)
if (indexFileName) {
utsPlugins.add(pluginId)
await uniXSwiftCompiler.addRootFile(indexFileName)
}
}
Expand All @@ -385,6 +386,7 @@ export function uniUTSAppUniModulesPlugin(
pluginDir
)
if (indexFileName) {
utsPlugins.add(pluginId)
await uniXArkTSCompiler.addRootFile(indexFileName)
}
}
Expand Down

0 comments on commit 54ae2b1

Please sign in to comment.