提交 8ef7b41b 编写于 作者: Q qiang

feat: 调整nuve编译模式为uni-app模式

上级 a17ec656
...@@ -70,7 +70,7 @@ process.UNI_STAT_CONFIG = { ...@@ -70,7 +70,7 @@ process.UNI_STAT_CONFIG = {
let usingComponentsAbsent = false let usingComponentsAbsent = false
if (!platformOptions.hasOwnProperty('usingComponents')) { if (!platformOptions.hasOwnProperty('usingComponents')) {
usingComponentsAbsent = true usingComponentsAbsent = true
} }
platformOptions.usingComponents = true platformOptions.usingComponents = true
// } // }
...@@ -109,10 +109,10 @@ if (process.env.UNI_PLATFORM === 'mp-qq') { // QQ小程序 强制自定义组件 ...@@ -109,10 +109,10 @@ if (process.env.UNI_PLATFORM === 'mp-qq') { // QQ小程序 强制自定义组件
platformOptions.usingComponents = true platformOptions.usingComponents = true
} }
let isNVueCompiler = false let isNVueCompiler = true
if (process.env.UNI_PLATFORM === 'app-plus') { if (process.env.UNI_PLATFORM === 'app-plus') {
if (platformOptions.nvueCompiler === 'uni-app') { if (platformOptions.nvueCompiler === 'weex') {
isNVueCompiler = true isNVueCompiler = false
} }
if (platformOptions.renderer === 'native') { if (platformOptions.renderer === 'native') {
process.env.UNI_USING_NATIVE = true process.env.UNI_USING_NATIVE = true
...@@ -122,9 +122,9 @@ if (process.env.UNI_PLATFORM === 'app-plus') { ...@@ -122,9 +122,9 @@ if (process.env.UNI_PLATFORM === 'app-plus') {
} else { // 其他平台,待确认配置方案 } else { // 其他平台,待确认配置方案
if ( if (
manifestJsonObj['app-plus'] && manifestJsonObj['app-plus'] &&
manifestJsonObj['app-plus']['nvueCompiler'] === 'uni-app' manifestJsonObj['app-plus']['nvueCompiler'] === 'weex'
) { ) {
isNVueCompiler = true isNVueCompiler = false
} }
} }
...@@ -253,9 +253,9 @@ if (runByHBuilderX) { ...@@ -253,9 +253,9 @@ if (runByHBuilderX) {
} }
} }
} }
console.log(`正在编译中...`) console.log(`正在编译中...`)
module.exports = { module.exports = {
manifestPlatformOptions: platformOptions manifestPlatformOptions: platformOptions
} }
...@@ -209,11 +209,11 @@ module.exports = function (pagesJson, userManifestJson) { ...@@ -209,11 +209,11 @@ module.exports = function (pagesJson, userManifestJson) {
let flexDir = false let flexDir = false
if (manifestJson.plus.nvueCompiler && manifestJson.plus.nvueCompiler === 'uni-app') { if (manifestJson.plus.nvueCompiler && manifestJson.plus.nvueCompiler === 'weex') {
appJson.nvueCompiler = 'weex'
} else {
appJson.nvueCompiler = 'uni-app' appJson.nvueCompiler = 'uni-app'
flexDir = getFlexDirection(manifestJson.plus) flexDir = getFlexDirection(manifestJson.plus)
} else {
appJson.nvueCompiler = 'weex'
} }
if (manifestJson.plus.renderer === 'native') { if (manifestJson.plus.renderer === 'native') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册