weapp-vite 6.15.5 → 6.15.7
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/README.md +34 -0
- package/dist/auto-routes.d.mts +4 -2
- package/dist/auto-routes.mjs +4 -3
- package/dist/cli.mjs +38 -10
- package/dist/{config-BbL8Gqez.d.mts → config-BMHiO7EZ.d.mts} +18 -13
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-BJXXIcT5.mjs → createContext-6sJTdwPY.mjs} +295 -431
- package/dist/docs/README.md +34 -0
- package/dist/{file-DllJX3aP.mjs → file-BSU5Tzfv.mjs} +2 -2
- package/dist/file-DwCpnySU.mjs +2 -0
- package/dist/getInstance-DgGsdrOF.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/{runtime-Cn2Y_tqB.mjs → runtime-DN3lxU9s.mjs} +7 -1
- package/dist/runtime.mjs +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +15 -15
- package/dist/file-D-LpaSgY.mjs +0 -2
- package/dist/getInstance-BuIdW4Wd.mjs +0 -2
package/README.md
CHANGED
|
@@ -187,6 +187,38 @@ wv ide logs
|
|
|
187
187
|
wv ide logs --open
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
+
## DevTools 配置预热
|
|
191
|
+
|
|
192
|
+
`weapp-vite` 在打开微信开发者工具前,会复用 `weapp-ide-cli` 的底层能力,自动尝试预热本机 DevTools 配置:
|
|
193
|
+
|
|
194
|
+
- 确保安全设置中的服务端口处于开启状态
|
|
195
|
+
- 按命令参数或全局配置决定是否自动信任当前项目
|
|
196
|
+
|
|
197
|
+
如果你只想预热配置、不立即打开 IDE,可以使用:
|
|
198
|
+
|
|
199
|
+
```sh
|
|
200
|
+
weapp-vite ide setup .
|
|
201
|
+
# 等价写法
|
|
202
|
+
wv ide setup .
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
如果你希望以后 `open` / `dev --open` / `build --open` 都默认自动信任项目,直接配置 `weapp-ide-cli` 即可:
|
|
206
|
+
|
|
207
|
+
```sh
|
|
208
|
+
weapp config set autoBootstrapDevtools true
|
|
209
|
+
weapp config set autoTrustProject true
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
这样以后执行:
|
|
213
|
+
|
|
214
|
+
```sh
|
|
215
|
+
weapp-vite open .
|
|
216
|
+
weapp-vite dev --open
|
|
217
|
+
weapp-vite build --open
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
都会沿用同一套默认策略。
|
|
221
|
+
|
|
190
222
|
## CLI 中调用 weapp-ide-cli
|
|
191
223
|
|
|
192
224
|
`weapp-vite` 内置了对 `weapp-ide-cli` 的透传能力,除了 `dev/build/open/init/generate/analyze/npm` 等原生命令外,其它 IDE 相关命令都可以直接调用:
|
|
@@ -197,6 +229,7 @@ weapp-vite upload --project ./dist/build/mp-weixin -v 1.0.0 -d "release"
|
|
|
197
229
|
weapp-vite cache --clean compile
|
|
198
230
|
weapp-vite cache --clean all
|
|
199
231
|
weapp-vite config lang zh
|
|
232
|
+
weapp-vite config set autoTrustProject true
|
|
200
233
|
weapp-vite navigate pages/index/index --project ./dist/build/mp-weixin
|
|
201
234
|
# 等价写法
|
|
202
235
|
wv preview --project ./dist/build/mp-weixin
|
|
@@ -208,6 +241,7 @@ wv cache --clean all
|
|
|
208
241
|
```sh
|
|
209
242
|
weapp-vite ide preview --project ./dist/build/mp-weixin
|
|
210
243
|
weapp-vite ide config show
|
|
244
|
+
weapp-vite ide setup .
|
|
211
245
|
weapp-vite ide logs --open
|
|
212
246
|
# 等价写法
|
|
213
247
|
wv ide preview --project ./dist/build/mp-weixin
|
package/dist/auto-routes.d.mts
CHANGED
|
@@ -5,13 +5,15 @@ declare const routes: AutoRoutes;
|
|
|
5
5
|
declare const pages: string[];
|
|
6
6
|
declare const entries: string[];
|
|
7
7
|
declare const subPackages: AutoRoutesSubPackage[];
|
|
8
|
-
interface
|
|
8
|
+
interface AutoRoutesMiniProgramRouter {
|
|
9
9
|
switchTab: (option: Record<string, any>) => unknown;
|
|
10
10
|
reLaunch: (option: Record<string, any>) => unknown;
|
|
11
11
|
redirectTo: (option: Record<string, any>) => unknown;
|
|
12
12
|
navigateTo: (option: Record<string, any>) => unknown;
|
|
13
13
|
navigateBack: (option?: Record<string, any>) => unknown;
|
|
14
14
|
}
|
|
15
|
+
type AutoRoutesWxRouter = AutoRoutesMiniProgramRouter;
|
|
16
|
+
declare const miniProgramRouter: AutoRoutesMiniProgramRouter;
|
|
15
17
|
declare const wxRouter: AutoRoutesWxRouter;
|
|
16
18
|
//#endregion
|
|
17
|
-
export { type AutoRoutes, type AutoRoutesSubPackage, AutoRoutesWxRouter, routes as default, routes, entries, pages, subPackages, wxRouter };
|
|
19
|
+
export { type AutoRoutes, AutoRoutesMiniProgramRouter, type AutoRoutesSubPackage, AutoRoutesWxRouter, routes as default, routes, entries, miniProgramRouter, pages, subPackages, wxRouter };
|
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getCompilerContext, u as getRouteRuntimeGlobalKeys } from "./createContext-
|
|
1
|
+
import { i as getCompilerContext, u as getRouteRuntimeGlobalKeys } from "./createContext-6sJTdwPY.mjs";
|
|
2
2
|
//#region src/auto-routes.ts
|
|
3
3
|
const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
|
|
4
4
|
function createGetter(resolver) {
|
|
@@ -40,7 +40,7 @@ function callRouteMethod(methodName, option) {
|
|
|
40
40
|
if (option === void 0) return routeMethod.call(miniProgramGlobal);
|
|
41
41
|
return routeMethod.call(miniProgramGlobal, option);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const miniProgramRouter = {
|
|
44
44
|
switchTab(option) {
|
|
45
45
|
return callRouteMethod("switchTab", option);
|
|
46
46
|
},
|
|
@@ -57,5 +57,6 @@ const wxRouter = {
|
|
|
57
57
|
return callRouteMethod("navigateBack", option);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
+
const wxRouter = miniProgramRouter;
|
|
60
61
|
//#endregion
|
|
61
|
-
export { routes as default, routes, entries, pages, subPackages, wxRouter };
|
|
62
|
+
export { routes as default, routes, entries, miniProgramRouter, pages, subPackages, wxRouter };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { S as isPathInside, _ as DEFAULT_MP_PLATFORM, b as resolveMiniPlatform, c as createSharedBuildConfig, d as resolveWeappConfigFile, f as checkRuntime, g as createCjsConfigLoadError, h as parseCommentJson, l as SHARED_CHUNK_VIRTUAL_PREFIX, m as loadViteConfigFile, n as syncProjectSupportFiles, p as getProjectConfigFileName, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, v as getDefaultIdeProjectRoot, x as shouldPassPlatformArgToIdeOpen, y as normalizeMiniPlatform } from "./createContext-
|
|
1
|
+
import { S as isPathInside, _ as DEFAULT_MP_PLATFORM, b as resolveMiniPlatform, c as createSharedBuildConfig, d as resolveWeappConfigFile, f as checkRuntime, g as createCjsConfigLoadError, h as parseCommentJson, l as SHARED_CHUNK_VIRTUAL_PREFIX, m as loadViteConfigFile, n as syncProjectSupportFiles, p as getProjectConfigFileName, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, v as getDefaultIdeProjectRoot, x as shouldPassPlatformArgToIdeOpen, y as normalizeMiniPlatform } from "./createContext-6sJTdwPY.mjs";
|
|
2
2
|
import { r as logger_default, t as colors } from "./logger-CgxdNjvb.mjs";
|
|
3
|
-
import { h as VERSION } from "./file-
|
|
3
|
+
import { h as VERSION } from "./file-BSU5Tzfv.mjs";
|
|
4
4
|
import { a as resolveWeappMcpConfig, o as startWeappViteMcpServer } from "./mcp-DRlj32v4.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path, { posix } from "pathe";
|
|
7
|
-
import { defu
|
|
7
|
+
import { defu } from "@weapp-core/shared";
|
|
8
|
+
import { fs } from "@weapp-core/shared/fs";
|
|
8
9
|
import process from "node:process";
|
|
9
10
|
import fs$1 from "node:fs/promises";
|
|
10
11
|
import { build, createServer } from "vite";
|
|
@@ -15,7 +16,7 @@ import fs$2 from "node:fs";
|
|
|
15
16
|
import { cac } from "cac";
|
|
16
17
|
import { resolveCommand } from "package-manager-detector/commands";
|
|
17
18
|
import { promisify } from "node:util";
|
|
18
|
-
import { closeSharedMiniProgram, connectOpenedAutomator, formatRetryHotkeyPrompt, formatWechatIdeLoginRequiredError, getConfig, isWeappIdeTopLevelCommand, isWechatIdeLoginRequiredError, launchAutomator, parse, startForwardConsole, takeScreenshot, waitForRetryKeypress } from "weapp-ide-cli";
|
|
19
|
+
import { bootstrapWechatDevtoolsSettings, closeSharedMiniProgram, connectOpenedAutomator, formatAutomatorLoginError, formatRetryHotkeyPrompt, formatWechatIdeLoginRequiredError, getConfig, isAutomatorLoginError, isWeappIdeTopLevelCommand, isWechatIdeLoginRequiredError, launchAutomator, parse, startForwardConsole, takeScreenshot, waitForRetryKeypress } from "weapp-ide-cli";
|
|
19
20
|
import { generateJs, generateJson, generateWxml, generateWxss } from "@weapp-core/schematics";
|
|
20
21
|
import { determineAgent } from "@vercel/detect-agent";
|
|
21
22
|
import { initConfig } from "@weapp-core/init";
|
|
@@ -953,6 +954,10 @@ function logBuildPackageSizeReport(options) {
|
|
|
953
954
|
//#endregion
|
|
954
955
|
//#region src/cli/openIde.ts
|
|
955
956
|
const execFileAsync = promisify(execFile);
|
|
957
|
+
function shouldLogAutomatorFallbackError() {
|
|
958
|
+
const flag = process.env.WEAPP_VITE_DEBUG_AUTOMATOR_OPEN;
|
|
959
|
+
return flag === "1" || flag === "true";
|
|
960
|
+
}
|
|
956
961
|
async function openWechatIdeByAutomator(projectPath) {
|
|
957
962
|
(await launchAutomator({
|
|
958
963
|
projectPath,
|
|
@@ -1093,7 +1098,18 @@ async function reopenOpenedWechatIde(projectPath) {
|
|
|
1093
1098
|
return true;
|
|
1094
1099
|
}
|
|
1095
1100
|
async function openIde(platform, projectPath, options = {}) {
|
|
1096
|
-
|
|
1101
|
+
let bootstrapResult;
|
|
1102
|
+
if (platform === "weapp" && projectPath) try {
|
|
1103
|
+
bootstrapResult = await bootstrapWechatDevtoolsSettings({
|
|
1104
|
+
projectPath,
|
|
1105
|
+
trustProject: options.trustProject
|
|
1106
|
+
});
|
|
1107
|
+
} catch (error) {
|
|
1108
|
+
logger_default.warn("检测微信开发者工具服务端口或写入项目信任状态失败,继续执行 open 流程。");
|
|
1109
|
+
logger_default.error(error);
|
|
1110
|
+
}
|
|
1111
|
+
if (platform === "weapp" && projectPath && bootstrapResult?.servicePortEnabled === false) logger_default.warn("检测到微信开发者工具服务端口当前处于关闭状态,已保留用户设置并回退到普通 open 流程。");
|
|
1112
|
+
if (platform === "weapp" && projectPath && options.trustProject !== false && bootstrapResult?.servicePortEnabled !== false) try {
|
|
1097
1113
|
if (options.reuseOpenedProject === false) {
|
|
1098
1114
|
if (await reopenOpenedWechatIde(projectPath)) return;
|
|
1099
1115
|
}
|
|
@@ -1102,11 +1118,16 @@ async function openIde(platform, projectPath, options = {}) {
|
|
|
1102
1118
|
await openWechatIdeByAutomator(projectPath);
|
|
1103
1119
|
return;
|
|
1104
1120
|
} catch (error) {
|
|
1121
|
+
if (isAutomatorLoginError(error)) {
|
|
1122
|
+
logger_default.error("检测到微信开发者工具登录状态失效,请先登录后重试。");
|
|
1123
|
+
logger_default.warn(formatAutomatorLoginError(error));
|
|
1124
|
+
}
|
|
1105
1125
|
logger_default.warn("通过 automator 启动微信开发者工具并自动信任项目失败,回退到普通 open 流程。");
|
|
1106
|
-
logger_default.error(error);
|
|
1126
|
+
if (shouldLogAutomatorFallbackError()) logger_default.error(error);
|
|
1107
1127
|
}
|
|
1108
1128
|
const argv = ["open", "-p"];
|
|
1109
1129
|
if (projectPath) argv.push(projectPath);
|
|
1130
|
+
if (platform === "weapp" && options.trustProject !== false) argv.push("--trust-project");
|
|
1110
1131
|
if (platform && shouldPassPlatformArgToIdeOpen(platform)) argv.push("--platform", platform);
|
|
1111
1132
|
await runWechatIdeOpenWithRetry(argv);
|
|
1112
1133
|
}
|
|
@@ -1386,8 +1407,7 @@ async function loadConfig(configFile) {
|
|
|
1386
1407
|
}
|
|
1387
1408
|
}
|
|
1388
1409
|
if (!loaded && !weappLoaded) return;
|
|
1389
|
-
const config = loaded?.config ??
|
|
1390
|
-
if (weappLoaded?.config?.weapp) config.weapp = defu(weappLoaded.config.weapp, config.weapp ?? {});
|
|
1410
|
+
const config = weappLoaded?.config ? defu(weappLoaded.config, loaded?.config ?? {}) : loaded?.config ?? {};
|
|
1391
1411
|
const dependencySet = /* @__PURE__ */ new Set();
|
|
1392
1412
|
for (const dependency of loaded?.dependencies ?? []) dependencySet.add(dependency);
|
|
1393
1413
|
for (const dependency of weappLoaded?.dependencies ?? []) dependencySet.add(dependency);
|
|
@@ -1592,7 +1612,7 @@ async function waitForTermination(cleanup) {
|
|
|
1592
1612
|
* @description 执行 ide 子命令。
|
|
1593
1613
|
*/
|
|
1594
1614
|
async function runIdeCommand(action, root, options) {
|
|
1595
|
-
if (action !== "logs") throw new Error(`未知 ide 子命令: ${action ?? "(empty)"}`);
|
|
1615
|
+
if (action !== "logs" && action !== "setup") throw new Error(`未知 ide 子命令: ${action ?? "(empty)"}`);
|
|
1596
1616
|
filterDuplicateOptions(options);
|
|
1597
1617
|
const configFile = resolveConfigFile(options);
|
|
1598
1618
|
const targets = resolveRuntimeTargets(options);
|
|
@@ -1605,6 +1625,14 @@ async function runIdeCommand(action, root, options) {
|
|
|
1605
1625
|
});
|
|
1606
1626
|
if (resolved.platform !== "weapp") throw new Error("`weapp-vite ide logs` 当前仅支持微信小程序平台。");
|
|
1607
1627
|
if (!resolved.projectPath) throw new Error("无法解析微信开发者工具项目目录,请显式传入 root 或检查 project.config.json。");
|
|
1628
|
+
if (action === "setup") {
|
|
1629
|
+
const result = await bootstrapWechatDevtoolsSettings({
|
|
1630
|
+
projectPath: resolved.projectPath,
|
|
1631
|
+
trustProject: options.trustProject
|
|
1632
|
+
});
|
|
1633
|
+
logger_default.info(`已完成微信开发者工具配置预热:扫描实例 ${result.touchedInstanceCount} 个,检测服务端口配置 ${result.detectedSecurityCount} 处,写入项目信任 ${result.trustedProjectCount} 处。`);
|
|
1634
|
+
return;
|
|
1635
|
+
}
|
|
1608
1636
|
if (options.open) await openIde(resolved.platform, resolved.projectPath, { trustProject: options.trustProject });
|
|
1609
1637
|
const forwardConsoleOptions = await resolveForwardConsoleOptions({
|
|
1610
1638
|
...resolved.weappViteConfig,
|
|
@@ -2096,7 +2124,7 @@ function registerPrepareCommand(cli) {
|
|
|
2096
2124
|
}
|
|
2097
2125
|
//#endregion
|
|
2098
2126
|
//#region package.json
|
|
2099
|
-
var version = "6.15.
|
|
2127
|
+
var version = "6.15.7";
|
|
2100
2128
|
//#endregion
|
|
2101
2129
|
//#region src/cli/devHotkeys/format.ts
|
|
2102
2130
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c as Resolver, s as ResolvedValue } from "./index-6QUk3Zbc.mjs";
|
|
2
2
|
import { t as AutoRoutes } from "./routes-DiEBrMtj.mjs";
|
|
3
|
+
import { MpPlatform, OutputExtensions } from "@weapp-core/shared";
|
|
3
4
|
import { WeappAstConfig } from "@weapp-vite/ast";
|
|
4
5
|
import { LoggerConfig } from "@weapp-core/logger";
|
|
5
6
|
import { ConfigEnv, ConfigEnv as ConfigEnv$1, InlineConfig, InlineConfig as InlineConfig$1, Plugin as Plugin$1, PluginOption, ResolvedConfig, UserConfig, ViteDevServer, ViteDevServer as ViteDevServer$1, build } from "vite";
|
|
@@ -39,6 +40,7 @@ declare module 'vite' {
|
|
|
39
40
|
//#endregion
|
|
40
41
|
//#region src/types/config/foundation.d.ts
|
|
41
42
|
type NpmBuildOptions = InlineConfig;
|
|
43
|
+
type MpPlatform$1 = MpPlatform;
|
|
42
44
|
/**
|
|
43
45
|
* @description 支付宝平台本地 npm 输出模式
|
|
44
46
|
*/
|
|
@@ -79,7 +81,6 @@ interface AliasOptions {
|
|
|
79
81
|
[find: string]: string;
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
|
-
type MpPlatform = 'weapp' | 'alipay' | 'tt' | 'swan' | 'jd' | 'xhs';
|
|
83
84
|
interface SubPackage {
|
|
84
85
|
/**
|
|
85
86
|
* @description 分包内页面列表,路径相对于分包 root
|
|
@@ -347,7 +348,7 @@ type EnhanceWxmlOptions = ScanWxmlOptions & HandleWxmlOptions;
|
|
|
347
348
|
*/
|
|
348
349
|
interface ScanWxmlOptions {
|
|
349
350
|
excludeComponent?: (tagName: string) => boolean;
|
|
350
|
-
platform?: MpPlatform;
|
|
351
|
+
platform?: MpPlatform$1;
|
|
351
352
|
}
|
|
352
353
|
/**
|
|
353
354
|
* @description WXML 处理阶段配置
|
|
@@ -371,6 +372,10 @@ interface EnhanceOptions {
|
|
|
371
372
|
interface MultiPlatformConfig {
|
|
372
373
|
enabled?: boolean;
|
|
373
374
|
projectConfigRoot?: string;
|
|
375
|
+
/**
|
|
376
|
+
* @description 多平台模式下允许参与构建/开发的目标平台集合
|
|
377
|
+
*/
|
|
378
|
+
targets?: 'all' | readonly MpPlatform$1[];
|
|
374
379
|
}
|
|
375
380
|
/**
|
|
376
381
|
* @description MCP 服务配置
|
|
@@ -620,7 +625,7 @@ interface WeappViteConfig {
|
|
|
620
625
|
typescript?: WeappManagedTypeScriptConfig;
|
|
621
626
|
lib?: WeappLibConfig;
|
|
622
627
|
isAdditionalWxml?: (wxmlFilePath: string) => boolean;
|
|
623
|
-
platform?: MpPlatform;
|
|
628
|
+
platform?: MpPlatform$1;
|
|
624
629
|
multiPlatform?: boolean | MultiPlatformConfig;
|
|
625
630
|
jsFormat?: JsFormat;
|
|
626
631
|
/**
|
|
@@ -1048,13 +1053,11 @@ type PackageJsonExports = string | PackageJsonExportsObject | Array<string | Pac
|
|
|
1048
1053
|
* @returns the same `package.json` object.
|
|
1049
1054
|
*/
|
|
1050
1055
|
//#endregion
|
|
1051
|
-
//#region src/
|
|
1052
|
-
interface
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
wxss: string;
|
|
1057
|
-
wxs?: string;
|
|
1056
|
+
//#region src/multiPlatform.d.ts
|
|
1057
|
+
interface ResolvedMultiPlatformConfig {
|
|
1058
|
+
enabled: boolean;
|
|
1059
|
+
projectConfigRoot: string;
|
|
1060
|
+
targets: readonly MpPlatform$1[];
|
|
1058
1061
|
}
|
|
1059
1062
|
//#endregion
|
|
1060
1063
|
//#region src/runtime/config/types.d.ts
|
|
@@ -1084,10 +1087,11 @@ interface LoadConfigResult {
|
|
|
1084
1087
|
projectConfigPath?: string;
|
|
1085
1088
|
projectPrivateConfigPath?: string;
|
|
1086
1089
|
mpDistRoot: string;
|
|
1090
|
+
multiPlatform: ResolvedMultiPlatformConfig;
|
|
1087
1091
|
weappLib?: ResolvedWeappLibConfig;
|
|
1088
1092
|
weappLibOutputMap?: Map<string, string>;
|
|
1089
1093
|
packageJsonPath: string;
|
|
1090
|
-
platform: MpPlatform;
|
|
1094
|
+
platform: MpPlatform$1;
|
|
1091
1095
|
srcRoot: string;
|
|
1092
1096
|
pluginOnly?: boolean;
|
|
1093
1097
|
configFilePath?: string;
|
|
@@ -1136,6 +1140,7 @@ interface ConfigService {
|
|
|
1136
1140
|
readonly emitDefaultAutoImportOutputs: boolean;
|
|
1137
1141
|
readonly mpDistRoot: string;
|
|
1138
1142
|
readonly outDir: string;
|
|
1143
|
+
readonly multiPlatform: ResolvedMultiPlatformConfig;
|
|
1139
1144
|
readonly inlineConfig: InlineConfig;
|
|
1140
1145
|
readonly weappViteConfig: NonNullable<InlineConfig['weapp']>;
|
|
1141
1146
|
readonly packageJson: PackageJson;
|
|
@@ -1150,7 +1155,7 @@ interface ConfigService {
|
|
|
1150
1155
|
readonly absoluteSrcRoot: string;
|
|
1151
1156
|
readonly mode: string;
|
|
1152
1157
|
readonly aliasEntries: ResolvedAlias[];
|
|
1153
|
-
readonly platform: MpPlatform;
|
|
1158
|
+
readonly platform: MpPlatform$1;
|
|
1154
1159
|
readonly configFilePath?: string;
|
|
1155
1160
|
readonly weappWebConfig?: ResolvedWeappWebConfig;
|
|
1156
1161
|
readonly weappLibConfig?: ResolvedWeappLibConfig;
|
|
@@ -1572,4 +1577,4 @@ declare function defineConfig(config: UserConfigFnObjectPlain): UserConfigFnObje
|
|
|
1572
1577
|
declare function defineConfig(config: UserConfigFn): UserConfigFn;
|
|
1573
1578
|
declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;
|
|
1574
1579
|
//#endregion
|
|
1575
|
-
export { WeappDebugConfig as $, JsonConfig as $t, Ref as A, WeappManagedServerTsconfigConfig as An, WeappWevuConfig as At, BindingErrorLike as B, resolveWeappViteHostMeta as Bn, GenerateExtensionsOptions as Bt, LoadConfigOptions as C, WeappLibDtsOptions as Cn, WeappRequestRuntimeConfig as Ct, MethodDefinitions$1 as D, WeappLibVueTscOptions as Dn, WeappVueConfig as Dt, InlineConfig$1 as E, WeappLibInternalDtsOptions as En, WeappSubPackageConfig as Et, RolldownPlugin as F, WeappViteHostMeta as Fn, BuildNpmPackageMeta as Ft, EntryJsonFragment as G, GenerateTemplateContext as Gt, BaseEntry as H, GenerateFilenamesOptions as Ht, RolldownPluginOption as I, WeappViteRuntime as In, ChunksConfig as It, ScanComponentItem as J, GenerateTemplateFileSource as Jt, PageEntry as K, GenerateTemplateEntry as Kt, RolldownWatchOptions as L, applyWeappViteHostMeta as Ln, CopyGlobs as Lt, RolldownBuild as M, WeappManagedTypeScriptConfig as Mn, Alias as Mt, RolldownOptions as N, WeappWebConfig as Nn, AliasOptions as Nt, Plugin$1 as O, WeappManagedAppTsconfigConfig as On, WeappVueTemplateConfig as Ot, RolldownOutput$1 as P, WEAPP_VITE_HOST_NAME as Pn, AlipayNpmMode as Pt, UserConfig$2 as Q, JsFormat as Qt, RolldownWatcher$1 as R, createWeappViteHostMeta as Rn, CopyOptions as Rt, CompilerContext as S, WeappLibConfig as Sn, WeappNpmConfig as St, ConfigEnv$1 as T, WeappLibFileName as Tn, WeappRouteRules as Tt, ComponentEntry as U, GenerateOptions as Ut, AppEntry as V, GenerateFileType as Vt, Entry as W, GenerateTemplate as Wt, ProjectConfig as X, GenerateTemplateScope as Xt, WxmlDep as Y, GenerateTemplateInlineSource as Yt, SubPackageMetaValue as Z, GenerateTemplatesConfig as Zt, definePageJson as _, SubPackageStyleConfigEntry as _n, WeappInjectRequestGlobalsTarget as _t, UserConfigFnNoEnvPlain as a, NpmBuildOptions as an, EnhanceOptions as at, ChangeEvent as b, SubPackageStyleScope as bn, WeappInjectWebRuntimeGlobalsTarget as bt, UserConfigFnPromise as c, NpmPluginPackageConfig as cn, MultiPlatformConfig as ct, Component$1 as d, ResolvedAlias as dn, WeappAppPreludeMode as dt, JsonMergeContext as en, WeappForwardConsoleConfig as et, Page$1 as f, SharedChunkDynamicImports as fn, WeappAutoRoutesConfig as ft, defineComponentJson as g, SubPackage as gn, WeappInjectRequestGlobalsConfig as gt, defineAppJson as h, SharedChunkStrategy as hn, WeappHmrConfig as ht, UserConfigFnNoEnv as i, MpPlatform as in, AutoImportComponentsOption as it, ResolvedConfig as j, WeappManagedSharedTsconfigConfig as jn, WeappWorkerConfig as jt, PluginOption as k, WeappManagedNodeTsconfigConfig as kn, WeappWebRuntimeConfig as kt, defineConfig as l, NpmStrategy as ln, ScanWxmlOptions as lt, Theme$1 as m, SharedChunkOverride as mn, WeappAutoRoutesIncludePattern as mt, UserConfigExport as n, JsonMergeStage as nn, WeappViteConfig as nt, UserConfigFnObject as o, NpmDependencyPattern as on, EnhanceWxmlOptions as ot, Sitemap$1 as p, SharedChunkMode as pn, WeappAutoRoutesInclude as pt, ComponentsMap as q, GenerateTemplateFactory as qt, UserConfigFn as r, JsonMergeStrategy as rn, AutoImportComponents as rt, UserConfigFnObjectPlain as s, NpmMainPackageConfig as sn, HandleWxmlOptions as st, UserConfig$1 as t, JsonMergeFunction as tn, WeappForwardConsoleLogLevel as tt, App$1 as u, NpmSubPackageConfig as un, WeappAppPreludeConfig as ut, defineSitemapJson as v, SubPackageStyleConfigObject as vn, WeappInjectWeapiConfig as vt, ComputedDefinitions$1 as w, WeappLibEntryContext as wn, WeappRouteRule as wt, WeappVitePluginApi as x, WeappLibComponentJson as xn, WeappMcpConfig as xt, defineThemeJson as y, SubPackageStyleEntry as yn, WeappInjectWebRuntimeGlobalsConfig as yt, ViteDevServer$1 as z, isWeappViteHost as zn, GenerateDirsOptions as zt };
|
|
1580
|
+
export { WeappDebugConfig as $, JsonConfig as $t, Ref as A, WeappManagedServerTsconfigConfig as An, WeappWevuConfig as At, BindingErrorLike as B, resolveWeappViteHostMeta as Bn, GenerateExtensionsOptions as Bt, LoadConfigOptions as C, WeappLibDtsOptions as Cn, WeappRequestRuntimeConfig as Ct, MethodDefinitions$1 as D, WeappLibVueTscOptions as Dn, WeappVueConfig as Dt, InlineConfig$1 as E, WeappLibInternalDtsOptions as En, WeappSubPackageConfig as Et, RolldownPlugin as F, WeappViteHostMeta as Fn, BuildNpmPackageMeta as Ft, EntryJsonFragment as G, GenerateTemplateContext as Gt, BaseEntry as H, GenerateFilenamesOptions as Ht, RolldownPluginOption as I, WeappViteRuntime as In, ChunksConfig as It, ScanComponentItem as J, GenerateTemplateFileSource as Jt, PageEntry as K, GenerateTemplateEntry as Kt, RolldownWatchOptions as L, applyWeappViteHostMeta as Ln, CopyGlobs as Lt, RolldownBuild as M, WeappManagedTypeScriptConfig as Mn, Alias as Mt, RolldownOptions as N, WeappWebConfig as Nn, AliasOptions as Nt, Plugin$1 as O, WeappManagedAppTsconfigConfig as On, WeappVueTemplateConfig as Ot, RolldownOutput$1 as P, WEAPP_VITE_HOST_NAME as Pn, AlipayNpmMode as Pt, UserConfig$2 as Q, JsFormat as Qt, RolldownWatcher$1 as R, createWeappViteHostMeta as Rn, CopyOptions as Rt, CompilerContext as S, WeappLibConfig as Sn, WeappNpmConfig as St, ConfigEnv$1 as T, WeappLibFileName as Tn, WeappRouteRules as Tt, ComponentEntry as U, GenerateOptions as Ut, AppEntry as V, GenerateFileType as Vt, Entry as W, GenerateTemplate as Wt, ProjectConfig as X, GenerateTemplateScope as Xt, WxmlDep as Y, GenerateTemplateInlineSource as Yt, SubPackageMetaValue as Z, GenerateTemplatesConfig as Zt, definePageJson as _, SubPackageStyleConfigEntry as _n, WeappInjectRequestGlobalsTarget as _t, UserConfigFnNoEnvPlain as a, NpmBuildOptions as an, EnhanceOptions as at, ChangeEvent as b, SubPackageStyleScope as bn, WeappInjectWebRuntimeGlobalsTarget as bt, UserConfigFnPromise as c, NpmPluginPackageConfig as cn, MultiPlatformConfig as ct, Component$1 as d, ResolvedAlias as dn, WeappAppPreludeMode as dt, JsonMergeContext as en, WeappForwardConsoleConfig as et, Page$1 as f, SharedChunkDynamicImports as fn, WeappAutoRoutesConfig as ft, defineComponentJson as g, SubPackage as gn, WeappInjectRequestGlobalsConfig as gt, defineAppJson as h, SharedChunkStrategy as hn, WeappHmrConfig as ht, UserConfigFnNoEnv as i, MpPlatform$1 as in, AutoImportComponentsOption as it, ResolvedConfig as j, WeappManagedSharedTsconfigConfig as jn, WeappWorkerConfig as jt, PluginOption as k, WeappManagedNodeTsconfigConfig as kn, WeappWebRuntimeConfig as kt, defineConfig as l, NpmStrategy as ln, ScanWxmlOptions as lt, Theme$1 as m, SharedChunkOverride as mn, WeappAutoRoutesIncludePattern as mt, UserConfigExport as n, JsonMergeStage as nn, WeappViteConfig as nt, UserConfigFnObject as o, NpmDependencyPattern as on, EnhanceWxmlOptions as ot, Sitemap$1 as p, SharedChunkMode as pn, WeappAutoRoutesInclude as pt, ComponentsMap as q, GenerateTemplateFactory as qt, UserConfigFn as r, JsonMergeStrategy as rn, AutoImportComponents as rt, UserConfigFnObjectPlain as s, NpmMainPackageConfig as sn, HandleWxmlOptions as st, UserConfig$1 as t, JsonMergeFunction as tn, WeappForwardConsoleLogLevel as tt, App$1 as u, NpmSubPackageConfig as un, WeappAppPreludeConfig as ut, defineSitemapJson as v, SubPackageStyleConfigObject as vn, WeappInjectWeapiConfig as vt, ComputedDefinitions$1 as w, WeappLibEntryContext as wn, WeappRouteRule as wt, WeappVitePluginApi as x, WeappLibComponentJson as xn, WeappMcpConfig as xt, defineThemeJson as y, SubPackageStyleEntry as yn, WeappInjectWebRuntimeGlobalsConfig as yt, ViteDevServer$1 as z, isWeappViteHost as zn, GenerateDirsOptions as zt };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as resolveWeappViteHostMeta, Fn as WeappViteHostMeta, In as WeappViteRuntime, Ln as applyWeappViteHostMeta, Pn as WEAPP_VITE_HOST_NAME, Rn as createWeappViteHostMeta, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, nt as WeappViteConfig, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, y as defineThemeJson, zn as isWeappViteHost } from "./config-
|
|
1
|
+
import { Bn as resolveWeappViteHostMeta, Fn as WeappViteHostMeta, In as WeappViteRuntime, Ln as applyWeappViteHostMeta, Pn as WEAPP_VITE_HOST_NAME, Rn as createWeappViteHostMeta, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, nt as WeappViteConfig, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, y as defineThemeJson, zn as isWeappViteHost } from "./config-BMHiO7EZ.mjs";
|
|
2
2
|
export { App, Component, Page, Sitemap, Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, WeappViteConfig, WeappViteHostMeta, WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|