jialh
2025-01-06 4d6d772771d2da54a4887d60f3b2ea21a72b3d7d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initUniApp = void 0;
const nvue_1 = require("./nvue");
function initUniApp(manifestJson) {
    manifestJson.plus['uni-app'] = {
        control: 'uni-v3',
        vueVersion: '3',
        compilerVersion: process.env.UNI_COMPILER_VERSION,
        nvueCompiler: (0, nvue_1.getNVueCompiler)(manifestJson),
        renderer: 'auto',
        nvue: {
            'flex-direction': (0, nvue_1.getNVueFlexDirection)(manifestJson),
        },
        nvueLaunchMode: manifestJson.plus.nvueLaunchMode === 'fast' ? 'fast' : 'normal',
    };
    delete manifestJson.plus.nvueLaunchMode;
}
exports.initUniApp = initUniApp;