uniConfig.js 692 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.normalizeAppXUniConfig = void 0;
  4. const uniConfig_1 = require("../app/pages/uniConfig");
  5. function normalizeAppXUniConfig(pagesJson, manifestJson) {
  6. const config = {
  7. pages: [],
  8. globalStyle: pagesJson.globalStyle,
  9. appname: manifestJson.name || '',
  10. compilerVersion: process.env.UNI_COMPILER_VERSION,
  11. ...(0, uniConfig_1.parseEntryPagePath)(pagesJson),
  12. tabBar: pagesJson.tabBar,
  13. fallbackLocale: manifestJson.fallbackLocale,
  14. };
  15. // TODO 待支持分包
  16. return JSON.stringify(config);
  17. }
  18. exports.normalizeAppXUniConfig = normalizeAppXUniConfig;