@dcloudio/uni-cli-shared 3.0.0-5020420260813003 → 3.0.0-5030320261023001
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.
- package/dist/dom2/fontFamily.js +2 -2
- package/dist/dom2/index.d.ts +1 -0
- package/dist/dom2/index.js +1 -0
- package/dist/dom2/script.d.ts +8 -0
- package/dist/dom2/script.js +32 -0
- package/dist/dom2/sharedData.d.ts +4 -1
- package/dist/dom2/sharedData.js +8 -2
- package/dist/hbx/alias.d.ts +3 -0
- package/dist/hbx/alias.js +170 -42
- package/dist/hbx/env.d.ts +0 -3
- package/dist/hbx/env.js +105 -2
- package/dist/hbx/index.d.ts +2 -1
- package/dist/hbx/index.js +6 -1
- package/dist/hbx/pluginPaths.d.ts +1 -0
- package/dist/hbx/pluginPaths.js +31 -0
- package/dist/hbx/utils.js +7 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/json/manifest.d.ts +3 -0
- package/dist/json/manifest.js +13 -1
- package/dist/json/mp/jsonFile.d.ts +8 -1
- package/dist/json/mp/jsonFile.js +171 -13
- package/dist/json/mp/pages.d.ts +1 -1
- package/dist/json/mp/types.d.ts +1 -0
- package/dist/json/mp/utils.d.ts +1 -1
- package/dist/json/mp/utils.js +13 -1
- package/dist/json/uni-x/index.d.ts +6 -0
- package/dist/json/uni-x/index.js +21 -8
- package/dist/json/uni-x/uniConfig.d.ts +1 -0
- package/dist/json/uni-x/uniConfig.js +5 -0
- package/dist/messages/en.d.ts +4 -0
- package/dist/messages/en.js +7 -0
- package/dist/messages/index.d.ts +8 -0
- package/dist/messages/zh_CN.d.ts +4 -0
- package/dist/messages/zh_CN.js +7 -0
- package/dist/mp/externalClasses.d.ts +17 -0
- package/dist/mp/externalClasses.js +77 -1
- package/dist/mp/index.d.ts +2 -1
- package/dist/mp/index.js +11 -1
- package/dist/mp/uasm.d.ts +37 -0
- package/dist/mp/uasm.js +228 -0
- package/dist/mp/usingComponents.d.ts +3 -3
- package/dist/mp/usingComponents.js +29 -9
- package/dist/postcss/plugins/alipayPageBackground.d.ts +3 -0
- package/dist/postcss/plugins/alipayPageBackground.js +125 -0
- package/dist/postcss/plugins/constants.d.ts +1 -0
- package/dist/postcss/plugins/constants.js +14 -0
- package/dist/postcss/plugins/stylePluginExternal.js +48 -0
- package/dist/postcss/plugins/uniapp.js +17 -20
- package/dist/preprocess/context.js +6 -0
- package/dist/resolve.d.ts +1 -1
- package/dist/resolve.js +37 -7
- package/dist/uasm.d.ts +82 -0
- package/dist/uasm.js +528 -0
- package/dist/uni_modules.cloud.js +2 -1
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +37 -5
- package/dist/uts/extApi.d.ts +7 -0
- package/dist/uts/extApi.js +35 -0
- package/dist/uts/scriptMacros.d.ts +13 -0
- package/dist/uts/scriptMacros.js +52 -0
- package/dist/uts.js +9 -2
- package/dist/vite/autoImport.js +8 -2
- package/dist/vite/cloud.js +19 -2
- package/dist/vite/index.d.ts +11 -0
- package/dist/vite/plugins/index.d.ts +1 -0
- package/dist/vite/plugins/index.js +1 -0
- package/dist/vite/plugins/stats.js +9 -0
- package/dist/vite/plugins/uts/standardScript.d.ts +17 -0
- package/dist/vite/plugins/uts/standardScript.js +150 -0
- package/dist/vite/plugins/uts/uni_modules.js +22 -6
- package/dist/vite/plugins/uts/uvue.d.ts +5 -1
- package/dist/vite/plugins/uts/uvue.js +124 -18
- package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -1
- package/dist/vite/plugins/vitejs/plugins/css.js +2 -1
- package/dist/vue/transforms/index.d.ts +1 -0
- package/dist/vue/transforms/index.js +1 -0
- package/dist/vue/transforms/transformTeleport.js +18 -1
- package/dist/vue/transforms/x/transformMPBuiltInTag.js +3 -0
- package/dist/vue/transforms/x/transformVHtml.d.ts +6 -0
- package/dist/vue/transforms/x/transformVHtml.js +62 -0
- package/dist/workers.d.ts +35 -1
- package/dist/workers.js +153 -27
- package/dist/x.d.ts +4 -0
- package/dist/x.js +19 -1
- package/lib/@vue/compiler-core/dist/compiler-core.cjs.js +16 -23
- package/lib/@vue/compiler-core/dist/compiler-core.cjs.prod.js +16 -23
- package/lib/@vue/compiler-core/dist/compiler-core.esm-bundler.js +16 -23
- package/lib/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +23 -66
- package/lib/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +67 -115
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +251 -93
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.cts +31 -1
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.mts +31 -1
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.ts +31 -1
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +251 -93
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +301 -250
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +287 -243
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +259 -293
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +211 -175
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +61 -52
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +60 -51
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.d.ts +10 -11
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +273 -230
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +7 -7
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +58 -50
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +273 -230
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +7 -7
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +1063 -3557
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +138 -137
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +2716 -1776
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +909 -631
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +579 -513
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +1310 -936
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +107 -40
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +107 -40
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +260 -240
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +104 -41
- package/lib/dom2/web/@vitejs/plugin-vue/dist/index.cjs +1826 -0
- package/lib/dom2/web/@vitejs/plugin-vue/dist/index.d.cts +127 -0
- package/lib/dom2/web/@vitejs/plugin-vue/dist/index.d.mts +127 -0
- package/lib/dom2/web/@vitejs/plugin-vue/dist/index.mjs +1795 -0
- package/lib/dom2/web/@vitejs/plugin-vue/package.json +67 -0
- package/lib/dom2/web/@vue/compiler-core/dist/compiler-core.cjs.js +5547 -0
- package/lib/dom2/web/@vue/compiler-core/dist/compiler-core.cjs.prod.js +5484 -0
- package/lib/dom2/web/@vue/compiler-core/dist/compiler-core.d.ts +1144 -0
- package/lib/dom2/web/@vue/compiler-core/dist/compiler-core.esm-bundler.js +4354 -0
- package/lib/dom2/web/@vue/compiler-core/index.js +7 -0
- package/lib/dom2/web/@vue/compiler-core/package.json +58 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.cjs.js +760 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +735 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.d.ts +72 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +5051 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +11 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +548 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.global.js +5232 -0
- package/lib/dom2/web/@vue/compiler-dom/dist/compiler-dom.global.prod.js +11 -0
- package/lib/dom2/web/@vue/compiler-dom/index.js +7 -0
- package/lib/dom2/web/@vue/compiler-dom/package.json +57 -0
- package/lib/dom2/web/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +16243 -0
- package/lib/dom2/web/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11680 -0
- package/lib/dom2/web/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +43922 -0
- package/lib/dom2/web/@vue/compiler-sfc/package.json +68 -0
- package/lib/dom2/web/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +880 -0
- package/lib/dom2/web/@vue/compiler-ssr/dist/compiler-ssr.d.ts +9 -0
- package/lib/dom2/web/@vue/compiler-ssr/package.json +34 -0
- package/lib/dom2/web/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +5066 -0
- package/lib/dom2/web/@vue/compiler-vapor/dist/compiler-vapor.d.ts +28814 -0
- package/lib/dom2/web/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +24098 -0
- package/lib/dom2/web/@vue/compiler-vapor/package.json +51 -0
- package/lib/dom2/web/@vue/compiler-vapor-web/dist/compiler-vapor-web.cjs.js +327 -0
- package/lib/dom2/web/@vue/compiler-vapor-web/dist/compiler-vapor-web.d.ts +14 -0
- package/lib/dom2/web/@vue/compiler-vapor-web/package.json +38 -0
- package/lib/dom2/web/@vue/server-renderer/dist/server-renderer.cjs.js +715 -0
- package/lib/dom2/web/@vue/server-renderer/dist/server-renderer.cjs.prod.js +702 -0
- package/lib/dom2/web/@vue/server-renderer/dist/server-renderer.d.ts +76 -0
- package/lib/dom2/web/@vue/server-renderer/dist/server-renderer.esm-browser.js +7265 -0
- package/lib/dom2/web/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +7 -0
- package/lib/dom2/web/@vue/server-renderer/dist/server-renderer.esm-bundler.js +597 -0
- package/lib/dom2/web/@vue/server-renderer/index.js +7 -0
- package/lib/dom2/web/@vue/server-renderer/package.json +53 -0
- package/lib/dom2/web/@vue/shared/dist/shared.cjs.js +918 -0
- package/lib/dom2/web/@vue/shared/dist/shared.cjs.prod.js +918 -0
- package/lib/dom2/web/@vue/shared/dist/shared.d.ts +526 -0
- package/lib/dom2/web/@vue/shared/dist/shared.esm-bundler.js +821 -0
- package/lib/dom2/web/@vue/shared/index.js +7 -0
- package/lib/dom2/web/@vue/shared/package.json +47 -0
- package/lib/dom2/web/vue-router/dist/devtools-CLRpXhL7.js +1060 -0
- package/lib/dom2/web/vue-router/dist/useApi-CUgTH_jn.js +444 -0
- package/lib/dom2/web/vue-router/dist/vue-router.js +1671 -0
- package/package.json +8 -6
package/dist/json/manifest.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const parseManifestJson: (inputDir: string) => any;
|
|
2
2
|
export declare const parseManifestJsonOnce: (inputDir: string) => any;
|
|
3
|
+
export type UniAppXVaporScriptLang = 'js' | 'ts' | 'uts';
|
|
4
|
+
export declare function resolveUniAppXVaporScriptLang(manifestJson: Record<string, any>): UniAppXVaporScriptLang;
|
|
5
|
+
export declare function getUniAppXVaporScriptLang(inputDir?: string): UniAppXVaporScriptLang;
|
|
3
6
|
export declare const parseRpx2UnitOnce: (inputDir: string, platform?: UniApp.PLATFORM) => any;
|
|
4
7
|
export declare function getNativeTags(inputDir?: string, platform?: UniApp.PLATFORM): any;
|
|
5
8
|
interface CompilerCompatConfig {
|
package/dist/json/manifest.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.validateThemeValue = exports.getPlatformManifestJsonOnce = exports.getPlatformManifestJson = exports.getDevServerOptions = exports.isEnableTreeShaking = exports.getRouterOptions = exports.isUniPushOffline = exports.hasPushModule = exports.isEnableSecureNetwork = exports.isEnableUniPushV2 = exports.isEnableUniPushV1 = exports.getUniStatistics = exports.normalizeNetworkTimeout = exports.parseCompatConfigOnce = exports.getNativeTags = exports.parseRpx2UnitOnce = exports.parseManifestJsonOnce = exports.parseManifestJson = void 0;
|
|
6
|
+
exports.validateThemeValue = exports.getPlatformManifestJsonOnce = exports.getPlatformManifestJson = exports.getDevServerOptions = exports.isEnableTreeShaking = exports.getRouterOptions = exports.isUniPushOffline = exports.hasPushModule = exports.isEnableSecureNetwork = exports.isEnableUniPushV2 = exports.isEnableUniPushV1 = exports.getUniStatistics = exports.normalizeNetworkTimeout = exports.parseCompatConfigOnce = exports.getNativeTags = exports.parseRpx2UnitOnce = exports.getUniAppXVaporScriptLang = exports.resolveUniAppXVaporScriptLang = exports.parseManifestJsonOnce = exports.parseManifestJson = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const shared_1 = require("@vue/shared");
|
|
@@ -21,6 +21,18 @@ const parseManifestJson = (inputDir) => {
|
|
|
21
21
|
};
|
|
22
22
|
exports.parseManifestJson = parseManifestJson;
|
|
23
23
|
exports.parseManifestJsonOnce = (0, uni_shared_1.once)(exports.parseManifestJson);
|
|
24
|
+
function resolveUniAppXVaporScriptLang(manifestJson) {
|
|
25
|
+
const lang = manifestJson['uni-app-x']?.['vapor-default-script-lang'];
|
|
26
|
+
return lang === 'js' || lang === 'ts' || lang === 'uts' ? lang : 'ts';
|
|
27
|
+
}
|
|
28
|
+
exports.resolveUniAppXVaporScriptLang = resolveUniAppXVaporScriptLang;
|
|
29
|
+
function getUniAppXVaporScriptLang(inputDir) {
|
|
30
|
+
if (!inputDir) {
|
|
31
|
+
return 'ts';
|
|
32
|
+
}
|
|
33
|
+
return resolveUniAppXVaporScriptLang((0, exports.parseManifestJsonOnce)(inputDir));
|
|
34
|
+
}
|
|
35
|
+
exports.getUniAppXVaporScriptLang = getUniAppXVaporScriptLang;
|
|
24
36
|
exports.parseRpx2UnitOnce = (0, uni_shared_1.once)((inputDir, platform = 'h5') => {
|
|
25
37
|
const rpx2unit = platform === 'h5' || platform === 'app' || platform === 'app-harmony'
|
|
26
38
|
? uni_shared_1.defaultRpx2Unit
|
|
@@ -5,9 +5,16 @@ export declare function hasJsonFile(filename: string): boolean;
|
|
|
5
5
|
export declare function getComponentJsonFilenames(): string[];
|
|
6
6
|
export declare function findJsonFile(filename: string): Record<string, any> | ComponentJson | PageWindowOptions | undefined;
|
|
7
7
|
export declare function findUsingComponents(filename: string): UsingComponents | undefined;
|
|
8
|
+
export declare function findMiniProgramSubPackageRoot(filename: string): string | undefined;
|
|
9
|
+
export declare function addMiniProgramComponentPackageRoot(filename: string, packageRoot?: string): void;
|
|
10
|
+
export declare function findMiniProgramComponentPackageRoot(filename: string): string | undefined;
|
|
11
|
+
export declare function findMiniProgramComponentPackageRoots(filename: string): (string | undefined)[] | undefined;
|
|
12
|
+
export declare function resolveMiniProgramComponentPackageRoot(filename: string, packageRoot?: string): string | undefined;
|
|
8
13
|
export declare function normalizeJsonFilename(filename: string): string;
|
|
9
14
|
export declare function findChangedJsonFiles(supportGlobalUsingComponents?: boolean | ((filename: string) => boolean)): Map<string, string>;
|
|
10
|
-
export declare function addMiniProgramAppJson(appJson: Record<string, any
|
|
15
|
+
export declare function addMiniProgramAppJson(appJson: Record<string, any>, options?: {
|
|
16
|
+
subPackages?: boolean;
|
|
17
|
+
}): void;
|
|
11
18
|
export declare function addMiniProgramPageJson(filename: string, json: PageWindowOptions): void;
|
|
12
19
|
export declare function addMiniProgramComponentJson(filename: string, json: ComponentJson): void;
|
|
13
20
|
export declare function addMiniProgramUsingComponents(filename: string, json: UsingComponents): void;
|
package/dist/json/mp/jsonFile.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findUsingComponentsJson = exports.findMiniProgramUsingComponents = exports.isMiniProgramUsingComponent = exports.resetMiniProgramJsonFiles = exports.addMiniProgramUsingComponents = exports.addMiniProgramComponentJson = exports.addMiniProgramPageJson = exports.addMiniProgramAppJson = exports.findChangedJsonFiles = exports.normalizeJsonFilename = exports.findUsingComponents = exports.findJsonFile = exports.getComponentJsonFilenames = exports.hasJsonFile = exports.isMiniProgramPageSfcFile = exports.isMiniProgramPageFile = void 0;
|
|
6
|
+
exports.findUsingComponentsJson = exports.findMiniProgramUsingComponents = exports.isMiniProgramUsingComponent = exports.resetMiniProgramJsonFiles = exports.addMiniProgramUsingComponents = exports.addMiniProgramComponentJson = exports.addMiniProgramPageJson = exports.addMiniProgramAppJson = exports.findChangedJsonFiles = exports.normalizeJsonFilename = exports.resolveMiniProgramComponentPackageRoot = exports.findMiniProgramComponentPackageRoots = exports.findMiniProgramComponentPackageRoot = exports.addMiniProgramComponentPackageRoot = exports.findMiniProgramSubPackageRoot = exports.findUsingComponents = exports.findJsonFile = exports.getComponentJsonFilenames = exports.hasJsonFile = exports.isMiniProgramPageSfcFile = exports.isMiniProgramPageFile = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const shared_1 = require("@vue/shared");
|
|
@@ -12,12 +12,16 @@ const resolve_1 = require("../../resolve");
|
|
|
12
12
|
const utils_2 = require("../../vue/utils");
|
|
13
13
|
const uni_shared_1 = require("@dcloudio/uni-shared");
|
|
14
14
|
const subpackage_1 = require("./subpackage");
|
|
15
|
+
const x_1 = require("../../x");
|
|
15
16
|
let appJsonCache = {};
|
|
17
|
+
let subPackageRootsCache = [];
|
|
16
18
|
let independentRootsCache = [];
|
|
17
19
|
const jsonFilesCache = new Map();
|
|
18
20
|
const jsonPagesCache = new Map();
|
|
19
21
|
const jsonComponentsCache = new Map();
|
|
20
22
|
const jsonUsingComponentsCache = new Map();
|
|
23
|
+
const componentPackageRootsCache = new Map();
|
|
24
|
+
const mainPackageRoot = '';
|
|
21
25
|
function isMiniProgramPageFile(file, inputDir) {
|
|
22
26
|
if (inputDir && path_1.default.isAbsolute(file)) {
|
|
23
27
|
file = (0, utils_1.normalizePath)(path_1.default.relative(inputDir, file));
|
|
@@ -50,6 +54,74 @@ function findUsingComponents(filename) {
|
|
|
50
54
|
return jsonUsingComponentsCache.get(filename);
|
|
51
55
|
}
|
|
52
56
|
exports.findUsingComponents = findUsingComponents;
|
|
57
|
+
function findMiniProgramSubPackageRoot(filename) {
|
|
58
|
+
if (!(0, x_1.isUniAppX)()) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
return findSubPackageRoot(filename, subPackageRootsCache);
|
|
62
|
+
}
|
|
63
|
+
exports.findMiniProgramSubPackageRoot = findMiniProgramSubPackageRoot;
|
|
64
|
+
function addMiniProgramComponentPackageRoot(filename, packageRoot) {
|
|
65
|
+
if (!(0, x_1.isUniAppX)()) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const normalizedFilename = normalizeComponentPackageFilename(filename);
|
|
69
|
+
if (!normalizedFilename.startsWith('uni_modules/')) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const roots = componentPackageRootsCache.get(normalizedFilename) || new Set();
|
|
73
|
+
roots.add(packageRoot || mainPackageRoot);
|
|
74
|
+
componentPackageRootsCache.set(normalizedFilename, roots);
|
|
75
|
+
}
|
|
76
|
+
exports.addMiniProgramComponentPackageRoot = addMiniProgramComponentPackageRoot;
|
|
77
|
+
function findMiniProgramComponentPackageRoot(filename) {
|
|
78
|
+
if (!(0, x_1.isUniAppX)()) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const roots = getMiniProgramComponentPackageRoots(filename);
|
|
82
|
+
if (roots?.size === 1) {
|
|
83
|
+
const [root] = [...roots];
|
|
84
|
+
return root || undefined;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.findMiniProgramComponentPackageRoot = findMiniProgramComponentPackageRoot;
|
|
88
|
+
function findMiniProgramComponentPackageRoots(filename) {
|
|
89
|
+
if (!(0, x_1.isUniAppX)()) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const roots = getMiniProgramComponentPackageRoots(filename);
|
|
93
|
+
if (roots) {
|
|
94
|
+
if (roots.has(mainPackageRoot) || roots.size > 1) {
|
|
95
|
+
return [undefined];
|
|
96
|
+
}
|
|
97
|
+
return [...roots].map((root) => root || undefined);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.findMiniProgramComponentPackageRoots = findMiniProgramComponentPackageRoots;
|
|
101
|
+
function resolveMiniProgramComponentPackageRoot(filename, packageRoot) {
|
|
102
|
+
if (!(0, x_1.isUniAppX)()) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const roots = getMiniProgramComponentPackageRoots(filename);
|
|
106
|
+
if (!roots) {
|
|
107
|
+
return packageRoot;
|
|
108
|
+
}
|
|
109
|
+
if (roots.has(mainPackageRoot)) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (roots.size > 1) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const normalizedPackageRoot = packageRoot || mainPackageRoot;
|
|
116
|
+
if (roots.has(normalizedPackageRoot)) {
|
|
117
|
+
return packageRoot;
|
|
118
|
+
}
|
|
119
|
+
if (roots.size === 1) {
|
|
120
|
+
const [root] = [...roots];
|
|
121
|
+
return root || undefined;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.resolveMiniProgramComponentPackageRoot = resolveMiniProgramComponentPackageRoot;
|
|
53
125
|
function normalizeJsonFilename(filename) {
|
|
54
126
|
return (0, utils_1.normalizeNodeModules)(filename);
|
|
55
127
|
}
|
|
@@ -57,16 +129,20 @@ exports.normalizeJsonFilename = normalizeJsonFilename;
|
|
|
57
129
|
function findChangedJsonFiles(supportGlobalUsingComponents = true) {
|
|
58
130
|
const changedJsonFiles = new Map();
|
|
59
131
|
function findChangedFile(filename, json) {
|
|
132
|
+
const cacheFilename = filename;
|
|
133
|
+
const outputFilename = (0, x_1.isUniAppX)()
|
|
134
|
+
? normalizeJsonPackageFilename(filename)
|
|
135
|
+
: filename;
|
|
60
136
|
const newJson = JSON.parse(JSON.stringify(json));
|
|
61
137
|
if (!newJson.usingComponents) {
|
|
62
138
|
newJson.usingComponents = {};
|
|
63
139
|
}
|
|
64
|
-
(0, shared_1.extend)(newJson.usingComponents, jsonUsingComponentsCache.get(
|
|
140
|
+
(0, shared_1.extend)(newJson.usingComponents, jsonUsingComponentsCache.get(cacheFilename));
|
|
65
141
|
// 格式化为相对路径,这样作为分包也可以直接运行
|
|
66
142
|
// app.json mp-baidu 在 win 不支持相对路径。所有平台改用绝对路径
|
|
67
|
-
if (
|
|
143
|
+
if (outputFilename !== 'app') {
|
|
68
144
|
let usingComponents = newJson.usingComponents;
|
|
69
|
-
const independentRoot =
|
|
145
|
+
const independentRoot = findSubPackageRoot(outputFilename, independentRootsCache);
|
|
70
146
|
const supportGlobalUsingComponentsForFile = typeof supportGlobalUsingComponents === 'function'
|
|
71
147
|
? supportGlobalUsingComponents(filename)
|
|
72
148
|
: supportGlobalUsingComponents;
|
|
@@ -82,20 +158,22 @@ function findChangedJsonFiles(supportGlobalUsingComponents = true) {
|
|
|
82
158
|
};
|
|
83
159
|
}
|
|
84
160
|
if (independentRoot) {
|
|
85
|
-
validateIndependentUsingComponents(
|
|
161
|
+
validateIndependentUsingComponents(outputFilename, independentRoot, usingComponents);
|
|
86
162
|
}
|
|
87
163
|
Object.keys(usingComponents).forEach((name) => {
|
|
88
|
-
const componentFilename =
|
|
164
|
+
const componentFilename = (0, x_1.isUniAppX)()
|
|
165
|
+
? normalizeUsingComponentPackageFilename(usingComponents[name], outputFilename)
|
|
166
|
+
: usingComponents[name];
|
|
89
167
|
if (componentFilename.startsWith('/')) {
|
|
90
|
-
usingComponents[name] = (0, resolve_1.relativeFile)(
|
|
168
|
+
usingComponents[name] = (0, resolve_1.relativeFile)(outputFilename, componentFilename.slice(1));
|
|
91
169
|
}
|
|
92
170
|
});
|
|
93
171
|
newJson.usingComponents = usingComponents;
|
|
94
172
|
}
|
|
95
173
|
const jsonStr = JSON.stringify(newJson, null, 2);
|
|
96
|
-
if (jsonFilesCache.get(
|
|
97
|
-
changedJsonFiles.set(
|
|
98
|
-
jsonFilesCache.set(
|
|
174
|
+
if (jsonFilesCache.get(outputFilename) !== jsonStr) {
|
|
175
|
+
changedJsonFiles.set(outputFilename, jsonStr);
|
|
176
|
+
jsonFilesCache.set(outputFilename, jsonStr);
|
|
99
177
|
}
|
|
100
178
|
}
|
|
101
179
|
function findChangedFiles(jsonsCache) {
|
|
@@ -111,8 +189,8 @@ function findChangedJsonFiles(supportGlobalUsingComponents = true) {
|
|
|
111
189
|
return changedJsonFiles;
|
|
112
190
|
}
|
|
113
191
|
exports.findChangedJsonFiles = findChangedJsonFiles;
|
|
114
|
-
function
|
|
115
|
-
return
|
|
192
|
+
function findSubPackageRoot(filename, roots) {
|
|
193
|
+
return roots.find((root) => {
|
|
116
194
|
return filename === root || filename.startsWith(root + '/');
|
|
117
195
|
});
|
|
118
196
|
}
|
|
@@ -142,8 +220,13 @@ function isLocalUsingComponent(componentFilename) {
|
|
|
142
220
|
return (!/^(?:plugin|dynamicLib|ext):\/\//.test(componentFilename) &&
|
|
143
221
|
!componentFilename.startsWith('weui-miniprogram'));
|
|
144
222
|
}
|
|
145
|
-
function addMiniProgramAppJson(appJson) {
|
|
223
|
+
function addMiniProgramAppJson(appJson, options = {}) {
|
|
146
224
|
appJsonCache = appJson;
|
|
225
|
+
componentPackageRootsCache.clear();
|
|
226
|
+
subPackageRootsCache =
|
|
227
|
+
!(0, x_1.isUniAppX)() || options.subPackages === false
|
|
228
|
+
? []
|
|
229
|
+
: parseSubPackageRoots(appJson);
|
|
147
230
|
independentRootsCache = (0, subpackage_1.parseIndependentSubPackages)(appJson).map(({ root }) => root);
|
|
148
231
|
}
|
|
149
232
|
exports.addMiniProgramAppJson = addMiniProgramAppJson;
|
|
@@ -161,14 +244,89 @@ function addMiniProgramUsingComponents(filename, json) {
|
|
|
161
244
|
exports.addMiniProgramUsingComponents = addMiniProgramUsingComponents;
|
|
162
245
|
function resetMiniProgramJsonFiles() {
|
|
163
246
|
appJsonCache = {};
|
|
247
|
+
subPackageRootsCache = [];
|
|
164
248
|
independentRootsCache = [];
|
|
165
249
|
(0, subpackage_1.setIndependentSubPackages)([]);
|
|
250
|
+
componentPackageRootsCache.clear();
|
|
166
251
|
jsonFilesCache.clear();
|
|
167
252
|
jsonPagesCache.clear();
|
|
168
253
|
jsonComponentsCache.clear();
|
|
169
254
|
jsonUsingComponentsCache.clear();
|
|
170
255
|
}
|
|
171
256
|
exports.resetMiniProgramJsonFiles = resetMiniProgramJsonFiles;
|
|
257
|
+
function parseSubPackageRoots(pagesJson) {
|
|
258
|
+
const subPackages = pagesJson?.subPackages || pagesJson?.subpackages || [];
|
|
259
|
+
if (!Array.isArray(subPackages)) {
|
|
260
|
+
return [];
|
|
261
|
+
}
|
|
262
|
+
return subPackages
|
|
263
|
+
.map((subPackage) => {
|
|
264
|
+
if (!subPackage ||
|
|
265
|
+
subPackage.independent === true ||
|
|
266
|
+
typeof subPackage.root !== 'string') {
|
|
267
|
+
return '';
|
|
268
|
+
}
|
|
269
|
+
return (0, utils_1.normalizePath)(subPackage.root).replace(/^\/+|\/+$/g, '');
|
|
270
|
+
})
|
|
271
|
+
.filter(Boolean)
|
|
272
|
+
.sort((a, b) => b.length - a.length);
|
|
273
|
+
}
|
|
274
|
+
function normalizeJsonPackageFilename(filename) {
|
|
275
|
+
const unrootedFilename = withoutSubPackageRootForUniModules(filename);
|
|
276
|
+
const ownerRoot = findMiniProgramSubPackageRoot(filename);
|
|
277
|
+
const roots = getMiniProgramComponentPackageRoots(unrootedFilename);
|
|
278
|
+
if (unrootedFilename !== filename &&
|
|
279
|
+
roots &&
|
|
280
|
+
(roots.has(mainPackageRoot) ||
|
|
281
|
+
roots.size > 1 ||
|
|
282
|
+
!ownerRoot ||
|
|
283
|
+
!roots.has(ownerRoot))) {
|
|
284
|
+
return unrootedFilename;
|
|
285
|
+
}
|
|
286
|
+
return filename;
|
|
287
|
+
}
|
|
288
|
+
function normalizeUsingComponentPackageFilename(componentFilename, ownerFilename) {
|
|
289
|
+
if (!componentFilename.startsWith('/')) {
|
|
290
|
+
return componentFilename;
|
|
291
|
+
}
|
|
292
|
+
const normalizedFilename = (0, utils_1.normalizePath)(componentFilename).replace(/^\/+/, '');
|
|
293
|
+
const unrootedFilename = withoutSubPackageRootForUniModules(normalizedFilename);
|
|
294
|
+
if (!unrootedFilename.startsWith('uni_modules/')) {
|
|
295
|
+
return componentFilename;
|
|
296
|
+
}
|
|
297
|
+
const roots = getMiniProgramComponentPackageRoots(unrootedFilename);
|
|
298
|
+
if (!roots) {
|
|
299
|
+
return componentFilename;
|
|
300
|
+
}
|
|
301
|
+
if (roots.has(mainPackageRoot) || roots.size > 1) {
|
|
302
|
+
return '/' + unrootedFilename;
|
|
303
|
+
}
|
|
304
|
+
const ownerRoot = findMiniProgramSubPackageRoot(ownerFilename);
|
|
305
|
+
if (ownerRoot && roots.has(ownerRoot)) {
|
|
306
|
+
return '/' + `${ownerRoot}/${unrootedFilename}`;
|
|
307
|
+
}
|
|
308
|
+
const packageRoot = findMiniProgramComponentPackageRoot(unrootedFilename);
|
|
309
|
+
return '/' + (packageRoot ? `${packageRoot}/` : '') + unrootedFilename;
|
|
310
|
+
}
|
|
311
|
+
function withoutSubPackageRootForUniModules(filename) {
|
|
312
|
+
for (const root of subPackageRootsCache) {
|
|
313
|
+
if (filename.startsWith(`${root}/uni_modules/`)) {
|
|
314
|
+
return filename.slice(root.length + 1);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return filename;
|
|
318
|
+
}
|
|
319
|
+
function normalizeComponentPackageFilename(filename) {
|
|
320
|
+
let normalizedFilename = withoutSubPackageRootForUniModules((0, utils_1.normalizePath)(filename).split('?')[0].replace(/^\/+/, ''));
|
|
321
|
+
const uniModulesIndex = normalizedFilename.indexOf('uni_modules/');
|
|
322
|
+
if (uniModulesIndex > -1) {
|
|
323
|
+
normalizedFilename = normalizedFilename.slice(uniModulesIndex);
|
|
324
|
+
}
|
|
325
|
+
return (0, utils_1.removeExt)(normalizedFilename);
|
|
326
|
+
}
|
|
327
|
+
function getMiniProgramComponentPackageRoots(filename) {
|
|
328
|
+
return componentPackageRootsCache.get(normalizeComponentPackageFilename(filename));
|
|
329
|
+
}
|
|
172
330
|
function isMiniProgramUsingComponent(name, options) {
|
|
173
331
|
return !!findMiniProgramUsingComponents(options)[name];
|
|
174
332
|
}
|
package/dist/json/mp/pages.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface ParsePagesJsonOptions {
|
|
|
4
4
|
darkmode?: boolean;
|
|
5
5
|
subpackages: boolean;
|
|
6
6
|
independentSubpackages?: boolean;
|
|
7
|
-
windowOptionsMap?: Record<string, string>;
|
|
7
|
+
windowOptionsMap?: Record<string, string | string[]>;
|
|
8
8
|
tabBarOptionsMap?: Record<string, string>;
|
|
9
9
|
tabBarItemOptionsMap?: Record<string, string>;
|
|
10
10
|
networkTimeout?: NetworkTimeout;
|
package/dist/json/mp/types.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface PageWindowOptions extends ShareWindowOptions {
|
|
|
28
28
|
style?: Style;
|
|
29
29
|
singlePage?: SinglePage;
|
|
30
30
|
restartStrategy?: RestartStrategy;
|
|
31
|
+
styleIsolation?: 'shared' | 'isolated';
|
|
31
32
|
}
|
|
32
33
|
export interface AppWindowOptions extends ShareWindowOptions {
|
|
33
34
|
visualEffectInBackground?: 'none' | 'hidden';
|
package/dist/json/mp/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AppWindowOptions, PageWindowOptions, TabBar } from './types';
|
|
2
|
-
export declare function parseWindowOptions(style: UniApp.PagesJsonPageStyle, platform: UniApp.PLATFORM, windowOptionsMap?: Record<string, string>): PageWindowOptions | AppWindowOptions;
|
|
2
|
+
export declare function parseWindowOptions(style: UniApp.PagesJsonPageStyle, platform: UniApp.PLATFORM, windowOptionsMap?: Record<string, string | string[]>): PageWindowOptions | AppWindowOptions;
|
|
3
3
|
export declare function parseTabBar(tabBar: UniApp.TabBarOptions, platform: UniApp.PLATFORM, tabBarOptionsMap?: Record<string, string>, tabBarItemOptionsMap?: Record<string, string>): TabBar;
|
package/dist/json/mp/utils.js
CHANGED
|
@@ -21,6 +21,18 @@ function convert(to, from, map) {
|
|
|
21
21
|
});
|
|
22
22
|
return to;
|
|
23
23
|
}
|
|
24
|
+
function convertWindowOptions(to, from, map) {
|
|
25
|
+
Object.entries(map).forEach(([key, value]) => {
|
|
26
|
+
const names = (0, shared_1.isArray)(value) ? value : [value];
|
|
27
|
+
for (const name of names) {
|
|
28
|
+
if ((0, shared_1.hasOwn)(from, name)) {
|
|
29
|
+
to[key] = from[name];
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return to;
|
|
35
|
+
}
|
|
24
36
|
function parseWindowOptions(style, platform, windowOptionsMap) {
|
|
25
37
|
if (!style) {
|
|
26
38
|
return {};
|
|
@@ -29,7 +41,7 @@ function parseWindowOptions(style, platform, windowOptionsMap) {
|
|
|
29
41
|
(0, pages_1.removePlatformStyle)(trimJson(style));
|
|
30
42
|
const res = {};
|
|
31
43
|
if (windowOptionsMap) {
|
|
32
|
-
return (0, shared_1.extend)(
|
|
44
|
+
return (0, shared_1.extend)(convertWindowOptions(res, style, windowOptionsMap), platformStyle);
|
|
33
45
|
}
|
|
34
46
|
return (0, shared_1.extend)(res, style, platformStyle);
|
|
35
47
|
}
|
|
@@ -3,6 +3,12 @@ export interface UniXPageOptions {
|
|
|
3
3
|
disableScroll?: boolean;
|
|
4
4
|
enablePullDownRefresh?: boolean;
|
|
5
5
|
scrollIndicator?: 'none';
|
|
6
|
+
enableBackToTop?: boolean;
|
|
7
|
+
bounces?: boolean;
|
|
8
|
+
androidOverscroll?: boolean;
|
|
9
|
+
androidRefresherColor?: string;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
backgroundTextStyle?: 'dark' | 'light';
|
|
6
12
|
}
|
|
7
13
|
export declare function normalizeUniAppXAppPagesJson(jsonStr: string): UniApp.PagesJson;
|
|
8
14
|
export declare function parseUniXPageOptions(filename: string): UniXPageOptions | undefined;
|
package/dist/json/uni-x/index.js
CHANGED
|
@@ -90,18 +90,31 @@ function updateUniXPageOptions(pagesJson) {
|
|
|
90
90
|
}
|
|
91
91
|
const pageOptions = new Map();
|
|
92
92
|
pagesJson.pages.forEach((page) => {
|
|
93
|
-
pageOptions.set(page.path, normalizeRootPageOptions(page.style));
|
|
93
|
+
pageOptions.set(page.path, normalizeRootPageOptions(page.style, pagesJson.globalStyle));
|
|
94
94
|
});
|
|
95
95
|
uniXPageOptionsCache.set(inputDir, pageOptions);
|
|
96
96
|
}
|
|
97
|
-
function normalizeRootPageOptions(pageStyle) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
function normalizeRootPageOptions(pageStyle, globalStyle) {
|
|
98
|
+
const androidRefresherColor = pageStyle?.androidRefresherColor ?? globalStyle.androidRefresherColor;
|
|
99
|
+
const backgroundColor = pageStyle?.backgroundColor ?? globalStyle.backgroundColor;
|
|
100
|
+
const backgroundTextStyle = pageStyle?.backgroundTextStyle ?? globalStyle.backgroundTextStyle;
|
|
101
101
|
return {
|
|
102
|
-
disableScroll: pageStyle
|
|
103
|
-
enablePullDownRefresh: isEnablePullDownRefresh(pageStyle) || undefined,
|
|
104
|
-
scrollIndicator: pageStyle
|
|
102
|
+
disableScroll: pageStyle?.disableScroll === true || undefined,
|
|
103
|
+
enablePullDownRefresh: (pageStyle && isEnablePullDownRefresh(pageStyle)) || undefined,
|
|
104
|
+
scrollIndicator: pageStyle?.scrollIndicator,
|
|
105
|
+
// 新增的根滚动配置遵循 pages.json 页面样式覆盖全局样式的规则。
|
|
106
|
+
enableBackToTop: pageStyle?.enableBackToTop ?? globalStyle.enableBackToTop,
|
|
107
|
+
bounces: pageStyle?.bounces ?? globalStyle.bounces,
|
|
108
|
+
androidOverscroll: pageStyle?.androidOverscroll ?? globalStyle.androidOverscroll,
|
|
109
|
+
androidRefresherColor: androidRefresherColor?.startsWith('@')
|
|
110
|
+
? undefined
|
|
111
|
+
: androidRefresherColor,
|
|
112
|
+
backgroundColor: backgroundColor?.startsWith('@')
|
|
113
|
+
? undefined
|
|
114
|
+
: backgroundColor,
|
|
115
|
+
backgroundTextStyle: backgroundTextStyle?.startsWith('@')
|
|
116
|
+
? undefined
|
|
117
|
+
: backgroundTextStyle,
|
|
105
118
|
};
|
|
106
119
|
}
|
|
107
120
|
function initUniXPageOptions() {
|
|
@@ -10,6 +10,7 @@ interface AppXUniConfig {
|
|
|
10
10
|
conditionUrl?: string;
|
|
11
11
|
realEntryPagePath?: string;
|
|
12
12
|
themeConfig?: unknown;
|
|
13
|
+
pageSelectorBackgroundColor?: unknown;
|
|
13
14
|
}
|
|
14
15
|
export declare function normalizeAppXUniConfig(pagesJson: UniApp.PagesJson, manifestJson: Record<string, any>): AppXUniConfig;
|
|
15
16
|
export {};
|
|
@@ -21,6 +21,11 @@ function normalizeAppXUniConfig(pagesJson, manifestJson) {
|
|
|
21
21
|
if (pagesJson.themeConfig) {
|
|
22
22
|
config.themeConfig = pagesJson.themeConfig;
|
|
23
23
|
}
|
|
24
|
+
const pageSelectorBackgroundColor = pagesJson
|
|
25
|
+
.pageSelectorBackgroundColor;
|
|
26
|
+
if (pageSelectorBackgroundColor) {
|
|
27
|
+
config.pageSelectorBackgroundColor = pageSelectorBackgroundColor;
|
|
28
|
+
}
|
|
24
29
|
// TODO 待支持分包
|
|
25
30
|
return config;
|
|
26
31
|
}
|
package/dist/messages/en.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare const _default: {
|
|
|
3
3
|
readonly 'view.render.compiler.target': "Current view.render compile target: {target}";
|
|
4
4
|
readonly 'view.render.compiler.target.bytecode': "bytecode";
|
|
5
5
|
readonly 'view.render.compiler.target.nativecode': "nativecode";
|
|
6
|
+
readonly 'vapor.default.script.lang': "Default script lang for current uvue/vue files: {lang}";
|
|
6
7
|
readonly 'style.isolation.version': "Style isolation version: {version}";
|
|
7
8
|
readonly 'style.isolation.version.upgrade': "Style isolation version: {version}. Upgrading to 2.0 is recommended.";
|
|
8
9
|
readonly compiling: "Compiling...";
|
|
@@ -16,8 +17,10 @@ declare const _default: {
|
|
|
16
17
|
readonly 'dev.watching.end.pages': "DONE Build complete. PAGES:{pages}";
|
|
17
18
|
readonly 'dev.watching.end.files': "DONE Build complete. FILES:{files}";
|
|
18
19
|
readonly 'dev.watching.restart.vapor': "DONE Restart required. Switching vapor mode requires restarting to take effect.";
|
|
20
|
+
readonly 'dev.watching.restart.script.engine': "DONE Restart required. Script engine changes require restarting to take effect.";
|
|
19
21
|
readonly 'dev.watching.restart.independentSubPackages': "DONE Restart required. Changing independent subpackage roots requires restarting to take effect.";
|
|
20
22
|
readonly 'dev.watching.vapor.render.target': "vapor-render-target in manifest.json was changed to {manifestTarget}, but the running console is still {runtimeTarget}.";
|
|
23
|
+
readonly 'harmony.vapor.script.engine': "Invalid Harmony script engine ({engine}) specified, using default.";
|
|
21
24
|
readonly 'build.failed': "DONE Build failed.";
|
|
22
25
|
readonly 'compiler.build.failed': "Build failed with errors.";
|
|
23
26
|
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";
|
|
@@ -58,5 +61,6 @@ declare const _default: {
|
|
|
58
61
|
readonly 'pages.json.page.notfound': "The page \"{pagePath}\" does not exist.";
|
|
59
62
|
readonly 'pages.json.page.slash': "The Path \"{pagePath}\" cannot start with \"/\"";
|
|
60
63
|
readonly 'pages.json.tabbar.page.notfound': "The tabBar page \"{pagePath}\" is not declared in \"pages.json\".";
|
|
64
|
+
readonly 'vapor.tree.shaking.applied': "Based on the module selection and tree-shaking scan results in manifest.json, the following built-in modules and plugins will be included in this build:\n{modules}\nIf you need to add more modules, please add them in manifest.json (you need to rebuild after adding). For third-party SDKs, select more modules in the visual interface, and add other modules according to the documentation in the source view of manifest.json. [Details](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html)\nNote: If a module is not included in the custom playground, the related APIs cannot be used in the custom playground; if a module is not included in the official package, the related APIs cannot be used after subsequent wgt resource updates.";
|
|
61
65
|
};
|
|
62
66
|
export default _default;
|
package/dist/messages/en.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.default = {
|
|
|
5
5
|
'view.render.compiler.target': 'Current view.render compile target: {target}',
|
|
6
6
|
'view.render.compiler.target.bytecode': 'bytecode',
|
|
7
7
|
'view.render.compiler.target.nativecode': 'nativecode',
|
|
8
|
+
'vapor.default.script.lang': 'Default script lang for current uvue/vue files: {lang}',
|
|
8
9
|
'style.isolation.version': 'Style isolation version: {version}',
|
|
9
10
|
'style.isolation.version.upgrade': 'Style isolation version: {version}. Upgrading to 2.0 is recommended.',
|
|
10
11
|
compiling: 'Compiling...',
|
|
@@ -18,8 +19,10 @@ exports.default = {
|
|
|
18
19
|
'dev.watching.end.pages': 'DONE Build complete. PAGES:{pages}',
|
|
19
20
|
'dev.watching.end.files': 'DONE Build complete. FILES:{files}',
|
|
20
21
|
'dev.watching.restart.vapor': 'DONE Restart required. Switching vapor mode requires restarting to take effect.',
|
|
22
|
+
'dev.watching.restart.script.engine': 'DONE Restart required. Script engine changes require restarting to take effect.',
|
|
21
23
|
'dev.watching.restart.independentSubPackages': 'DONE Restart required. Changing independent subpackage roots requires restarting to take effect.',
|
|
22
24
|
'dev.watching.vapor.render.target': 'vapor-render-target in manifest.json was changed to {manifestTarget}, but the running console is still {runtimeTarget}.',
|
|
25
|
+
'harmony.vapor.script.engine': 'Invalid Harmony script engine ({engine}) specified, using default.',
|
|
23
26
|
'build.failed': 'DONE Build failed.',
|
|
24
27
|
'compiler.build.failed': 'Build failed with errors.',
|
|
25
28
|
'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',
|
|
@@ -60,4 +63,8 @@ exports.default = {
|
|
|
60
63
|
'pages.json.page.notfound': 'The page "{pagePath}" does not exist.',
|
|
61
64
|
'pages.json.page.slash': 'The Path "{pagePath}" cannot start with "/"',
|
|
62
65
|
'pages.json.tabbar.page.notfound': 'The tabBar page "{pagePath}" is not declared in "pages.json".',
|
|
66
|
+
'vapor.tree.shaking.applied': `Based on the module selection and tree-shaking scan results in manifest.json, the following built-in modules and plugins will be included in this build:
|
|
67
|
+
{modules}
|
|
68
|
+
If you need to add more modules, please add them in manifest.json (you need to rebuild after adding). For third-party SDKs, select more modules in the visual interface, and add other modules according to the documentation in the source view of manifest.json. [Details](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html)
|
|
69
|
+
Note: If a module is not included in the custom playground, the related APIs cannot be used in the custom playground; if a module is not included in the official package, the related APIs cannot be used after subsequent wgt resource updates.`,
|
|
63
70
|
};
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const M: {
|
|
|
3
3
|
readonly 'view.render.compiler.target': "当前视图层编译目标:{target}";
|
|
4
4
|
readonly 'view.render.compiler.target.bytecode': "字节码";
|
|
5
5
|
readonly 'view.render.compiler.target.nativecode': "机器码";
|
|
6
|
+
readonly 'vapor.default.script.lang': "当前 uvue/vue 文件默认 script lang:{lang}";
|
|
6
7
|
readonly 'style.isolation.version': "当前样式隔离策略:{version}。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html";
|
|
7
8
|
readonly 'style.isolation.version.upgrade': "当前样式隔离策略:{version}。推荐升级为 2.0。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html";
|
|
8
9
|
readonly compiling: "正在编译中...";
|
|
@@ -18,6 +19,8 @@ export declare const M: {
|
|
|
18
19
|
readonly 'dev.watching.restart.vapor': "DONE Restart required. 切换蒸汽模式需要重新运行才能生效。";
|
|
19
20
|
readonly 'dev.watching.restart.independentSubPackages': "DONE Restart required. 独立分包 root 列表变化需要重新运行才能生效。";
|
|
20
21
|
readonly 'dev.watching.vapor.render.target': "manifest.json 中更改了视图层编译目标为{manifestTarget},但注意运行控制台还是{runtimeTarget}。";
|
|
22
|
+
readonly 'harmony.vapor.script.engine': "指定的 Harmony 脚本引擎无效({engine}),使用默认值。";
|
|
23
|
+
readonly 'dev.watching.restart.script.engine': "DONE Restart required. 脚本引擎变化需要重新运行才能生效。";
|
|
21
24
|
readonly 'build.failed': "DONE Build failed.";
|
|
22
25
|
readonly 'compiler.build.failed': "编译失败";
|
|
23
26
|
readonly 'stat.warn.appid': "当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303";
|
|
@@ -58,11 +61,13 @@ export declare const M: {
|
|
|
58
61
|
readonly 'pages.json.page.notfound': "页面\"{pagePath}\"不存在,请确保填写的页面路径不包含文件后缀,且必须与真实的文件路径大小写保持一致。";
|
|
59
62
|
readonly 'pages.json.page.slash': "路径 \"{pagePath}\" 不能以 \"/\" 开头";
|
|
60
63
|
readonly 'pages.json.tabbar.page.notfound': "tabBar 中配置的页面 \"{pagePath}\" 未在 pages.json 中注册。";
|
|
64
|
+
readonly 'vapor.tree.shaking.applied': "根据manifest.json的模块选择和摇树扫描结果,本次打包将包含如下内置模块和插件:\n{modules}\n如果需要添加更多模块,请在manifest.json中添加(添加后需重新打包)。涉及三方sdk的在可视化界面选择更多模块,其他模块根据文档在manifest.json源码视图添加。[详情](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html)\n注意:如某模块未包含在自定义基座中,相关API无法在自定义基座中使用;如某模块未包含在正式包中,后续wgt资源更新后相关API无法使用。";
|
|
61
65
|
} | {
|
|
62
66
|
readonly 'app.compiler.version': "Compiler version: {version}";
|
|
63
67
|
readonly 'view.render.compiler.target': "Current view.render compile target: {target}";
|
|
64
68
|
readonly 'view.render.compiler.target.bytecode': "bytecode";
|
|
65
69
|
readonly 'view.render.compiler.target.nativecode': "nativecode";
|
|
70
|
+
readonly 'vapor.default.script.lang': "Default script lang for current uvue/vue files: {lang}";
|
|
66
71
|
readonly 'style.isolation.version': "Style isolation version: {version}";
|
|
67
72
|
readonly 'style.isolation.version.upgrade': "Style isolation version: {version}. Upgrading to 2.0 is recommended.";
|
|
68
73
|
readonly compiling: "Compiling...";
|
|
@@ -76,8 +81,10 @@ export declare const M: {
|
|
|
76
81
|
readonly 'dev.watching.end.pages': "DONE Build complete. PAGES:{pages}";
|
|
77
82
|
readonly 'dev.watching.end.files': "DONE Build complete. FILES:{files}";
|
|
78
83
|
readonly 'dev.watching.restart.vapor': "DONE Restart required. Switching vapor mode requires restarting to take effect.";
|
|
84
|
+
readonly 'dev.watching.restart.script.engine': "DONE Restart required. Script engine changes require restarting to take effect.";
|
|
79
85
|
readonly 'dev.watching.restart.independentSubPackages': "DONE Restart required. Changing independent subpackage roots requires restarting to take effect.";
|
|
80
86
|
readonly 'dev.watching.vapor.render.target': "vapor-render-target in manifest.json was changed to {manifestTarget}, but the running console is still {runtimeTarget}.";
|
|
87
|
+
readonly 'harmony.vapor.script.engine': "Invalid Harmony script engine ({engine}) specified, using default.";
|
|
81
88
|
readonly 'build.failed': "DONE Build failed.";
|
|
82
89
|
readonly 'compiler.build.failed': "Build failed with errors.";
|
|
83
90
|
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";
|
|
@@ -118,4 +125,5 @@ export declare const M: {
|
|
|
118
125
|
readonly 'pages.json.page.notfound': "The page \"{pagePath}\" does not exist.";
|
|
119
126
|
readonly 'pages.json.page.slash': "The Path \"{pagePath}\" cannot start with \"/\"";
|
|
120
127
|
readonly 'pages.json.tabbar.page.notfound': "The tabBar page \"{pagePath}\" is not declared in \"pages.json\".";
|
|
128
|
+
readonly 'vapor.tree.shaking.applied': "Based on the module selection and tree-shaking scan results in manifest.json, the following built-in modules and plugins will be included in this build:\n{modules}\nIf you need to add more modules, please add them in manifest.json (you need to rebuild after adding). For third-party SDKs, select more modules in the visual interface, and add other modules according to the documentation in the source view of manifest.json. [Details](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html)\nNote: If a module is not included in the custom playground, the related APIs cannot be used in the custom playground; if a module is not included in the official package, the related APIs cannot be used after subsequent wgt resource updates.";
|
|
121
129
|
};
|
package/dist/messages/zh_CN.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare const _default: {
|
|
|
3
3
|
readonly 'view.render.compiler.target': "当前视图层编译目标:{target}";
|
|
4
4
|
readonly 'view.render.compiler.target.bytecode': "字节码";
|
|
5
5
|
readonly 'view.render.compiler.target.nativecode': "机器码";
|
|
6
|
+
readonly 'vapor.default.script.lang': "当前 uvue/vue 文件默认 script lang:{lang}";
|
|
6
7
|
readonly 'style.isolation.version': "当前样式隔离策略:{version}。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html";
|
|
7
8
|
readonly 'style.isolation.version.upgrade': "当前样式隔离策略:{version}。推荐升级为 2.0。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html";
|
|
8
9
|
readonly compiling: "正在编译中...";
|
|
@@ -18,6 +19,8 @@ declare const _default: {
|
|
|
18
19
|
readonly 'dev.watching.restart.vapor': "DONE Restart required. 切换蒸汽模式需要重新运行才能生效。";
|
|
19
20
|
readonly 'dev.watching.restart.independentSubPackages': "DONE Restart required. 独立分包 root 列表变化需要重新运行才能生效。";
|
|
20
21
|
readonly 'dev.watching.vapor.render.target': "manifest.json 中更改了视图层编译目标为{manifestTarget},但注意运行控制台还是{runtimeTarget}。";
|
|
22
|
+
readonly 'harmony.vapor.script.engine': "指定的 Harmony 脚本引擎无效({engine}),使用默认值。";
|
|
23
|
+
readonly 'dev.watching.restart.script.engine': "DONE Restart required. 脚本引擎变化需要重新运行才能生效。";
|
|
21
24
|
readonly 'build.failed': "DONE Build failed.";
|
|
22
25
|
readonly 'compiler.build.failed': "编译失败";
|
|
23
26
|
readonly 'stat.warn.appid': "当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303";
|
|
@@ -58,5 +61,6 @@ declare const _default: {
|
|
|
58
61
|
readonly 'pages.json.page.notfound': "页面\"{pagePath}\"不存在,请确保填写的页面路径不包含文件后缀,且必须与真实的文件路径大小写保持一致。";
|
|
59
62
|
readonly 'pages.json.page.slash': "路径 \"{pagePath}\" 不能以 \"/\" 开头";
|
|
60
63
|
readonly 'pages.json.tabbar.page.notfound': "tabBar 中配置的页面 \"{pagePath}\" 未在 pages.json 中注册。";
|
|
64
|
+
readonly 'vapor.tree.shaking.applied': "根据manifest.json的模块选择和摇树扫描结果,本次打包将包含如下内置模块和插件:\n{modules}\n如果需要添加更多模块,请在manifest.json中添加(添加后需重新打包)。涉及三方sdk的在可视化界面选择更多模块,其他模块根据文档在manifest.json源码视图添加。[详情](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html)\n注意:如某模块未包含在自定义基座中,相关API无法在自定义基座中使用;如某模块未包含在正式包中,后续wgt资源更新后相关API无法使用。";
|
|
61
65
|
};
|
|
62
66
|
export default _default;
|
package/dist/messages/zh_CN.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.default = {
|
|
|
5
5
|
'view.render.compiler.target': '当前视图层编译目标:{target}',
|
|
6
6
|
'view.render.compiler.target.bytecode': '字节码',
|
|
7
7
|
'view.render.compiler.target.nativecode': '机器码',
|
|
8
|
+
'vapor.default.script.lang': '当前 uvue/vue 文件默认 script lang:{lang}',
|
|
8
9
|
'style.isolation.version': '当前样式隔离策略:{version}。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html',
|
|
9
10
|
'style.isolation.version.upgrade': '当前样式隔离策略:{version}。推荐升级为 2.0。详见:https://doc.dcloud.net.cn/uni-app-x/css/common/style-isolation.html',
|
|
10
11
|
compiling: '正在编译中...',
|
|
@@ -20,6 +21,8 @@ exports.default = {
|
|
|
20
21
|
'dev.watching.restart.vapor': 'DONE Restart required. 切换蒸汽模式需要重新运行才能生效。',
|
|
21
22
|
'dev.watching.restart.independentSubPackages': 'DONE Restart required. 独立分包 root 列表变化需要重新运行才能生效。',
|
|
22
23
|
'dev.watching.vapor.render.target': 'manifest.json 中更改了视图层编译目标为{manifestTarget},但注意运行控制台还是{runtimeTarget}。',
|
|
24
|
+
'harmony.vapor.script.engine': '指定的 Harmony 脚本引擎无效({engine}),使用默认值。',
|
|
25
|
+
'dev.watching.restart.script.engine': 'DONE Restart required. 脚本引擎变化需要重新运行才能生效。',
|
|
23
26
|
'build.failed': 'DONE Build failed.',
|
|
24
27
|
'compiler.build.failed': '编译失败',
|
|
25
28
|
'stat.warn.appid': '当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303',
|
|
@@ -61,4 +64,8 @@ exports.default = {
|
|
|
61
64
|
'pages.json.page.notfound': '页面"{pagePath}"不存在,请确保填写的页面路径不包含文件后缀,且必须与真实的文件路径大小写保持一致。',
|
|
62
65
|
'pages.json.page.slash': '路径 "{pagePath}" 不能以 "/" 开头',
|
|
63
66
|
'pages.json.tabbar.page.notfound': 'tabBar 中配置的页面 "{pagePath}" 未在 pages.json 中注册。',
|
|
67
|
+
'vapor.tree.shaking.applied': `根据manifest.json的模块选择和摇树扫描结果,本次打包将包含如下内置模块和插件:
|
|
68
|
+
{modules}
|
|
69
|
+
如果需要添加更多模块,请在manifest.json中添加(添加后需重新打包)。涉及三方sdk的在可视化界面选择更多模块,其他模块根据文档在manifest.json源码视图添加。[详情](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html)
|
|
70
|
+
注意:如某模块未包含在自定义基座中,相关API无法在自定义基座中使用;如某模块未包含在正式包中,后续wgt资源更新后相关API无法使用。`,
|
|
64
71
|
};
|