提交 43857a90 编写于 作者: fxy060608's avatar fxy060608 提交者: qiang

fix(uts): 修复 1.0 发行模式不识别 app-plus 的问题、调整wgt模式不生成uts插件

上级 a104fcc8
......@@ -181,8 +181,19 @@ export async function compile(
let errMsg = ''
if (process.env.NODE_ENV !== 'development') {
// uts 插件 wgt 模式,本地资源模式不需要编译
if (
process.env.UNI_APP_PRODUCTION_TYPE === 'WGT' ||
process.env.UNI_APP_PRODUCTION_TYPE === 'LOCAL_PACKAGING'
) {
return createResult(outputPluginDir, errMsg, code, deps, meta)
}
// 生产模式 支持同时生成 android 和 ios 的 uts 插件
if (utsPlatform === 'app-android' || utsPlatform === 'app') {
if (
utsPlatform === 'app-android' ||
utsPlatform === 'app' ||
utsPlatform === 'app-plus'
) {
let filename =
resolvePlatformIndex('app-android', pluginDir, pkg) ||
resolveRootIndex(pluginDir, pkg)
......@@ -219,7 +230,11 @@ export async function compile(
}
}
}
if (utsPlatform === 'app-ios' || utsPlatform === 'app') {
if (
utsPlatform === 'app-ios' ||
utsPlatform === 'app' ||
utsPlatform === 'app-plus'
) {
let filename =
resolvePlatformIndex('app-ios', pluginDir, pkg) ||
resolveRootIndex(pluginDir, pkg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册