提交 dfbde51d 编写于 作者: fxy060608's avatar fxy060608

feat(uvue): 非 x 的 非 app 平台也支持 uts 组件

上级 241683a1
...@@ -185,12 +185,6 @@ export function initUTSComponents( ...@@ -185,12 +185,6 @@ export function initUTSComponents(
utsComponents.clear() utsComponents.clear()
const components: EasycomMatcher[] = [] const components: EasycomMatcher[] = []
const isApp = platform === 'app' || platform === 'app-plus' const isApp = platform === 'app' || platform === 'app-plus'
// 目前仅 x 的非App平台支持
if (process.env.UNI_APP_X !== 'true') {
if (!isApp) {
return components
}
}
const easycomsObj: Record< const easycomsObj: Record<
string, string,
{ source: string; kotlinPackage: string; swiftModule: string } { source: string; kotlinPackage: string; swiftModule: string }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册