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

fix(v3): compatible with renderer='native'

上级 ae6acff6
......@@ -268,10 +268,7 @@ module.exports = function (pagesJson, userManifestJson) {
appJson.nvueCompiler = 'weex'
}
if (
manifestJson.plus.renderer === 'native' &&
!process.env.UNI_USING_V3_NATIVE // v3+native时,renderer为'auto'
) {
if (manifestJson.plus.renderer === 'native') {
appJson.renderer = 'native'
} else {
appJson.renderer = 'auto'
......@@ -376,7 +373,11 @@ module.exports = function (pagesJson, userManifestJson) {
manifestJson.plus['uni-app'].control = control
manifestJson.plus['uni-app'].nvueCompiler = appJson.nvueCompiler
manifestJson.plus['uni-app'].renderer = appJson.renderer
// v3 + native 时强制 auto
manifestJson.plus['uni-app'].renderer = process.env.UNI_USING_V3_NATIVE
? 'auto'
: appJson.renderer
if (flexDir) {
manifestJson.plus['uni-app'].nvue = {
'flex-direction': flexDir
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册