@dcloudio/uni-cli-shared 3.0.0-5000720260410001 → 3.0.0-5010420260703001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/constants.d.ts +1 -3
  2. package/dist/constants.js +2 -6
  3. package/dist/deps.d.ts +1 -0
  4. package/dist/deps.js +22 -13
  5. package/dist/dom2/fontFamily.d.ts +4 -0
  6. package/dist/dom2/fontFamily.js +21 -0
  7. package/dist/dom2/index.d.ts +3 -0
  8. package/dist/dom2/index.js +3 -0
  9. package/dist/dom2/rootScrollView.d.ts +47 -0
  10. package/dist/dom2/rootScrollView.js +283 -0
  11. package/dist/dom2/sharedData.d.ts +4 -0
  12. package/dist/dom2/sharedData.js +40 -5
  13. package/dist/dom2/vue.d.ts +17 -0
  14. package/dist/dom2/vue.js +50 -0
  15. package/dist/easycom.d.ts +1 -0
  16. package/dist/easycom.js +23 -9
  17. package/dist/env/define.d.ts +0 -1
  18. package/dist/env/define.js +3 -11
  19. package/dist/hbx/alias.js +66 -10
  20. package/dist/hbx/log.js +9 -2
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.js +3 -1
  23. package/dist/json/app/manifest/plus.js +9 -1
  24. package/dist/json/index.d.ts +1 -1
  25. package/dist/json/index.js +2 -1
  26. package/dist/json/uni-x/index.d.ts +6 -0
  27. package/dist/json/uni-x/index.js +54 -1
  28. package/dist/json/uni-x/manifest.d.ts +1 -1
  29. package/dist/json/uni-x/manifest.js +2 -1
  30. package/dist/json/utils.js +24 -0
  31. package/dist/messages/en.d.ts +10 -2
  32. package/dist/messages/en.js +10 -2
  33. package/dist/messages/index.d.ts +20 -4
  34. package/dist/messages/zh_CN.d.ts +10 -2
  35. package/dist/messages/zh_CN.js +10 -2
  36. package/dist/mp/style.js +6 -2
  37. package/dist/postcss/plugins/stylePluginExternal.d.ts +9 -10
  38. package/dist/postcss/plugins/stylePluginExternal.js +51 -45
  39. package/dist/uni_modules.cloud.d.ts +7 -1
  40. package/dist/uni_modules.cloud.js +131 -14
  41. package/dist/uni_modules.js +3 -2
  42. package/dist/utils.js +5 -0
  43. package/dist/uts.d.ts +1 -0
  44. package/dist/uts.js +90 -6
  45. package/dist/vite/autoImport.js +7 -4
  46. package/dist/vite/cloud.js +13 -6
  47. package/dist/vite/extApi.js +4 -1
  48. package/dist/vite/plugins/inject.js +4 -1
  49. package/dist/vite/plugins/json.js +2 -69
  50. package/dist/vite/plugins/pre.js +2 -0
  51. package/dist/vite/plugins/stats.d.ts +5 -1
  52. package/dist/vite/plugins/stats.js +74 -3
  53. package/dist/vite/plugins/uts/uni_modules.d.ts +1 -1
  54. package/dist/vite/plugins/uts/uni_modules.js +30 -12
  55. package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -2
  56. package/dist/vite/plugins/vitejs/plugins/css.js +10 -5
  57. package/dist/vue/transforms/index.d.ts +1 -0
  58. package/dist/vue/transforms/index.js +1 -0
  59. package/dist/vue/transforms/transformTeleport.d.ts +2 -0
  60. package/dist/vue/transforms/transformTeleport.js +68 -0
  61. package/dist/vue/transforms/x/transformDirection.js +33 -4
  62. package/dist/workers.d.ts +1 -0
  63. package/dist/workers.js +12 -5
  64. package/dist/x.d.ts +10 -0
  65. package/dist/x.js +39 -0
  66. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +0 -7
  67. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +0 -7
  68. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +58 -63
  69. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +58 -63
  70. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +7 -1
  71. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +22 -47
  72. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +12 -23
  73. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +12 -22
  74. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +23 -74
  75. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
  76. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +3 -20
  77. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +310 -363
  78. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
  79. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +810 -579
  80. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +33 -11114
  81. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +1638 -1250
  82. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +1031 -599
  83. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +470 -328
  84. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +1154 -709
  85. package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
  86. package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +16 -25
  87. package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +16 -25
  88. package/lib/dom2/app/@vue/shared/dist/shared.d.ts +5 -0
  89. package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +11 -23
  90. package/package.json +6 -6
package/dist/easycom.js CHANGED
@@ -10,6 +10,7 @@ const debug_1 = __importDefault(require("debug"));
10
10
  const shared_1 = require("@vue/shared");
11
11
  const pluginutils_1 = require("@rollup/pluginutils");
12
12
  const uni_shared_1 = require("@dcloudio/uni-shared");
13
+ const x_1 = require("./x");
13
14
  const utils_1 = require("./utils");
14
15
  const pages_1 = require("./json/pages");
15
16
  const messages_1 = require("./messages");
@@ -64,6 +65,9 @@ function initEasycoms(inputDir, { dirs, platform, isX, }) {
64
65
  ;
65
66
  globalThis.uts2jsSourceCodeMap.initUts2jsEasycom(easycoms);
66
67
  }
68
+ // UTS / customElements 组件是在 initEasycom 之后补充进去的,
69
+ // 这里补一次状态,避免项目里只有这类组件时被误判为没有 easycom。
70
+ hasEasycom = !!easycoms.length;
67
71
  };
68
72
  const initUTSEasycomCustomElements = () => {
69
73
  (0, uts_1.initUTSCustomElements)(inputDir, platform).forEach((item) => {
@@ -109,8 +113,8 @@ function initEasycoms(inputDir, { dirs, platform, isX, }) {
109
113
  clearEasycom();
110
114
  (0, uts_1.clearUTSComponents)();
111
115
  (0, uts_1.clearUTSCustomElements)();
112
- initEasycom(easyComOptions);
113
- if (isX) {
116
+ initEasycom(res.easyComOptions);
117
+ if (supportCustomElements) {
114
118
  initUTSEasycomCustomElements();
115
119
  }
116
120
  initUTSEasycom();
@@ -194,9 +198,21 @@ function matchEasycom(tag) {
194
198
  easycomsInvalidCache.add(tag);
195
199
  return false;
196
200
  }
201
+ // dom2 不支持旧版 uni-app 兼容模式组件,这里在 easycom 真正命中时再报错,
202
+ // 避免扫描阶段就对未使用的插件组件产生误报。
203
+ if (process.env.UNI_APP_X_DOM2 === 'true' && matcher.dom2IncompatibleFile) {
204
+ throw new Error(messages_1.M['dom2.compatible.component']
205
+ .replace('{name}', `<${tag}>`)
206
+ .replace('{file}', matcher.dom2IncompatibleFile));
207
+ }
197
208
  source = tag.replace(matcher.pattern, matcher.replacement);
198
209
  easycomsCache.set(tag, source);
199
210
  debugEasycom('matchEasycom', tag, source);
211
+ // 检查 H5 专用组件 ask163203
212
+ const H5_ONLY_COMPONENTS = ['custom-tab-bar'];
213
+ if (H5_ONLY_COMPONENTS.includes(tag) && process.env.UNI_PLATFORM !== 'h5') {
214
+ console.warn(`[uni-app] 组件 <${tag}> 是 H5 平台专用组件,在 ${process.env.UNI_PLATFORM} 平台使用可能导致错误。如果你要引入自定义 tabBar 可重命名为其他名称。`);
215
+ }
200
216
  return source;
201
217
  }
202
218
  exports.matchEasycom = matchEasycom;
@@ -255,12 +271,7 @@ function initAutoScanEasycom(platform, dir, rootDir, extensions) {
255
271
  easycoms[`^${name}$`] =
256
272
  // mp平台,这里不处理,由uniEntryPlugin处理
257
273
  is_easycom_encrypt_uni_modules && !isMp
258
- ? (0, utils_1.normalizePath)(path_1.default.join(rootDir, `uni_modules/${uni_modules_plugin_id}?${
259
- // android 走 proxy
260
- process.env.UNI_APP_X === 'true' &&
261
- process.env.UNI_UTS_PLATFORM === 'app-android'
262
- ? 'uts-proxy'
263
- : 'uni_helpers'}`))
274
+ ? (0, utils_1.normalizePath)(path_1.default.join(rootDir, `uni_modules/${uni_modules_plugin_id}?${(0, x_1.isUniAppXAndroidNative)() ? 'uts-proxy' : 'uni_helpers'}`))
264
275
  : `${importDir}/${name}${ext}`;
265
276
  break;
266
277
  }
@@ -313,7 +324,10 @@ function createImportDeclaration(local, source, imported) {
313
324
  }
314
325
  const RESOLVE_EASYCOM_IMPORT_CODE = `import { resolveDynamicComponent as __resolveDynamicComponent } from 'vue';import { resolveEasycom } from '@dcloudio/uni-app';`;
315
326
  function genResolveEasycomCode(importDeclarations, code, name) {
316
- if (process.env.UNI_APP_X_DOM2 === 'true') {
327
+ if (process.env.UNI_APP_X_DOM2 === 'true' ||
328
+ // 内部 dev 版本,需要本地开发内置组件,比如web-view,此时需要直接返回本地easycom,不然会找到基座内置的
329
+ (process.env.UNI_HX_VERSION_DEV === 'true' &&
330
+ process.env.UNI_APP_X === 'true')) {
317
331
  // dom2 模式下,为了性能,不再考虑优先级问题,如果开发者需要区别,可以手动导入为其他名称
318
332
  return name;
319
333
  }
@@ -2,7 +2,6 @@ export declare function initDefine(stringifyBoolean?: boolean): {
2
2
  __X_STYLE_ISOLATION__: string | boolean;
3
3
  __X_STYLE_ISOLATION_UP_ARROW__: string | boolean;
4
4
  'process.env.UNI_APP_X_NEW_STYLE_ISOLATION': string | boolean;
5
- __UNI_FEATURE_VIRTUAL_HOST__: boolean;
6
5
  'process.env.NODE_ENV': string;
7
6
  'process.env.UNI_DEBUG': string | boolean;
8
7
  'process.env.UNI_APP_ID': string;
@@ -15,17 +15,9 @@ function initDefine(stringifyBoolean = false) {
15
15
  const isNewStyleIsolationUpArrow = isNewStyleIsolation && process.env.UNI_PLATFORM === 'mp-weixin';
16
16
  const isMP = process.env.UNI_PLATFORM && process.env.UNI_PLATFORM.startsWith('mp-');
17
17
  process.env['UNI_APP_ID'] = manifestJson.appid;
18
- let mpXDefine = isX && isMP
19
- ? {
20
- __UNI_FEATURE_VIRTUAL_HOST__: true,
21
- }
22
- : {
23
- __UNI_FEATURE_VIRTUAL_HOST__: false,
24
- };
25
- if (isX && isMP) {
26
- mpXDefine.__UNI_FEATURE_VIRTUAL_HOST__ =
27
- platformManifestJson.enableVirtualHost !== false;
28
- }
18
+ const mpXDefine = {
19
+ __UNI_FEATURE_VIRTUAL_HOST__: isX && isMP && platformManifestJson.enableVirtualHost !== false,
20
+ };
29
21
  const styleIsolation = stringifyBoolean
30
22
  ? JSON.stringify(isNewStyleIsolation)
31
23
  : isNewStyleIsolation;
package/dist/hbx/alias.js CHANGED
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
- // 注意:该文件尽可能少依赖其他文件,否则可能会导致还没有alias的时候,就加载了目标模块
3
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
4
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
4
  };
6
5
  Object.defineProperty(exports, "__esModule", { value: true });
7
6
  exports.formatInstallHBuilderXPluginTips = exports.moduleAliasFormatter = exports.installHBuilderXPlugin = exports.initModuleAlias = void 0;
7
+ // 注意:该文件尽可能少依赖其他文件,否则可能会导致还没有alias的时候,就加载了目标模块
8
+ const fs_1 = __importDefault(require("fs"));
8
9
  const path_1 = __importDefault(require("path"));
9
10
  const module_alias_1 = __importDefault(require("module-alias"));
10
11
  const utils_1 = require("./utils");
12
+ const jsonc_parser_1 = require("jsonc-parser");
11
13
  const hbxPlugins = {
12
14
  typescript: 'compile-typescript/node_modules/typescript',
13
15
  less: 'compile-less/node_modules/less',
@@ -19,19 +21,73 @@ function initModuleAlias() {
19
21
  const libDir = path_1.default.resolve(__dirname, '../../lib');
20
22
  const compilerSfcPath = path_1.default.resolve(libDir, '@vue/compiler-sfc');
21
23
  const serverRendererPath = require.resolve('@vue/server-renderer');
24
+ // 对路径进行兼容
25
+ if (!process.env.UNI_APP_X_DOM2_CPP_DIR &&
26
+ process.env.UNI_APP_HARMONY_DOM2_CPP_DIR) {
27
+ process.env.UNI_APP_X_DOM2_CPP_DIR =
28
+ process.env.UNI_APP_HARMONY_DOM2_CPP_DIR;
29
+ }
30
+ // TODO 等待正式对外推出后,删除这个兼容逻辑
31
+ if (process.env.UNI_APP_PLATFORM === 'ios' ||
32
+ process.env.UNI_APP_PLATFORM === 'android') {
33
+ if (process.env.UNI_INPUT_DIR) {
34
+ const manifestJsonFilename = path_1.default.resolve(process.env.UNI_INPUT_DIR, 'manifest.json');
35
+ if (fs_1.default.existsSync(manifestJsonFilename)) {
36
+ const manifestJsonStr = fs_1.default.readFileSync(manifestJsonFilename, 'utf-8');
37
+ const manifestJson = (0, jsonc_parser_1.parse)(manifestJsonStr);
38
+ if (manifestJson?.['uni-app-x']?.vapor === true) {
39
+ const vaporFilename = path_1.default.resolve(process.env.UNI_INPUT_DIR, '.vapor');
40
+ if (fs_1.default.existsSync(vaporFilename)) {
41
+ process.env.UNI_APP_X_DOM2 = 'true';
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
22
47
  if (process.env.UNI_APP_X_DOM2 === 'true') {
23
- if (
24
- // 该代码执行较早,不能使用UNI_UTS_PLATFORM
25
- process.env.UNI_PLATFORM === 'app-harmony') {
26
- if (process.env.UNI_OUTPUT_DIR) {
27
- if (!process.env.UNI_APP_HARMONY_DOM2_CPP_DIR) {
28
- process.env.UNI_APP_HARMONY_DOM2_CPP_DIR = path_1.default.resolve(process.env.UNI_OUTPUT_DIR, 'cpp');
48
+ if (process.env.UNI_OUTPUT_DIR &&
49
+ (process.env.UNI_PLATFORM === 'app' ||
50
+ process.env.UNI_PLATFORM === 'app-plus' ||
51
+ process.env.UNI_PLATFORM === 'app-harmony')) {
52
+ if (!process.env.UNI_APP_X_DOM2_CPP_DIR) {
53
+ let baseDir = '';
54
+ const isAndroid = process.env.UNI_APP_PLATFORM === 'android';
55
+ const isIOS = process.env.UNI_APP_PLATFORM === 'ios';
56
+ if (process.env.NODE_ENV !== 'development' && (isAndroid || isIOS)) {
57
+ baseDir = path_1.default.resolve(process.env.UNI_OUTPUT_DIR, '.uniappx', isAndroid ? 'android' : 'ios');
58
+ }
59
+ else {
60
+ baseDir =
61
+ process.env.UNI_PLATFORM === 'app-harmony'
62
+ ? process.env.UNI_OUTPUT_DIR
63
+ : process.env.UNI_APP_X_CACHE_DIR || process.env.UNI_OUTPUT_DIR;
64
+ }
65
+ process.env.UNI_APP_X_DOM2_CPP_DIR = path_1.default.resolve(baseDir, 'cpp');
66
+ process.env.UNI_APP_X_DOM2_SO_DIR = path_1.default.resolve(baseDir, 'so');
67
+ }
68
+ if (!process.env.UNI_APP_X_DOM2_KT_DIR) {
69
+ if (process.env.NODE_ENV !== 'development') {
70
+ process.env.UNI_APP_X_DOM2_KT_DIR = path_1.default.resolve(process.env.UNI_OUTPUT_DIR, '.uniappx/android', 'src');
71
+ }
72
+ else {
73
+ process.env.UNI_APP_X_DOM2_KT_DIR = path_1.default.resolve(process.env.UNI_APP_X_CACHE_DIR ||
74
+ path_1.default.resolve(process.env.UNI_OUTPUT_DIR, '../.cache'), 'src');
29
75
  }
30
76
  }
31
77
  }
32
- else {
33
- // 目前仅支持 app-harmony 平台启用 dom2
34
- delete process.env.UNI_APP_X_DOM2;
78
+ if (process.env.UNI_APP_PLATFORM ||
79
+ process.env.UNI_PLATFORM === 'app-harmony') {
80
+ if (!process.env.UNI_APP_X_VAPOR_RENDER_TARGET) {
81
+ // 默认 app 平台使用 bytecode 目标
82
+ process.env.UNI_APP_X_VAPOR_RENDER_TARGET = 'bytecode';
83
+ }
84
+ if (process.env.UNI_APP_X_VAPOR_RENDER_TARGET?.includes('bytecode')) {
85
+ process.env.UNI_APP_X_DOM2_DYNAMIC = 'true';
86
+ }
87
+ // 如果是 ext-api 目标,强制使用 nativecode 目标
88
+ if (process.env.UNI_COMPILE_TARGET === 'ext-api') {
89
+ delete process.env.UNI_APP_X_DOM2_DYNAMIC;
90
+ }
35
91
  }
36
92
  }
37
93
  if (process.env.UNI_APP_X_DOM2 === 'true') {
package/dist/hbx/log.js CHANGED
@@ -10,9 +10,10 @@ const picocolors_1 = __importDefault(require("picocolors"));
10
10
  const compiler_core_1 = require("@vue/compiler-core");
11
11
  const shared_1 = require("@vue/shared");
12
12
  const utils_1 = require("../utils");
13
+ const utils_2 = require("./utils");
13
14
  const constants_1 = require("../constants");
14
15
  const ast_1 = require("../vite/utils/ast");
15
- const utils_2 = require("../vite/plugins/vitejs/utils");
16
+ const utils_3 = require("../vite/plugins/vitejs/utils");
16
17
  const SIGNAL_H5_LOCAL = ' ➜ Local:';
17
18
  const SIGNAL_H5_NETWORK = ' ➜ Network:';
18
19
  const networkLogs = [];
@@ -29,6 +30,12 @@ function overridedConsole(name, oldFn, char) {
29
30
  console[name] = function (...args) {
30
31
  oldFn.apply(this, args.map((arg) => {
31
32
  let item;
33
+ if ((0, utils_2.isInHBuilderX)() && typeof arg === 'string' && arg.includes('\n')) {
34
+ arg = arg
35
+ .split('\n')
36
+ .map((line) => `${char}${line}${char}`)
37
+ .join('\n');
38
+ }
32
39
  if (typeof arg !== 'object') {
33
40
  item = `${char}${arg}${char}`;
34
41
  }
@@ -200,7 +207,7 @@ function buildErrorMessage(err, args = [], includeStack = true) {
200
207
  const scriptNode = ast.children.find((node) => node.type === compiler_core_1.NodeTypes.ELEMENT && node.tag === 'script');
201
208
  if (scriptNode) {
202
209
  const scriptLoc = scriptNode.loc;
203
- args.push(picocolors_1.default.yellow(pad((0, utils_2.generateCodeFrame)(scriptLoc.source, err.loc))));
210
+ args.push(picocolors_1.default.yellow(pad((0, utils_3.generateCodeFrame)(scriptLoc.source, err.loc))));
204
211
  // correct error location
205
212
  err.loc.line = scriptLoc.start.line + err.loc.line - 1;
206
213
  }
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './hbx';
6
6
  export * from './ssr';
7
7
  export * from './vue';
8
8
  export * from './uts';
9
+ export * from './x';
9
10
  export * from './logs';
10
11
  export * from './dom2';
11
12
  export * from './i18n';
@@ -25,7 +26,7 @@ export * from './platform';
25
26
  export * from './utsUtils';
26
27
  export * from './workers';
27
28
  export { parseUniExtApi, parseUniExtApis, parseInjects, Define, DefineOptions, Defines, getUniExtApiProviderRegisters, formatExtApiProviderName, } from './uni_modules';
28
- export { getUniModulesEncryptType, parseUniModulesArtifacts, resolveEncryptUniModule, } from './uni_modules.cloud';
29
+ export { copyEncryptUniModulesDom2Bytes, getUniModulesEncryptType, parseUniModulesArtifacts, resolveEncryptUniModule, } from './uni_modules.cloud';
29
30
  import type { EncryptPackageJson } from './uni_modules.cloud';
30
31
  export type EncryptArtifacts = EncryptPackageJson['uni_modules']['artifacts'];
31
32
  export { M } from './messages';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.checkUpdate = exports.M = exports.resolveEncryptUniModule = exports.parseUniModulesArtifacts = exports.getUniModulesEncryptType = exports.formatExtApiProviderName = exports.getUniExtApiProviderRegisters = exports.parseInjects = exports.parseUniExtApis = exports.parseUniExtApi = void 0;
17
+ exports.checkUpdate = exports.M = exports.resolveEncryptUniModule = exports.parseUniModulesArtifacts = exports.getUniModulesEncryptType = exports.copyEncryptUniModulesDom2Bytes = exports.formatExtApiProviderName = exports.getUniExtApiProviderRegisters = exports.parseInjects = exports.parseUniExtApis = exports.parseUniExtApi = void 0;
18
18
  __exportStar(require("./fs"), exports);
19
19
  __exportStar(require("./mp"), exports);
20
20
  __exportStar(require("./url"), exports);
@@ -23,6 +23,7 @@ __exportStar(require("./hbx"), exports);
23
23
  __exportStar(require("./ssr"), exports);
24
24
  __exportStar(require("./vue"), exports);
25
25
  __exportStar(require("./uts"), exports);
26
+ __exportStar(require("./x"), exports);
26
27
  __exportStar(require("./logs"), exports);
27
28
  __exportStar(require("./dom2"), exports);
28
29
  __exportStar(require("./i18n"), exports);
@@ -48,6 +49,7 @@ Object.defineProperty(exports, "parseInjects", { enumerable: true, get: function
48
49
  Object.defineProperty(exports, "getUniExtApiProviderRegisters", { enumerable: true, get: function () { return uni_modules_1.getUniExtApiProviderRegisters; } });
49
50
  Object.defineProperty(exports, "formatExtApiProviderName", { enumerable: true, get: function () { return uni_modules_1.formatExtApiProviderName; } });
50
51
  var uni_modules_cloud_1 = require("./uni_modules.cloud");
52
+ Object.defineProperty(exports, "copyEncryptUniModulesDom2Bytes", { enumerable: true, get: function () { return uni_modules_cloud_1.copyEncryptUniModulesDom2Bytes; } });
51
53
  Object.defineProperty(exports, "getUniModulesEncryptType", { enumerable: true, get: function () { return uni_modules_cloud_1.getUniModulesEncryptType; } });
52
54
  Object.defineProperty(exports, "parseUniModulesArtifacts", { enumerable: true, get: function () { return uni_modules_cloud_1.parseUniModulesArtifacts; } });
53
55
  Object.defineProperty(exports, "resolveEncryptUniModule", { enumerable: true, get: function () { return uni_modules_cloud_1.resolveEncryptUniModule; } });
@@ -117,7 +117,15 @@ function initUniStatistics(manifestJson) {
117
117
  if (!uniStatistics) {
118
118
  return;
119
119
  }
120
- if (uniStatistics.version === 2 || uniStatistics.version === '2') {
120
+ /**
121
+ * 判断是否为私有版统计:
122
+ * - 新配置:type === 'private'
123
+ * - 旧配置兼容:version === 2
124
+ */
125
+ const isPrivateStat = uniStatistics.type === 'private' ||
126
+ uniStatistics.version === 2 ||
127
+ uniStatistics.version === '2';
128
+ if (isPrivateStat) {
121
129
  if (uniStatistics.uniCloud && uniStatistics.uniCloud.spaceId) {
122
130
  return;
123
131
  }
@@ -4,5 +4,5 @@ export * from './json';
4
4
  export * from './pages';
5
5
  export * from './manifest';
6
6
  export * from './theme';
7
- export { normalizeUniAppXAppPagesJson, normalizeUniAppXAppConfig, parseUniXFlexDirection, parseUniXSplashScreen, isUniXPageFile, getUniXPagePaths, parseUniXAppAndroidPackage, } from './uni-x';
7
+ export { normalizeUniAppXAppPagesJson, normalizeUniAppXAppConfig, parseUniXPageOptions, parseUniXFlexDirection, parseUniXSplashScreen, isUniXPageFile, getUniXPagePaths, parseUniXAppAndroidPackage, } from './uni-x';
8
8
  export { checkPagesJson } from './utils';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.checkPagesJson = exports.parseUniXAppAndroidPackage = exports.getUniXPagePaths = exports.isUniXPageFile = exports.parseUniXSplashScreen = exports.parseUniXFlexDirection = exports.normalizeUniAppXAppConfig = exports.normalizeUniAppXAppPagesJson = void 0;
17
+ exports.checkPagesJson = exports.parseUniXAppAndroidPackage = exports.getUniXPagePaths = exports.isUniXPageFile = exports.parseUniXSplashScreen = exports.parseUniXFlexDirection = exports.parseUniXPageOptions = exports.normalizeUniAppXAppConfig = exports.normalizeUniAppXAppPagesJson = void 0;
18
18
  __exportStar(require("./mp"), exports);
19
19
  __exportStar(require("./app"), exports);
20
20
  __exportStar(require("./json"), exports);
@@ -24,6 +24,7 @@ __exportStar(require("./theme"), exports);
24
24
  var uni_x_1 = require("./uni-x");
25
25
  Object.defineProperty(exports, "normalizeUniAppXAppPagesJson", { enumerable: true, get: function () { return uni_x_1.normalizeUniAppXAppPagesJson; } });
26
26
  Object.defineProperty(exports, "normalizeUniAppXAppConfig", { enumerable: true, get: function () { return uni_x_1.normalizeUniAppXAppConfig; } });
27
+ Object.defineProperty(exports, "parseUniXPageOptions", { enumerable: true, get: function () { return uni_x_1.parseUniXPageOptions; } });
27
28
  Object.defineProperty(exports, "parseUniXFlexDirection", { enumerable: true, get: function () { return uni_x_1.parseUniXFlexDirection; } });
28
29
  Object.defineProperty(exports, "parseUniXSplashScreen", { enumerable: true, get: function () { return uni_x_1.parseUniXSplashScreen; } });
29
30
  Object.defineProperty(exports, "isUniXPageFile", { enumerable: true, get: function () { return uni_x_1.isUniXPageFile; } });
@@ -1,5 +1,11 @@
1
1
  export * from './manifest';
2
+ export interface UniXPageOptions {
3
+ disableScroll?: boolean;
4
+ enablePullDownRefresh?: boolean;
5
+ scrollIndicator?: 'none';
6
+ }
2
7
  export declare function normalizeUniAppXAppPagesJson(jsonStr: string): UniApp.PagesJson;
8
+ export declare function parseUniXPageOptions(filename: string): UniXPageOptions | undefined;
3
9
  /**
4
10
  * TODO 应该闭包,通过globalThis赋值?
5
11
  * @param pagesJson
@@ -17,7 +17,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.getUniXPagePaths = exports.isUniXPageFile = exports.normalizeUniAppXAppConfig = exports.normalizeUniAppXAppPagesJson = void 0;
20
+ exports.getUniXPagePaths = exports.isUniXPageFile = exports.normalizeUniAppXAppConfig = exports.parseUniXPageOptions = exports.normalizeUniAppXAppPagesJson = void 0;
21
+ const fs_1 = __importDefault(require("fs"));
21
22
  const path_1 = __importDefault(require("path"));
22
23
  const shared_1 = require("@vue/shared");
23
24
  const json_1 = require("../json");
@@ -28,6 +29,7 @@ const uniConfig_1 = require("./uniConfig");
28
29
  const preprocess_1 = require("../../preprocess");
29
30
  const utils_2 = require("../utils");
30
31
  __exportStar(require("./manifest"), exports);
32
+ const uniXPageOptionsCache = new Map();
31
33
  function normalizeUniAppXAppPagesJson(jsonStr) {
32
34
  // 先条件编译
33
35
  jsonStr = (0, preprocess_1.preUVueJson)(jsonStr, 'pages.json');
@@ -77,9 +79,60 @@ function normalizeUniAppXAppPagesJson(jsonStr) {
77
79
  // 缓存页面列表
78
80
  pages_1.pagesCacheSet.clear();
79
81
  pagesJson.pages.forEach((page) => pages_1.pagesCacheSet.add(page.path));
82
+ updateUniXPageOptions(pagesJson);
80
83
  return pagesJson;
81
84
  }
82
85
  exports.normalizeUniAppXAppPagesJson = normalizeUniAppXAppPagesJson;
86
+ function updateUniXPageOptions(pagesJson) {
87
+ const inputDir = getUniXInputDir();
88
+ if (!inputDir) {
89
+ return;
90
+ }
91
+ const pageOptions = new Map();
92
+ pagesJson.pages.forEach((page) => {
93
+ pageOptions.set(page.path, normalizeRootPageOptions(page.style));
94
+ });
95
+ uniXPageOptionsCache.set(inputDir, pageOptions);
96
+ }
97
+ function normalizeRootPageOptions(pageStyle) {
98
+ if (!pageStyle) {
99
+ return {};
100
+ }
101
+ return {
102
+ disableScroll: pageStyle.disableScroll === true || undefined,
103
+ enablePullDownRefresh: isEnablePullDownRefresh(pageStyle) || undefined,
104
+ scrollIndicator: pageStyle.scrollIndicator,
105
+ };
106
+ }
107
+ function initUniXPageOptions() {
108
+ const inputDir = getUniXInputDir();
109
+ if (!inputDir || uniXPageOptionsCache.has(inputDir)) {
110
+ return;
111
+ }
112
+ const filename = path_1.default.resolve(inputDir, 'pages.json');
113
+ if (!fs_1.default.existsSync(filename)) {
114
+ return;
115
+ }
116
+ normalizeUniAppXAppPagesJson(fs_1.default.readFileSync(filename, 'utf8'));
117
+ }
118
+ function isEnablePullDownRefresh(pageStyle) {
119
+ return pageStyle.enablePullDownRefresh || pageStyle.pullToRefresh?.support;
120
+ }
121
+ function parseUniXPageOptions(filename) {
122
+ initUniXPageOptions();
123
+ const inputDir = getUniXInputDir();
124
+ if (!inputDir) {
125
+ return;
126
+ }
127
+ const pagePath = (0, utils_1.removeExt)((0, utils_1.normalizePath)(path_1.default.relative(inputDir, filename.split('?')[0])));
128
+ return uniXPageOptionsCache.get(inputDir)?.get(pagePath);
129
+ }
130
+ exports.parseUniXPageOptions = parseUniXPageOptions;
131
+ function getUniXInputDir() {
132
+ return process.env.UNI_INPUT_DIR
133
+ ? (0, utils_1.normalizePath)(process.env.UNI_INPUT_DIR)
134
+ : undefined;
135
+ }
83
136
  function normalizeSubPackages(subPackages) {
84
137
  const pages = [];
85
138
  if ((0, shared_1.isArray)(subPackages)) {
@@ -1,3 +1,3 @@
1
1
  export declare function parseUniXFlexDirection(manifestJson: Record<string, any>): any;
2
2
  export declare function parseUniXSplashScreen(platform: 'app-android' | 'app-ios' | 'app-harmony', manifestJson: Record<string, any>): false | object;
3
- export declare function parseUniXAppAndroidPackage(appid: string): string;
3
+ export declare function parseUniXAppAndroidPackage(appid?: string): string;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseUniXAppAndroidPackage = exports.parseUniXSplashScreen = exports.parseUniXFlexDirection = void 0;
4
4
  const shared_1 = require("@vue/shared");
5
+ const constants_1 = require("../../constants");
5
6
  const flexDirs = ['row', 'row-reverse', 'column', 'column-reverse'];
6
7
  function parseUniXFlexDirection(manifestJson) {
7
8
  const flexDir = manifestJson?.['uni-app-x']?.['flex-direction'];
@@ -20,6 +21,6 @@ function parseUniXSplashScreen(platform, manifestJson) {
20
21
  }
21
22
  exports.parseUniXSplashScreen = parseUniXSplashScreen;
22
23
  function parseUniXAppAndroidPackage(appid) {
23
- return 'uni.' + appid.replace(/_/g, '');
24
+ return 'uni.' + (appid || constants_1.DEFAULT_APPID).replace(/_/g, '');
24
25
  }
25
26
  exports.parseUniXAppAndroidPackage = parseUniXAppAndroidPackage;
@@ -64,6 +64,30 @@ function checkPagesJson(jsonStr, inputDir) {
64
64
  });
65
65
  }
66
66
  });
67
+ const tabBarNode = root.children?.find((child) => child.type === 'property' &&
68
+ child.children?.length === 2 &&
69
+ child.children[0].value === 'tabBar');
70
+ if (process.env.UNI_APP_X_DOM2 !== 'true' && tabBarNode) {
71
+ // dom2下不支持tabBar配置项,这里先不校验
72
+ let allPages = []; // 收集全部页面,包含分包页面
73
+ let tabBarPages = []; // 收集 tabBar 页面
74
+ allPages.push(...pagePathNodes.map((node) => node.value));
75
+ findRootNode(tabBarNode.children[1], ['list']).forEach((node) => {
76
+ const pagePathNode = node.type === 'object' &&
77
+ node.children?.find((child) => child.type === 'property' &&
78
+ child.children?.length === 2 &&
79
+ child.children[0].value === 'pagePath');
80
+ if (pagePathNode) {
81
+ const pagePathValueNode = pagePathNode.children[1];
82
+ const pagePath = pagePathValueNode.value;
83
+ tabBarPages.push(pagePath);
84
+ if (!allPages.includes(pagePath) &&
85
+ !allPages.includes(pagePath.substring(1))) {
86
+ throwCompilerError(jsonStr, pagePathValueNode, messages_1.M['pages.json.tabbar.page.notfound'].replace('{pagePath}', pagePath));
87
+ }
88
+ }
89
+ });
90
+ }
67
91
  for (const node of pagePathNodes) {
68
92
  const pagePath = node.value ?? '';
69
93
  if (!pageExistsWithCaseSync(path_1.default.join(inputDir, pagePath))) {
@@ -1,5 +1,9 @@
1
1
  declare const _default: {
2
2
  readonly 'app.compiler.version': "Compiler version: {version}";
3
+ readonly 'view.render.compiler.target': "Current view.render compile target: {target}";
4
+ readonly 'view.render.compiler.target.bytecode': "bytecode";
5
+ readonly 'view.render.compiler.target.nativecode': "nativecode";
6
+ readonly 'style.isolation.version': "Style isolation version: {version}";
3
7
  readonly compiling: "Compiling...";
4
8
  readonly 'dev.performance': "Please note that in running mode, due to log output, sourcemap, and uncompressed source code, the performance and package size are not as good as release mode.";
5
9
  readonly 'dev.performance.nvue': "Especially the sourcemap of app-nvue has a greater impact";
@@ -11,14 +15,17 @@ declare const _default: {
11
15
  readonly 'dev.watching.end.pages': "DONE Build complete. PAGES:{pages}";
12
16
  readonly 'dev.watching.end.files': "DONE Build complete. FILES:{files}";
13
17
  readonly 'dev.watching.restart.vapor': "DONE Restart required. Switching vapor mode requires restarting to take effect.";
18
+ readonly 'dev.watching.vapor.render.target': "vapor-render-target in manifest.json was changed to {manifestTarget}, but the running console is still {runtimeTarget}.";
14
19
  readonly 'build.failed': "DONE Build failed.";
15
20
  readonly 'compiler.build.failed': "Build failed with errors.";
16
21
  readonly 'stat.warn.appid': "The current application is not configured with Appid, and uni statistics cannot be used. For details, see https://ask.dcloud.net.cn/article/36303";
17
- readonly 'stat.warn.version': "The uni statistics version is not configured. The default version is 1.0.uni statistics version 2.0 is recommended, private deployment data is more secure and code is open source and customizable. details: https://uniapp.dcloud.io/uni-stat";
18
- readonly 'stat.warn.tip': "uni statistics version: {version}";
22
+ readonly 'stat.warn.version': "The uni statistics type is not configured. The default type is public. You can set it to public or private. Details: https://uniapp.dcloud.io/uni-stat";
23
+ readonly 'stat.warn.tip': "uni statistics enabled: {type}";
19
24
  readonly 'i18n.fallbackLocale.default': "fallbackLocale is missing in manifest.json, use: {locale}";
20
25
  readonly 'i18n.fallbackLocale.missing': "./local/{locale}.json is missing";
21
26
  readonly 'easycom.conflict': "easycom component conflict: ";
27
+ readonly 'dom2.compatible.component': "Vapor mode does not support the uni-app compatibility component {name}. The implementation file {file} was detected. Please use the standard UTS component implementation for this purpose.";
28
+ readonly 'dom2.root.scroll.view': "Pages are scrollable in Vapor mode. Remove the root scroll-view to avoid nested scrolling. Details: https://doc.dcloud.net.cn/uni-app-x/page.html#disablescroll";
22
29
  readonly 'mp.component.args[0]': "The first parameter of {0} must be a static string";
23
30
  readonly 'mp.component.args[1]': "{0} requires two parameters";
24
31
  readonly 'mp.360.unsupported': "360 is unsupported";
@@ -48,5 +55,6 @@ declare const _default: {
48
55
  readonly 'uni_modules.import': "Plug-in [{0}] only supports @/uni_modules/{1}.";
49
56
  readonly 'pages.json.page.notfound': "The page \"{pagePath}\" does not exist.";
50
57
  readonly 'pages.json.page.slash': "The Path \"{pagePath}\" cannot start with \"/\"";
58
+ readonly 'pages.json.tabbar.page.notfound': "The tabBar page \"{pagePath}\" is not declared in \"pages.json\".";
51
59
  };
52
60
  export default _default;
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  'app.compiler.version': 'Compiler version: {version}',
5
+ 'view.render.compiler.target': 'Current view.render compile target: {target}',
6
+ 'view.render.compiler.target.bytecode': 'bytecode',
7
+ 'view.render.compiler.target.nativecode': 'nativecode',
8
+ 'style.isolation.version': 'Style isolation version: {version}',
5
9
  compiling: 'Compiling...',
6
10
  'dev.performance': 'Please note that in running mode, due to log output, sourcemap, and uncompressed source code, the performance and package size are not as good as release mode.',
7
11
  'dev.performance.nvue': 'Especially the sourcemap of app-nvue has a greater impact',
@@ -13,14 +17,17 @@ exports.default = {
13
17
  'dev.watching.end.pages': 'DONE Build complete. PAGES:{pages}',
14
18
  'dev.watching.end.files': 'DONE Build complete. FILES:{files}',
15
19
  'dev.watching.restart.vapor': 'DONE Restart required. Switching vapor mode requires restarting to take effect.',
20
+ 'dev.watching.vapor.render.target': 'vapor-render-target in manifest.json was changed to {manifestTarget}, but the running console is still {runtimeTarget}.',
16
21
  'build.failed': 'DONE Build failed.',
17
22
  'compiler.build.failed': 'Build failed with errors.',
18
23
  'stat.warn.appid': 'The current application is not configured with Appid, and uni statistics cannot be used. For details, see https://ask.dcloud.net.cn/article/36303',
19
- 'stat.warn.version': 'The uni statistics version is not configured. The default version is 1.0.uni statistics version 2.0 is recommended, private deployment data is more secure and code is open source and customizable. details: https://uniapp.dcloud.io/uni-stat',
20
- 'stat.warn.tip': 'uni statistics version: {version}',
24
+ 'stat.warn.version': 'The uni statistics type is not configured. The default type is public. You can set it to public or private. Details: https://uniapp.dcloud.io/uni-stat',
25
+ 'stat.warn.tip': 'uni statistics enabled: {type}',
21
26
  'i18n.fallbackLocale.default': 'fallbackLocale is missing in manifest.json, use: {locale}',
22
27
  'i18n.fallbackLocale.missing': './local/{locale}.json is missing',
23
28
  'easycom.conflict': 'easycom component conflict: ',
29
+ 'dom2.compatible.component': 'Vapor mode does not support the uni-app compatibility component {name}. The implementation file {file} was detected. Please use the standard UTS component implementation for this purpose.',
30
+ 'dom2.root.scroll.view': 'Pages are scrollable in Vapor mode. Remove the root scroll-view to avoid nested scrolling. Details: https://doc.dcloud.net.cn/uni-app-x/page.html#disablescroll',
24
31
  'mp.component.args[0]': 'The first parameter of {0} must be a static string',
25
32
  'mp.component.args[1]': '{0} requires two parameters',
26
33
  'mp.360.unsupported': '360 is unsupported',
@@ -50,4 +57,5 @@ exports.default = {
50
57
  'uni_modules.import': 'Plug-in [{0}] only supports @/uni_modules/{1}.',
51
58
  'pages.json.page.notfound': 'The page "{pagePath}" does not exist.',
52
59
  'pages.json.page.slash': 'The Path "{pagePath}" cannot start with "/"',
60
+ 'pages.json.tabbar.page.notfound': 'The tabBar page "{pagePath}" is not declared in "pages.json".',
53
61
  };
@@ -1,5 +1,9 @@
1
1
  export declare const M: {
2
2
  readonly 'app.compiler.version': "编译器版本:{version}";
3
+ readonly 'view.render.compiler.target': "当前视图层编译目标:{target}";
4
+ readonly 'view.render.compiler.target.bytecode': "字节码";
5
+ readonly 'view.render.compiler.target.nativecode': "机器码";
6
+ readonly 'style.isolation.version': "当前样式隔离策略:{version}。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html";
3
7
  readonly compiling: "正在编译中...";
4
8
  readonly 'dev.performance': "请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。";
5
9
  readonly 'dev.performance.nvue': "尤其是 app-nvue 的 sourcemap 影响较大";
@@ -11,14 +15,17 @@ export declare const M: {
11
15
  readonly 'dev.watching.end.pages': "DONE Build complete. PAGES:{pages}";
12
16
  readonly 'dev.watching.end.files': "DONE Build complete. FILES:{files}";
13
17
  readonly 'dev.watching.restart.vapor': "DONE Restart required. 切换蒸汽模式需要重新运行才能生效。";
18
+ readonly 'dev.watching.vapor.render.target': "manifest.json 中更改了视图层编译目标为{manifestTarget},但注意运行控制台还是{runtimeTarget}。";
14
19
  readonly 'build.failed': "DONE Build failed.";
15
20
  readonly 'compiler.build.failed': "编译失败";
16
21
  readonly 'stat.warn.appid': "当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303";
17
- readonly 'stat.warn.version': "当前应用未配置uni统计版本,默认使用1.0版本;建议使用uni统计2.0版本 ,私有部署数据更安全,代码开源可定制。详情:https://uniapp.dcloud.io/uni-stat";
18
- readonly 'stat.warn.tip': "已开启 uni统计{version} 版本";
22
+ readonly 'stat.warn.version': "当前应用未配置 uni 统计版本,默认使用公有版;可配置为公有版或私有版。详情:https://uniapp.dcloud.io/uni-stat";
23
+ readonly 'stat.warn.tip': "已开启uni 统计 2.0{type}";
19
24
  readonly 'i18n.fallbackLocale.default': "当前应用未在 manifest.json 配置 fallbackLocale,默认使用:{locale}";
20
25
  readonly 'i18n.fallbackLocale.missing': "当前应用配置的 fallbackLocale 或 locale 为:{locale},但 locale 目录缺少该语言文件";
21
26
  readonly 'easycom.conflict': "easycom组件冲突:";
27
+ readonly 'dom2.compatible.component': "蒸汽模式不支持 uni-app 兼容模式组件 {name},检测到其实现文件为 {file}。请改用标准模式的UTS组件实现来实现。";
28
+ readonly 'dom2.root.scroll.view': "蒸汽模式下页面可滚动,建议移除根节点 scroll-view,以避免嵌套滚动。详情: https://doc.dcloud.net.cn/uni-app-x/page.html#disablescroll";
22
29
  readonly 'mp.component.args[0]': "{0}的第一个参数必须为静态字符串";
23
30
  readonly 'mp.component.args[1]': "{0}需要两个参数";
24
31
  readonly 'mp.360.unsupported': "vue3暂不支持360小程序";
@@ -48,8 +55,13 @@ export declare const M: {
48
55
  readonly 'uni_modules.import': "插件[{0}]仅支持 @/uni_modules/{1} 方式引入,不支持直接导入内部文件 {2}。";
49
56
  readonly 'pages.json.page.notfound': "页面\"{pagePath}\"不存在,请确保填写的页面路径不包含文件后缀,且必须与真实的文件路径大小写保持一致。";
50
57
  readonly 'pages.json.page.slash': "路径 \"{pagePath}\" 不能以 \"/\" 开头";
58
+ readonly 'pages.json.tabbar.page.notfound': "tabBar 中配置的页面 \"{pagePath}\" 未在 pages.json 中注册。";
51
59
  } | {
52
60
  readonly 'app.compiler.version': "Compiler version: {version}";
61
+ readonly 'view.render.compiler.target': "Current view.render compile target: {target}";
62
+ readonly 'view.render.compiler.target.bytecode': "bytecode";
63
+ readonly 'view.render.compiler.target.nativecode': "nativecode";
64
+ readonly 'style.isolation.version': "Style isolation version: {version}";
53
65
  readonly compiling: "Compiling...";
54
66
  readonly 'dev.performance': "Please note that in running mode, due to log output, sourcemap, and uncompressed source code, the performance and package size are not as good as release mode.";
55
67
  readonly 'dev.performance.nvue': "Especially the sourcemap of app-nvue has a greater impact";
@@ -61,14 +73,17 @@ export declare const M: {
61
73
  readonly 'dev.watching.end.pages': "DONE Build complete. PAGES:{pages}";
62
74
  readonly 'dev.watching.end.files': "DONE Build complete. FILES:{files}";
63
75
  readonly 'dev.watching.restart.vapor': "DONE Restart required. Switching vapor mode requires restarting to take effect.";
76
+ readonly 'dev.watching.vapor.render.target': "vapor-render-target in manifest.json was changed to {manifestTarget}, but the running console is still {runtimeTarget}.";
64
77
  readonly 'build.failed': "DONE Build failed.";
65
78
  readonly 'compiler.build.failed': "Build failed with errors.";
66
79
  readonly 'stat.warn.appid': "The current application is not configured with Appid, and uni statistics cannot be used. For details, see https://ask.dcloud.net.cn/article/36303";
67
- readonly 'stat.warn.version': "The uni statistics version is not configured. The default version is 1.0.uni statistics version 2.0 is recommended, private deployment data is more secure and code is open source and customizable. details: https://uniapp.dcloud.io/uni-stat";
68
- readonly 'stat.warn.tip': "uni statistics version: {version}";
80
+ readonly 'stat.warn.version': "The uni statistics type is not configured. The default type is public. You can set it to public or private. Details: https://uniapp.dcloud.io/uni-stat";
81
+ readonly 'stat.warn.tip': "uni statistics enabled: {type}";
69
82
  readonly 'i18n.fallbackLocale.default': "fallbackLocale is missing in manifest.json, use: {locale}";
70
83
  readonly 'i18n.fallbackLocale.missing': "./local/{locale}.json is missing";
71
84
  readonly 'easycom.conflict': "easycom component conflict: ";
85
+ readonly 'dom2.compatible.component': "Vapor mode does not support the uni-app compatibility component {name}. The implementation file {file} was detected. Please use the standard UTS component implementation for this purpose.";
86
+ readonly 'dom2.root.scroll.view': "Pages are scrollable in Vapor mode. Remove the root scroll-view to avoid nested scrolling. Details: https://doc.dcloud.net.cn/uni-app-x/page.html#disablescroll";
72
87
  readonly 'mp.component.args[0]': "The first parameter of {0} must be a static string";
73
88
  readonly 'mp.component.args[1]': "{0} requires two parameters";
74
89
  readonly 'mp.360.unsupported': "360 is unsupported";
@@ -98,4 +113,5 @@ export declare const M: {
98
113
  readonly 'uni_modules.import': "Plug-in [{0}] only supports @/uni_modules/{1}.";
99
114
  readonly 'pages.json.page.notfound': "The page \"{pagePath}\" does not exist.";
100
115
  readonly 'pages.json.page.slash': "The Path \"{pagePath}\" cannot start with \"/\"";
116
+ readonly 'pages.json.tabbar.page.notfound': "The tabBar page \"{pagePath}\" is not declared in \"pages.json\".";
101
117
  };