weapp-vite 6.15.6 → 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/dist/auto-routes.d.mts +4 -2
- package/dist/auto-routes.mjs +4 -3
- package/dist/cli.mjs +17 -9
- package/dist/{config-BbL8Gqez.d.mts → config-BMHiO7EZ.d.mts} +18 -13
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-DPe-Wp3_.mjs → createContext-6sJTdwPY.mjs} +291 -428
- package/dist/{file-CCWF5mwT.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-DY9paehF.mjs +0 -2
- package/dist/getInstance-DPNGGEFm.mjs +0 -2
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";
|
|
@@ -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,16 +1098,18 @@ async function reopenOpenedWechatIde(projectPath) {
|
|
|
1093
1098
|
return true;
|
|
1094
1099
|
}
|
|
1095
1100
|
async function openIde(platform, projectPath, options = {}) {
|
|
1101
|
+
let bootstrapResult;
|
|
1096
1102
|
if (platform === "weapp" && projectPath) try {
|
|
1097
|
-
await bootstrapWechatDevtoolsSettings({
|
|
1103
|
+
bootstrapResult = await bootstrapWechatDevtoolsSettings({
|
|
1098
1104
|
projectPath,
|
|
1099
1105
|
trustProject: options.trustProject
|
|
1100
1106
|
});
|
|
1101
1107
|
} catch (error) {
|
|
1102
|
-
logger_default.warn("
|
|
1108
|
+
logger_default.warn("检测微信开发者工具服务端口或写入项目信任状态失败,继续执行 open 流程。");
|
|
1103
1109
|
logger_default.error(error);
|
|
1104
1110
|
}
|
|
1105
|
-
if (platform === "weapp" && projectPath &&
|
|
1111
|
+
if (platform === "weapp" && projectPath && bootstrapResult?.servicePortEnabled === false) logger_default.warn("检测到微信开发者工具服务端口当前处于关闭状态,已保留用户设置并回退到普通 open 流程。");
|
|
1112
|
+
if (platform === "weapp" && projectPath && options.trustProject !== false && bootstrapResult?.servicePortEnabled !== false) try {
|
|
1106
1113
|
if (options.reuseOpenedProject === false) {
|
|
1107
1114
|
if (await reopenOpenedWechatIde(projectPath)) return;
|
|
1108
1115
|
}
|
|
@@ -1116,10 +1123,11 @@ async function openIde(platform, projectPath, options = {}) {
|
|
|
1116
1123
|
logger_default.warn(formatAutomatorLoginError(error));
|
|
1117
1124
|
}
|
|
1118
1125
|
logger_default.warn("通过 automator 启动微信开发者工具并自动信任项目失败,回退到普通 open 流程。");
|
|
1119
|
-
logger_default.error(error);
|
|
1126
|
+
if (shouldLogAutomatorFallbackError()) logger_default.error(error);
|
|
1120
1127
|
}
|
|
1121
1128
|
const argv = ["open", "-p"];
|
|
1122
1129
|
if (projectPath) argv.push(projectPath);
|
|
1130
|
+
if (platform === "weapp" && options.trustProject !== false) argv.push("--trust-project");
|
|
1123
1131
|
if (platform && shouldPassPlatformArgToIdeOpen(platform)) argv.push("--platform", platform);
|
|
1124
1132
|
await runWechatIdeOpenWithRetry(argv);
|
|
1125
1133
|
}
|
|
@@ -1622,7 +1630,7 @@ async function runIdeCommand(action, root, options) {
|
|
|
1622
1630
|
projectPath: resolved.projectPath,
|
|
1623
1631
|
trustProject: options.trustProject
|
|
1624
1632
|
});
|
|
1625
|
-
logger_default.info(`已完成微信开发者工具配置预热:扫描实例 ${result.touchedInstanceCount}
|
|
1633
|
+
logger_default.info(`已完成微信开发者工具配置预热:扫描实例 ${result.touchedInstanceCount} 个,检测服务端口配置 ${result.detectedSecurityCount} 处,写入项目信任 ${result.trustedProjectCount} 处。`);
|
|
1626
1634
|
return;
|
|
1627
1635
|
}
|
|
1628
1636
|
if (options.open) await openIde(resolved.platform, resolved.projectPath, { trustProject: options.trustProject });
|
|
@@ -2116,7 +2124,7 @@ function registerPrepareCommand(cli) {
|
|
|
2116
2124
|
}
|
|
2117
2125
|
//#endregion
|
|
2118
2126
|
//#region package.json
|
|
2119
|
-
var version = "6.15.
|
|
2127
|
+
var version = "6.15.7";
|
|
2120
2128
|
//#endregion
|
|
2121
2129
|
//#region src/cli/devHotkeys/format.ts
|
|
2122
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 };
|