weapp-vite 7.3.0 → 7.4.0
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 +104 -6
- package/dist/adapters-BwnMMIZR.mjs +2 -0
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +594 -631
- package/dist/{config-1J4rToMR.d.mts → config-Dbvj5yK7.d.mts} +332 -9
- package/dist/config.d.mts +2 -2
- package/dist/constants-WOsG3Eqd.mjs +85 -0
- package/dist/{createContext-cqr9Y4EV.mjs → createContext-UOEgeYnA.mjs} +3637 -1051
- package/dist/dashboard/vite.d.mts +9 -0
- package/dist/dashboard/vite.mjs +44 -0
- package/dist/dashboard-BzaVesmQ.mjs +558 -0
- package/dist/dashboard.d.mts +2 -0
- package/dist/dashboard.mjs +2 -0
- package/dist/docs/README.md +104 -6
- package/dist/docs/getting-started.md +50 -1
- package/dist/docs/index.md +3 -1
- package/dist/docs/upload.md +189 -0
- package/dist/docs/weapp-config.md +320 -2
- package/dist/file-D19nbDoN.mjs +2 -0
- package/dist/{file-CKB0Tn8Z.mjs → file-giE9UMZa.mjs} +3 -86
- package/dist/getInstance-CYF1vl5l.mjs +2 -0
- package/dist/index-DbqVupg0.d.mts +246 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/platform-DTWs5QRi.mjs +175 -0
- package/dist/test.mjs +1 -1
- package/dist/types.d.mts +2 -2
- package/dist/upload-D0RcEWrq.mjs +403 -0
- package/dist/upload-worker.d.mts +1 -0
- package/dist/upload-worker.mjs +28 -0
- package/package.json +46 -24
- package/dist/file-CvgkbGIx.mjs +0 -2
- package/dist/getInstance-CZ1s63zd.mjs +0 -2
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { C as GlassEaselAnalyzeResult } from "./config-Dbvj5yK7.mjs";
|
|
2
|
+
import { RolldownOutput } from "rolldown";
|
|
3
|
+
import { DevframeDefinition } from "devframe";
|
|
4
|
+
//#region src/analyze/components/types.d.ts
|
|
5
|
+
type AnalyzeComponentSuggestionKind = 'move-to-subpackage' | 'split-or-async' | 'shared-subpackage-or-placeholder';
|
|
6
|
+
interface AnalyzeComponentSuggestion {
|
|
7
|
+
kind: AnalyzeComponentSuggestionKind;
|
|
8
|
+
message: string;
|
|
9
|
+
component: string;
|
|
10
|
+
componentPackage: string;
|
|
11
|
+
targetPackage?: string;
|
|
12
|
+
pagePackages: string[];
|
|
13
|
+
}
|
|
14
|
+
interface AnalyzeComponentPageUsage {
|
|
15
|
+
page: string;
|
|
16
|
+
packageId: string;
|
|
17
|
+
usageCount: number;
|
|
18
|
+
}
|
|
19
|
+
interface AnalyzeComponentUsage {
|
|
20
|
+
component: string;
|
|
21
|
+
componentPackage: string;
|
|
22
|
+
totalUsageCount: number;
|
|
23
|
+
pageUsageCount: number;
|
|
24
|
+
pages: AnalyzeComponentPageUsage[];
|
|
25
|
+
suggestions: AnalyzeComponentSuggestion[];
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/analyze/subpackages/types.d.ts
|
|
29
|
+
type PackageType = 'main' | 'subPackage' | 'independent' | 'virtual';
|
|
30
|
+
type ModuleSourceType = 'src' | 'plugin' | 'node_modules' | 'workspace';
|
|
31
|
+
type BuildOrigin = 'main' | 'independent';
|
|
32
|
+
interface AnalyzeBudgetConfig {
|
|
33
|
+
totalBytes: number;
|
|
34
|
+
mainBytes: number;
|
|
35
|
+
subPackageBytes: number;
|
|
36
|
+
independentBytes: number;
|
|
37
|
+
warningRatio: number;
|
|
38
|
+
source: 'config' | 'default';
|
|
39
|
+
}
|
|
40
|
+
interface AnalyzeHistoryMetadata {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
dir: string;
|
|
43
|
+
limit: number;
|
|
44
|
+
latestSnapshot?: string;
|
|
45
|
+
}
|
|
46
|
+
interface AnalyzeSubpackagesMetadata {
|
|
47
|
+
projectName?: string;
|
|
48
|
+
generatedAt: string;
|
|
49
|
+
budgets: AnalyzeBudgetConfig;
|
|
50
|
+
history: AnalyzeHistoryMetadata;
|
|
51
|
+
}
|
|
52
|
+
interface ModuleInFile {
|
|
53
|
+
id: string;
|
|
54
|
+
source: string;
|
|
55
|
+
sourceType: ModuleSourceType;
|
|
56
|
+
bytes?: number;
|
|
57
|
+
originalBytes?: number;
|
|
58
|
+
}
|
|
59
|
+
interface PackageFileEntry {
|
|
60
|
+
file: string;
|
|
61
|
+
type: 'chunk' | 'asset';
|
|
62
|
+
from: BuildOrigin;
|
|
63
|
+
size?: number;
|
|
64
|
+
gzipSize?: number;
|
|
65
|
+
brotliSize?: number;
|
|
66
|
+
isEntry?: boolean;
|
|
67
|
+
imports?: string[];
|
|
68
|
+
dynamicImports?: string[];
|
|
69
|
+
modules?: ModuleInFile[];
|
|
70
|
+
source?: string;
|
|
71
|
+
sourceType?: ModuleSourceType;
|
|
72
|
+
}
|
|
73
|
+
interface PackageReport {
|
|
74
|
+
id: string;
|
|
75
|
+
label: string;
|
|
76
|
+
type: PackageType;
|
|
77
|
+
files: PackageFileEntry[];
|
|
78
|
+
}
|
|
79
|
+
interface ModuleUsage {
|
|
80
|
+
id: string;
|
|
81
|
+
source: string;
|
|
82
|
+
sourceType: ModuleSourceType;
|
|
83
|
+
packages: Array<{
|
|
84
|
+
packageId: string;
|
|
85
|
+
files: string[];
|
|
86
|
+
}>;
|
|
87
|
+
}
|
|
88
|
+
interface SubPackageDescriptor {
|
|
89
|
+
root: string;
|
|
90
|
+
independent: boolean;
|
|
91
|
+
name?: string;
|
|
92
|
+
}
|
|
93
|
+
interface AnalyzeSubpackagesResult {
|
|
94
|
+
metadata?: AnalyzeSubpackagesMetadata;
|
|
95
|
+
packages: PackageReport[];
|
|
96
|
+
modules: ModuleUsage[];
|
|
97
|
+
subPackages: SubPackageDescriptor[];
|
|
98
|
+
components?: AnalyzeComponentUsage[];
|
|
99
|
+
glassEasel: GlassEaselAnalyzeResult;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/dashboard/artifacts.d.ts
|
|
103
|
+
interface DashboardArtifactFile {
|
|
104
|
+
readonly size: number;
|
|
105
|
+
readonly content?: string;
|
|
106
|
+
readonly error?: string;
|
|
107
|
+
}
|
|
108
|
+
type DashboardArtifactFiles = ReadonlyMap<string, DashboardArtifactFile>;
|
|
109
|
+
/** 保留同一次分析的产物内容,不读取或改写开发构建目录。 */
|
|
110
|
+
declare function createDashboardArtifactSnapshot(): {
|
|
111
|
+
files: DashboardArtifactFiles;
|
|
112
|
+
capture(fileName: string, source: string | Uint8Array): void;
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/dashboard/paths.d.ts
|
|
116
|
+
type DashboardFileKind = 'artifact' | 'source';
|
|
117
|
+
interface DashboardContentRoots {
|
|
118
|
+
pluginRoot?: string;
|
|
119
|
+
projectRoot?: string;
|
|
120
|
+
srcRoot?: string;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/dashboard/content.d.ts
|
|
124
|
+
interface DashboardFileContent {
|
|
125
|
+
content: string;
|
|
126
|
+
kind: DashboardFileKind;
|
|
127
|
+
language: string;
|
|
128
|
+
path: string;
|
|
129
|
+
size: number;
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/dashboard/events.d.ts
|
|
133
|
+
type DashboardRuntimeEventKind = 'command' | 'build' | 'diagnostic' | 'hmr' | 'system';
|
|
134
|
+
type DashboardRuntimeEventLevel = 'info' | 'success' | 'warning' | 'error';
|
|
135
|
+
interface DashboardRuntimeEvent extends DashboardRuntimeEventInput {
|
|
136
|
+
id: string;
|
|
137
|
+
timestamp: string;
|
|
138
|
+
source: string;
|
|
139
|
+
}
|
|
140
|
+
interface DashboardRuntimeEventProfile {
|
|
141
|
+
timestamp?: string;
|
|
142
|
+
totalMs?: number;
|
|
143
|
+
eventId?: string;
|
|
144
|
+
event?: string;
|
|
145
|
+
file?: string;
|
|
146
|
+
relativeFile?: string;
|
|
147
|
+
sourceRootFile?: string;
|
|
148
|
+
buildCoreMs?: number;
|
|
149
|
+
buildStartMs?: number;
|
|
150
|
+
pluginResolveMs?: number;
|
|
151
|
+
transformMs?: number;
|
|
152
|
+
snapshotResolveMs?: number;
|
|
153
|
+
snapshotBuildMs?: number;
|
|
154
|
+
writeMs?: number;
|
|
155
|
+
watchToDirtyMs?: number;
|
|
156
|
+
emitMs?: number;
|
|
157
|
+
sharedChunkResolveMs?: number;
|
|
158
|
+
resolveCount?: number;
|
|
159
|
+
dirtyCount?: number;
|
|
160
|
+
pendingCount?: number;
|
|
161
|
+
emittedCount?: number;
|
|
162
|
+
dirtyReasonSummary?: string[];
|
|
163
|
+
pendingReasonSummary?: string[];
|
|
164
|
+
}
|
|
165
|
+
interface DashboardRuntimeEventInput {
|
|
166
|
+
kind: DashboardRuntimeEventKind;
|
|
167
|
+
level: DashboardRuntimeEventLevel;
|
|
168
|
+
title: string;
|
|
169
|
+
detail: string;
|
|
170
|
+
source?: string;
|
|
171
|
+
durationMs?: number;
|
|
172
|
+
tags?: string[];
|
|
173
|
+
profile?: DashboardRuntimeEventProfile;
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/dashboard/payload.d.ts
|
|
177
|
+
interface DashboardAnalyzePayloadDescriptor {
|
|
178
|
+
characters: number;
|
|
179
|
+
hash: string;
|
|
180
|
+
pages: number;
|
|
181
|
+
}
|
|
182
|
+
interface DashboardAnalyzePayloadsDescriptor {
|
|
183
|
+
current: DashboardAnalyzePayloadDescriptor;
|
|
184
|
+
previous: DashboardAnalyzePayloadDescriptor | null;
|
|
185
|
+
}
|
|
186
|
+
interface DashboardAnalyzePageRequest {
|
|
187
|
+
index: number;
|
|
188
|
+
revision: number;
|
|
189
|
+
target: 'current' | 'previous';
|
|
190
|
+
}
|
|
191
|
+
interface DashboardAnalyzePage {
|
|
192
|
+
content: string;
|
|
193
|
+
descriptor: DashboardAnalyzePayloadDescriptor;
|
|
194
|
+
index: number;
|
|
195
|
+
revision: number;
|
|
196
|
+
target: DashboardAnalyzePageRequest['target'];
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/dashboard/assets.d.ts
|
|
200
|
+
/** 定位可选仪表盘包的原生构建 SPA;未安装或尚未构建时返回 undefined。 */
|
|
201
|
+
declare function resolveDashboardClientAssets(cwd?: string): string | undefined;
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/dashboard/index.d.ts
|
|
204
|
+
/** 报告与产物在发布后不可再修改;控制器只保留引用,不复制或清空调用方的 Map。 */
|
|
205
|
+
interface DashboardAnalyzeSnapshot {
|
|
206
|
+
current: AnalyzeSubpackagesResult;
|
|
207
|
+
previous: AnalyzeSubpackagesResult | null;
|
|
208
|
+
artifacts: DashboardArtifactFiles;
|
|
209
|
+
}
|
|
210
|
+
interface DashboardDevframeState {
|
|
211
|
+
analyze: DashboardAnalyzePayloadsDescriptor;
|
|
212
|
+
revision: number;
|
|
213
|
+
runtimeEvents: DashboardRuntimeEvent[];
|
|
214
|
+
}
|
|
215
|
+
interface CreateAnalyzeDashboardDevframeOptions {
|
|
216
|
+
snapshot: DashboardAnalyzeSnapshot;
|
|
217
|
+
roots: DashboardContentRoots;
|
|
218
|
+
initialEvents?: DashboardRuntimeEventInput[];
|
|
219
|
+
/** 已构建面板的绝对目录;源码独立宿主可不提供。 */
|
|
220
|
+
clientAssets?: string;
|
|
221
|
+
}
|
|
222
|
+
/** 每个控制器对应一个宿主生命周期,宿主负责在关闭或启动失败时释放。 */
|
|
223
|
+
interface AnalyzeDashboardDevframeController {
|
|
224
|
+
readonly definition: DevframeDefinition;
|
|
225
|
+
update: (result: AnalyzeSubpackagesResult, artifacts: DashboardArtifactFiles, previousResult?: AnalyzeSubpackagesResult | null) => Promise<void>;
|
|
226
|
+
emitRuntimeEvents: (events: DashboardRuntimeEventInput[]) => void;
|
|
227
|
+
dispose: () => void;
|
|
228
|
+
}
|
|
229
|
+
declare module 'devframe' {
|
|
230
|
+
interface DevframeRpcClientFunctions {
|
|
231
|
+
'weapp-vite:dashboard-state-updated': (state: DashboardDevframeState) => void;
|
|
232
|
+
}
|
|
233
|
+
interface DevframeRpcServerFunctions {
|
|
234
|
+
'weapp-vite:get-dashboard-state': () => DashboardDevframeState;
|
|
235
|
+
'weapp-vite:get-analyze-page': (input: DashboardAnalyzePageRequest) => DashboardAnalyzePage;
|
|
236
|
+
'weapp-vite:read-dashboard-file': (input: {
|
|
237
|
+
kind: DashboardFileKind;
|
|
238
|
+
path: string;
|
|
239
|
+
revision: number;
|
|
240
|
+
}) => Promise<DashboardFileContent>;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/** 创建只读分析能力,不启动服务器,也不修改宿主的共享状态或认证策略。 */
|
|
244
|
+
declare function createAnalyzeDashboardDevframe({ snapshot: initialSnapshot, roots, initialEvents, clientAssets }: CreateAnalyzeDashboardDevframeOptions): AnalyzeDashboardDevframeController;
|
|
245
|
+
//#endregion
|
|
246
|
+
export { resolveDashboardClientAssets as a, DashboardContentRoots as c, createDashboardArtifactSnapshot as d, AnalyzeSubpackagesResult as f, createAnalyzeDashboardDevframe as i, DashboardArtifactFile as l, CreateAnalyzeDashboardDevframeOptions as n, DashboardRuntimeEventInput as o, DashboardAnalyzeSnapshot as r, DashboardRuntimeEventProfile as s, AnalyzeDashboardDevframeController as t, DashboardArtifactFiles as u };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as WeappCompilerHmrRequest, A as PluginOption, B as ViteDevServer, Br as WeappVitePlatform, Ct as WeappViteConfig, D as InlineConfig, E as ConfigEnv, F as RolldownOutput, Fr as isWeappViteHost, Gr as WebPlatform, Hr as WeappViteTargetDescriptor, I as RolldownPlugin, Ir as resolveWeappViteHostMeta, Jr as isWebPlatform, Kr as getSupportedWeappVitePlatforms, L as RolldownPluginOption, Lr as ResolveWeappViteTargetOptions, M as ResolvedConfig, Mr as WeappViteHostMeta, N as RolldownBuild, Nr as applyWeappViteHostMeta, O as MethodDefinitions, P as RolldownOptions, Pr as createWeappViteHostMeta, Q as WeappCompilerHmrPreparation, R as RolldownWatchOptions, Rr as ResolvedWeappViteTarget, S as CompilerContext, Sn as MultiPlatformProjectConfigs, T as ComputedDefinitions, Ur as WeappViteTargetInput, Vr as WeappViteRuntime, Wr as WeappViteTargetKind, Yr as resolveWeappViteTarget, Z as WeappCompilerHmrAsset, _ as definePageJson, _n as WxmlTransformContext, a as UserConfigFnNoEnvPlain, at as WeappCompilerPluginFactory, bn as WxmlTransformVisitor, c as UserConfigFnPromise, cn as WxmlValidate, ct as WeappCompilerResourceKind, d as Component, dn as WxmlValidationVisitor, dt as WeappCompilerTransformResult, et as WeappCompilerOutputRequest, f as Page, fn as WxmlAttribute, g as defineComponentJson, gn as WxmlTransform, h as defineAppJson, hn as WxmlSourceLocation, i as UserConfigFnNoEnv, it as WeappCompilerPluginController, j as Ref, jr as WEAPP_VITE_HOST_NAME, k as Plugin, l as defineConfig, ln as WxmlValidationContext, lt as WeappCompilerSourceClaim, m as Theme, mn as WxmlElementInfo, n as UserConfigExport, nt as WeappCompilerPluginCapabilities, o as UserConfigFnObject, on as WxmlRemoveAttrRule, ot as WeappCompilerPluginOption, p as Sitemap, pn as WxmlAttributeValue, qr as getSupportedWeappViteTargetDescriptors, r as UserConfigFn, rt as WeappCompilerPluginContext, s as UserConfigFnObjectPlain, sn as WxmlRemoveOptions, st as WeappCompilerPluginPhase, t as UserConfig, tt as WeappCompilerPlugin, u as App, un as WxmlValidationDiagnostic, ut as WeappCompilerSourceRequest, v as defineSitemapJson, vn as WxmlTransformNode, w as LoadConfigOptions, xn as MultiPlatformProjectConfig, y as defineThemeJson, yn as WxmlTransformResult, z as RolldownWatcher, zr as WEB_PLATFORM_ALIASES } from "./config-Dbvj5yK7.mjs";
|
|
2
2
|
import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
|
|
3
3
|
import { a as LayoutHostContext, c as LayoutHostResolver, d as unregisterLayoutHosts, f as waitForLayoutHost, i as LayoutHostBridge, l as registerLayoutHosts, m as createWevuComponent, n as defineProps, o as LayoutHostEntry, p as WevuComponentOptions, r as setPageLayout, s as LayoutHostResolveOptions, t as defineEmits, u as resolveLayoutHost } from "./runtime-Ee2HY6gR.mjs";
|
|
4
4
|
//#region src/createContext.d.ts
|
|
@@ -13,4 +13,4 @@ interface CreateCompilerContextOptions extends Partial<LoadConfigOptions> {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function createCompilerContext(options?: CreateCompilerContextOptions): Promise<CompilerContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type App, type Component, type ComputedDefinitions, type ConfigEnv, type InlineConfig, type LayoutHostBridge, type LayoutHostContext, type LayoutHostEntry, type LayoutHostResolveOptions, type LayoutHostResolver, type MethodDefinitions, type Page, type Plugin, type PluginOption, type Ref, ResolveWeappViteTargetOptions, type ResolvedConfig, ResolvedWeappViteTarget, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatchOptions, type RolldownWatcher, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, type ViteDevServer, WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, WeappCompilerOutputRequest, WeappCompilerPlugin, WeappCompilerPluginCapabilities, WeappCompilerPluginContext, WeappCompilerPluginController, WeappCompilerPluginFactory, WeappCompilerPluginOption, WeappCompilerPluginPhase, WeappCompilerResourceKind, WeappCompilerSourceClaim, WeappCompilerSourceRequest, WeappCompilerTransformResult, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, WeappVitePlatform, WeappViteRuntime, WeappViteTargetDescriptor, WeappViteTargetInput, WeappViteTargetKind, WebPlatform, type WevuComponentOptions, applyWeappViteHostMeta, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, registerLayoutHosts, resolveLayoutHost, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
|
16
|
+
export { type App, type Component, type ComputedDefinitions, type ConfigEnv, type InlineConfig, type LayoutHostBridge, type LayoutHostContext, type LayoutHostEntry, type LayoutHostResolveOptions, type LayoutHostResolver, type MethodDefinitions, type MultiPlatformProjectConfig, type MultiPlatformProjectConfigs, type Page, type Plugin, type PluginOption, type Ref, ResolveWeappViteTargetOptions, type ResolvedConfig, ResolvedWeappViteTarget, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatchOptions, type RolldownWatcher, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, type ViteDevServer, WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, type WeappCompilerHmrAsset, type WeappCompilerHmrPreparation, type WeappCompilerHmrRequest, WeappCompilerOutputRequest, WeappCompilerPlugin, WeappCompilerPluginCapabilities, WeappCompilerPluginContext, WeappCompilerPluginController, WeappCompilerPluginFactory, WeappCompilerPluginOption, WeappCompilerPluginPhase, WeappCompilerResourceKind, WeappCompilerSourceClaim, WeappCompilerSourceRequest, WeappCompilerTransformResult, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, WeappVitePlatform, WeappViteRuntime, WeappViteTargetDescriptor, WeappViteTargetInput, WeappViteTargetKind, WebPlatform, type WevuComponentOptions, type WxmlAttribute, type WxmlAttributeValue, type WxmlElementInfo, type WxmlRemoveAttrRule, type WxmlRemoveOptions, type WxmlSourceLocation, type WxmlTransform, type WxmlTransformContext, type WxmlTransformNode, type WxmlTransformResult, type WxmlTransformVisitor, type WxmlValidate, type WxmlValidationContext, type WxmlValidationDiagnostic, type WxmlValidationVisitor, applyWeappViteHostMeta, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, registerLayoutHosts, resolveLayoutHost, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
2
2
|
import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
|
|
3
3
|
import { t as defineConfig } from "./config-DRGcCi3h.mjs";
|
|
4
|
-
import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-
|
|
4
|
+
import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-UOEgeYnA.mjs";
|
|
5
5
|
import { a as resolveLayoutHost, c as createWevuComponent, i as registerLayoutHosts, n as defineProps, o as unregisterLayoutHosts, r as setPageLayout, s as waitForLayoutHost, t as defineEmits } from "./runtime-D6VCNhNY.mjs";
|
|
6
6
|
export { WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, registerLayoutHosts, resolveLayoutHost, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
package/dist/json.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as definePageJson, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, m as Theme, p as Sitemap, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-
|
|
1
|
+
import { _ as definePageJson, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, m as Theme, p as Sitemap, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-Dbvj5yK7.mjs";
|
|
2
2
|
export { type App, type Component, type Page, type Sitemap, type Theme, defineAppJson, defineComponentJson, definePageJson, defineSitemapJson, defineThemeJson };
|
package/dist/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Wt as WeappMcpConfig } from "./config-Dbvj5yK7.mjs";
|
|
2
2
|
import { CreateServerOptions, DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, DEFAULT_RUNTIME_REST_ENDPOINT, McpServerHandle, StartMcpServerOptions, createWeappViteMcpServer } from "@weapp-vite/mcp";
|
|
3
3
|
//#region src/mcp.d.ts
|
|
4
4
|
export interface ResolvedWeappMcpConfig {
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { t as MINI_PROGRAM_PLATFORM_ADAPTERS } from "./adapters-BwnMMIZR.mjs";
|
|
2
|
+
import { MINI_PROGRAM_PLATFORM_ALIASES, getDefaultMiniProgramPlatform, getMiniProgramAppTypesPackage, getMiniProgramDirectivePrefix, getSupportedMiniProgramPlatforms, normalizeMiniProgramPlatform, resolveMiniProgramPlatform } from "@weapp-core/shared";
|
|
3
|
+
//#region src/platform.ts
|
|
4
|
+
const DEFAULT_MP_PLATFORM = getDefaultMiniProgramPlatform();
|
|
5
|
+
const NPM_PROTOCOL_RE = /^npm:/;
|
|
6
|
+
const EXPLICIT_NPM_DIR_RE = /^\/(?:miniprogram_npm|node_modules)\//;
|
|
7
|
+
const LEADING_SLASH_RE = /^\/+/;
|
|
8
|
+
function createMiniProgramPlatformRegistry(adapters) {
|
|
9
|
+
const adapterById = /* @__PURE__ */ new Map();
|
|
10
|
+
const aliasToId = /* @__PURE__ */ new Map();
|
|
11
|
+
for (const adapter of adapters) {
|
|
12
|
+
adapterById.set(adapter.id, adapter);
|
|
13
|
+
aliasToId.set(adapter.id, adapter.id);
|
|
14
|
+
for (const alias of adapter.aliases) {
|
|
15
|
+
const normalized = alias.trim().toLowerCase();
|
|
16
|
+
if (!normalized) continue;
|
|
17
|
+
aliasToId.set(normalized, adapter.id);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
adapterById,
|
|
22
|
+
aliasToId
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const { adapterById: PLATFORM_ADAPTER_BY_ID, aliasToId: PLATFORM_ALIAS_TO_ID } = createMiniProgramPlatformRegistry(MINI_PROGRAM_PLATFORM_ADAPTERS);
|
|
26
|
+
const SUPPORTED_MINI_PROGRAM_PLATFORMS = getSupportedMiniProgramPlatforms();
|
|
27
|
+
Object.freeze({
|
|
28
|
+
...MINI_PROGRAM_PLATFORM_ALIASES,
|
|
29
|
+
...Object.fromEntries(PLATFORM_ALIAS_TO_ID.entries())
|
|
30
|
+
});
|
|
31
|
+
function getSupportedMiniProgramPlatforms$1() {
|
|
32
|
+
return SUPPORTED_MINI_PROGRAM_PLATFORMS;
|
|
33
|
+
}
|
|
34
|
+
function normalizeMiniPlatform(input) {
|
|
35
|
+
return normalizeMiniProgramPlatform(input);
|
|
36
|
+
}
|
|
37
|
+
function resolveMiniPlatform(input) {
|
|
38
|
+
const resolved = resolveMiniProgramPlatform(input);
|
|
39
|
+
if (resolved) return resolved;
|
|
40
|
+
const normalized = normalizeMiniPlatform(input);
|
|
41
|
+
if (!normalized) return;
|
|
42
|
+
return PLATFORM_ALIAS_TO_ID.get(normalized);
|
|
43
|
+
}
|
|
44
|
+
function resolveMiniPlatformWithDefault(platform) {
|
|
45
|
+
return platform ?? DEFAULT_MP_PLATFORM;
|
|
46
|
+
}
|
|
47
|
+
function getMiniProgramPlatformAdapter(platform) {
|
|
48
|
+
const adapter = PLATFORM_ADAPTER_BY_ID.get(platform);
|
|
49
|
+
if (!adapter) throw new Error(`不支持的小程序平台 "${platform}"。`);
|
|
50
|
+
return adapter;
|
|
51
|
+
}
|
|
52
|
+
function getIdePlatformOptions(platform) {
|
|
53
|
+
return {
|
|
54
|
+
requiresOpenPlatformArg: platform ? getMiniProgramPlatformAdapter(platform).ide?.requiresOpenPlatformArg === true : false,
|
|
55
|
+
defaultProjectRoot: platform ? getMiniProgramPlatformAdapter(platform).ide?.defaultProjectRoot : void 0
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function shouldPassPlatformArgToIdeOpen(platform) {
|
|
59
|
+
return getIdePlatformOptions(platform).requiresOpenPlatformArg;
|
|
60
|
+
}
|
|
61
|
+
function getDefaultIdeProjectRoot(platform) {
|
|
62
|
+
return getIdePlatformOptions(platform).defaultProjectRoot;
|
|
63
|
+
}
|
|
64
|
+
function getPlatformOutputExtensions(platform) {
|
|
65
|
+
return { ...getMiniProgramPlatformAdapter(platform).outputExtensions };
|
|
66
|
+
}
|
|
67
|
+
function getJsonPlatformOptions(platform) {
|
|
68
|
+
const json = platform ? getMiniProgramPlatformAdapter(platform).json : void 0;
|
|
69
|
+
return {
|
|
70
|
+
normalizeUsingComponents: json?.normalizeUsingComponents === true,
|
|
71
|
+
fillComponentGenericsDefault: json?.fillComponentGenericsDefault === true,
|
|
72
|
+
rewriteBundleNpmImports: json?.rewriteBundleNpmImports === true
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function shouldNormalizeUsingComponents(platform) {
|
|
76
|
+
return getJsonPlatformOptions(platform).normalizeUsingComponents;
|
|
77
|
+
}
|
|
78
|
+
function shouldFillComponentGenericsDefault(platform) {
|
|
79
|
+
return getJsonPlatformOptions(platform).fillComponentGenericsDefault;
|
|
80
|
+
}
|
|
81
|
+
function shouldRewriteBundleNpmImports(platform) {
|
|
82
|
+
return getJsonPlatformOptions(platform).rewriteBundleNpmImports;
|
|
83
|
+
}
|
|
84
|
+
function getNpmPlatformOptions(platform, options) {
|
|
85
|
+
const npm = platform ? getMiniProgramPlatformAdapter(platform).npm : void 0;
|
|
86
|
+
const adapter = platform ? getMiniProgramPlatformAdapter(platform) : void 0;
|
|
87
|
+
const distDirName = npm?.distDirName?.(options) ?? "miniprogram_npm";
|
|
88
|
+
return {
|
|
89
|
+
distDirName,
|
|
90
|
+
preservedDirNames: adapter?.resolvePreservedNpmDirNames(options) ?? ["miniprogram_npm"],
|
|
91
|
+
importPrefix: `/${distDirName}/`,
|
|
92
|
+
normalizeImportPath: npm?.normalizeImportPath === true,
|
|
93
|
+
normalizeMiniprogramPackage: npm?.normalizeMiniprogramPackage === true,
|
|
94
|
+
copyEsModuleDirectory: npm?.copyEsModuleDirectory === true,
|
|
95
|
+
hoistNestedDependencies: npm?.hoistNestedDependencies === true,
|
|
96
|
+
shouldRebuildCachedPackage: npm?.shouldRebuildCachedPackage === true
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function getPreservedNpmDirNames(platform, options) {
|
|
100
|
+
return getNpmPlatformOptions(platform, options).preservedDirNames;
|
|
101
|
+
}
|
|
102
|
+
function getPlatformNpmDistDirName(platform, options) {
|
|
103
|
+
return getNpmPlatformOptions(platform, options).distDirName;
|
|
104
|
+
}
|
|
105
|
+
function shouldNormalizePlatformNpmImportPath(platform) {
|
|
106
|
+
return getNpmPlatformOptions(platform).normalizeImportPath;
|
|
107
|
+
}
|
|
108
|
+
function getPlatformNpmImportPrefix(platform, options) {
|
|
109
|
+
return getNpmPlatformOptions(platform, options).importPrefix;
|
|
110
|
+
}
|
|
111
|
+
function stripExplicitNpmImportPrefix(importee) {
|
|
112
|
+
return importee.replace(NPM_PROTOCOL_RE, "").replace(EXPLICIT_NPM_DIR_RE, "");
|
|
113
|
+
}
|
|
114
|
+
function normalizePlatformNpmImportPath(platform, importee, options) {
|
|
115
|
+
if (!shouldNormalizePlatformNpmImportPath(platform)) return importee;
|
|
116
|
+
const normalized = stripExplicitNpmImportPrefix(importee);
|
|
117
|
+
return `${getPlatformNpmImportPrefix(platform, options)}${normalized.replace(LEADING_SLASH_RE, "")}`;
|
|
118
|
+
}
|
|
119
|
+
function shouldRebuildCachedMiniprogramPackage(platform) {
|
|
120
|
+
return getNpmPlatformOptions(platform).shouldRebuildCachedPackage;
|
|
121
|
+
}
|
|
122
|
+
function shouldNormalizeMiniprogramPackage(platform) {
|
|
123
|
+
return getNpmPlatformOptions(platform).normalizeMiniprogramPackage;
|
|
124
|
+
}
|
|
125
|
+
function shouldCopyEsModuleDirectory(platform) {
|
|
126
|
+
return getNpmPlatformOptions(platform).copyEsModuleDirectory;
|
|
127
|
+
}
|
|
128
|
+
function shouldHoistNestedMiniprogramDependencies(platform) {
|
|
129
|
+
return getNpmPlatformOptions(platform).hoistNestedDependencies;
|
|
130
|
+
}
|
|
131
|
+
function getProjectPlatformOptions(platform) {
|
|
132
|
+
const adapter = getMiniProgramPlatformAdapter(platform);
|
|
133
|
+
return {
|
|
134
|
+
projectConfigFileName: adapter.projectConfigFileName,
|
|
135
|
+
projectConfigRootKeys: adapter.projectConfigRootKeys,
|
|
136
|
+
usesProjectRootNpmDir: adapter.usesProjectRootNpmDir === true
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function getScriptModulePlatformOptions(platform) {
|
|
140
|
+
return { tagByExtension: platform ? getMiniProgramPlatformAdapter(platform).scriptModuleTagByExtension ?? {} : {} };
|
|
141
|
+
}
|
|
142
|
+
function getWxmlPlatformTransformOptions(platform) {
|
|
143
|
+
const wxml = platform ? getMiniProgramPlatformAdapter(platform).wxml : void 0;
|
|
144
|
+
return {
|
|
145
|
+
eventBindingStyle: wxml?.eventBindingStyle ?? "default",
|
|
146
|
+
directivePrefix: wxml?.directivePrefix ?? getMiniProgramDirectivePrefix(platform),
|
|
147
|
+
normalizeComponentTagName: wxml?.normalizeComponentTagName === true,
|
|
148
|
+
normalizeVueTemplate: wxml?.normalizeVueTemplate === true,
|
|
149
|
+
emitGenericPlaceholder: wxml?.emitGenericPlaceholder === true
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function getWxmlDirectivePrefix(platform) {
|
|
153
|
+
return getWxmlPlatformTransformOptions(platform).directivePrefix;
|
|
154
|
+
}
|
|
155
|
+
function shouldNormalizeVueTemplateForPlatform(platform) {
|
|
156
|
+
return getWxmlPlatformTransformOptions(platform).normalizeVueTemplate;
|
|
157
|
+
}
|
|
158
|
+
function shouldEmitGenericPlaceholderAsset(platform) {
|
|
159
|
+
return getWxmlPlatformTransformOptions(platform).emitGenericPlaceholder;
|
|
160
|
+
}
|
|
161
|
+
function getPlatformScriptModuleTag(platform, scriptModuleExtension) {
|
|
162
|
+
if (!scriptModuleExtension) return;
|
|
163
|
+
return getScriptModulePlatformOptions(platform).tagByExtension[scriptModuleExtension];
|
|
164
|
+
}
|
|
165
|
+
function shouldUseProjectRootNpmDir(platform) {
|
|
166
|
+
return getProjectPlatformOptions(platform).usesProjectRootNpmDir;
|
|
167
|
+
}
|
|
168
|
+
function getTypeScriptPlatformOptions(platform) {
|
|
169
|
+
return { appTypesPackage: platform ? getMiniProgramPlatformAdapter(platform).typescript?.appTypesPackage ?? getMiniProgramAppTypesPackage(platform) : getMiniProgramAppTypesPackage() };
|
|
170
|
+
}
|
|
171
|
+
function getPlatformAppTypesPackage(platform) {
|
|
172
|
+
return getTypeScriptPlatformOptions(platform).appTypesPackage;
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
export { shouldNormalizeVueTemplateForPlatform as C, shouldUseProjectRootNpmDir as D, shouldRewriteBundleNpmImports as E, shouldNormalizeUsingComponents as S, shouldRebuildCachedMiniprogramPackage as T, shouldEmitGenericPlaceholderAsset as _, getPlatformNpmDistDirName as a, shouldNormalizeMiniprogramPackage as b, getPreservedNpmDirNames as c, getWxmlDirectivePrefix as d, getWxmlPlatformTransformOptions as f, shouldCopyEsModuleDirectory as g, resolveMiniPlatformWithDefault as h, getPlatformAppTypesPackage as i, getProjectPlatformOptions as l, resolveMiniPlatform as m, getDefaultIdeProjectRoot as n, getPlatformOutputExtensions as o, normalizePlatformNpmImportPath as p, getJsonPlatformOptions as r, getPlatformScriptModuleTag as s, DEFAULT_MP_PLATFORM as t, getSupportedMiniProgramPlatforms$1 as u, shouldFillComponentGenericsDefault as v, shouldPassPlatformArgToIdeOpen as w, shouldNormalizePlatformNpmImportPath as x, shouldHoistNestedMiniprogramDependencies as y };
|
package/dist/test.mjs
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as Resolver } from "./index-CaXAtb9e.mjs";
|
|
2
2
|
import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-C7fCmf92.mjs";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as WeappCompilerHmrRequest, $n as NpmMainPackageConfig, $t as WeappSubPackageConfig, A as PluginOption, An as DeprecatedInlineDynamicImports, Ar as WeappWebConfig, At as ScanWxmlOptions, B as ViteDevServer, Bn as GenerateTemplateFileSource, Bt as WeappInjectRequestGlobalsTarget, Cn as Alias, Cr as WeappLibInternalDtsOptions, Ct as WeappViteConfig, D as InlineConfig, Dn as ChunksConfig, Dr as WeappManagedServerTsconfigConfig, Dt as EnhanceWxmlOptions, E as ConfigEnv, En as BuildNpmPackageMeta, Er as WeappManagedNodeTsconfigConfig, Et as EnhanceOptions, F as RolldownOutput, Fn as GenerateOptions, Ft as WeappAutoRoutesIncludePattern, G as Entry, Gn as JsonConfig, Gt as WeappNpmConfig, H as AppEntry, Hn as GenerateTemplateScope, Ht as WeappInjectWebRuntimeGlobalsConfig, I as RolldownPlugin, In as GenerateTemplate, It as WeappBuildScopeConfig, J as ComponentsMap, Jn as JsonMergeStage, Jt as WeappReactCompilerConfig, K as EntryJsonFragment, Kn as JsonMergeContext, Kt as WeappPreloadNetwork, L as RolldownPluginOption, Ln as GenerateTemplateContext, Lt as WeappBuildScopeObjectConfig, M as ResolvedConfig, Mn as GenerateExtensionsOptions, Mr as WeappViteHostMeta, Mt as WeappAppPreludeMode, N as RolldownBuild, Nn as GenerateFileType, Nt as WeappAutoRoutesConfig, O as MethodDefinitions, On as CopyGlobs, Or as WeappManagedSharedTsconfigConfig, Ot as HandleWxmlOptions, P as RolldownOptions, Pn as GenerateFilenamesOptions, Pt as WeappAutoRoutesInclude, Q as WeappCompilerHmrPreparation, Qn as NpmDependencyPattern, Qt as WeappRouteRules, R as RolldownWatchOptions, Rn as GenerateTemplateEntry, Rt as WeappHmrConfig, Sn as MultiPlatformProjectConfigs, Sr as WeappLibFileName, St as WeappUploadConfig, T as ComputedDefinitions, Tn as AlipayNpmMode, Tr as WeappManagedAppTsconfigConfig, Tt as AutoImportComponentsOption, U as BaseEntry, Un as GenerateTemplatesConfig, Ut as WeappInjectWebRuntimeGlobalsTarget, V as BindingErrorLike, Vn as GenerateTemplateInlineSource, Vr as WeappViteRuntime, Vt as WeappInjectWeapiConfig, W as ComponentEntry, Wn as JsFormat, Wt as WeappMcpConfig, X as WxmlDep, Xn as MpPlatform, Xt as WeappRequestRuntimeConfig, Y as ScanComponentItem, Yn as JsonMergeStrategy, Yt as WeappReactConfig, Z as WeappCompilerHmrAsset, Zn as NpmBuildOptions, Zt as WeappRouteRule, _n as WxmlTransformContext, _r as SubPackageStyleScope, _t as WeappAnalyzeHistoryConfig, an as WeappWorkerConfig, ar as SharedChunkDynamicImports, at as WeappCompilerPluginFactory, b as ChangeEvent, bn as WxmlTransformVisitor, br as WeappLibDtsOptions, bt as WeappForwardConsoleLogLevel, cn as WxmlValidate, cr as SharedChunkStrategy, ct as WeappCompilerResourceKind, dn as WxmlValidationVisitor, dr as StyleEntry, dt as WeappCompilerTransformResult, en as WeappUniAppConfig, er as NpmPackageFilesConfig, et as WeappCompilerOutputRequest, fn as WxmlAttribute, fr as StyleScope, ft as ProjectConfig, gn as WxmlTransform, gr as SubPackageStyleEntry, gt as WeappAnalyzeConfig, hn as WxmlSourceLocation, hr as SubPackageStyleConfigObject, ht as WeappAnalyzeBudgetConfig, in as WeappWevuConfig, ir as ResolvedAlias, it as WeappCompilerPluginController, j as Ref, jn as GenerateDirsOptions, jt as WeappAppPreludeConfig, k as Plugin, kn as CopyOptions, kr as WeappManagedTypeScriptConfig, kt as MultiPlatformConfig, ln as WxmlValidationContext, lr as StyleConfigEntry, lt as WeappCompilerSourceClaim, mn as WxmlElementInfo, mr as SubPackageStyleConfigEntry, mt as UserConfig, nn as WeappVueTemplateConfig, nr as NpmStrategy, nt as WeappCompilerPluginCapabilities, on as WxmlRemoveAttrRule, or as SharedChunkMode, ot as WeappCompilerPluginOption, pn as WxmlAttributeValue, pr as SubPackage, pt as SubPackageMetaValue, q as PageEntry, qn as JsonMergeFunction, qt as WeappPreloadRule, rn as WeappWebRuntimeConfig, rr as NpmSubPackageConfig, rt as WeappCompilerPluginContext, sn as WxmlRemoveOptions, sr as SharedChunkOverride, st as WeappCompilerPluginPhase, tn as WeappVueConfig, tr as NpmPluginPackageConfig, tt as WeappCompilerPlugin, un as WxmlValidationDiagnostic, ur as StyleConfigObject, ut as WeappCompilerSourceRequest, vn as WxmlTransformNode, vr as WeappLibComponentJson, vt as WeappDebugConfig, wn as AliasOptions, wr as WeappLibVueTscOptions, wt as AutoImportComponents, x as WeappVitePluginApi, xn as MultiPlatformProjectConfig, xr as WeappLibEntryContext, xt as WeappTailwindcssOptions, yn as WxmlTransformResult, yr as WeappLibConfig, yt as WeappForwardConsoleConfig, z as RolldownWatcher, zn as GenerateTemplateFactory, zt as WeappInjectRequestGlobalsConfig } from "./config-Dbvj5yK7.mjs";
|
|
4
4
|
import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
|
|
5
|
-
export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, type ComputedDefinitions, type ConfigEnv, CopyGlobs, CopyOptions, DeprecatedInlineDynamicImports, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, type InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, type MethodDefinitions, MpPlatform, MultiPlatformConfig, NpmBuildOptions, NpmDependencyPattern, NpmMainPackageConfig, NpmPackageFilesConfig, NpmPluginPackageConfig, NpmStrategy, NpmSubPackageConfig, PageEntry, type Plugin, type PluginOption, ProjectConfig, type Ref, ResolvedAlias, type ResolvedConfig, type Resolver, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatchOptions, type RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, StyleConfigEntry, StyleConfigObject, StyleEntry, StyleScope, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, type ViteDevServer, WeappAnalyzeBudgetConfig, WeappAnalyzeConfig, WeappAnalyzeHistoryConfig, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappBuildScopeConfig, WeappBuildScopeObjectConfig, WeappCompilerOutputRequest, WeappCompilerPlugin, WeappCompilerPluginCapabilities, WeappCompilerPluginContext, WeappCompilerPluginController, WeappCompilerPluginFactory, WeappCompilerPluginOption, WeappCompilerPluginPhase, WeappCompilerResourceKind, WeappCompilerSourceClaim, WeappCompilerSourceRequest, WeappCompilerTransformResult, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, type WeappI18nConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappPreloadNetwork, WeappPreloadRule, WeappReactCompilerConfig, WeappReactConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappTailwindcssOptions, WeappUniAppConfig, WeappViteConfig, type WeappViteHostMeta, WeappVitePluginApi, type WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWebRuntimeConfig, WeappWevuConfig, WeappWorkerConfig, WxmlDep };
|
|
5
|
+
export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, type ComputedDefinitions, type ConfigEnv, CopyGlobs, CopyOptions, DeprecatedInlineDynamicImports, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, type InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, type MethodDefinitions, MpPlatform, MultiPlatformConfig, MultiPlatformProjectConfig, MultiPlatformProjectConfigs, NpmBuildOptions, NpmDependencyPattern, NpmMainPackageConfig, NpmPackageFilesConfig, NpmPluginPackageConfig, NpmStrategy, NpmSubPackageConfig, PageEntry, type Plugin, type PluginOption, ProjectConfig, type Ref, ResolvedAlias, type ResolvedConfig, type Resolver, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatchOptions, type RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, StyleConfigEntry, StyleConfigObject, StyleEntry, StyleScope, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, type ViteDevServer, WeappAnalyzeBudgetConfig, WeappAnalyzeConfig, WeappAnalyzeHistoryConfig, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappBuildScopeConfig, WeappBuildScopeObjectConfig, type WeappCompilerHmrAsset, type WeappCompilerHmrPreparation, type WeappCompilerHmrRequest, WeappCompilerOutputRequest, WeappCompilerPlugin, WeappCompilerPluginCapabilities, WeappCompilerPluginContext, WeappCompilerPluginController, WeappCompilerPluginFactory, WeappCompilerPluginOption, WeappCompilerPluginPhase, WeappCompilerResourceKind, WeappCompilerSourceClaim, WeappCompilerSourceRequest, WeappCompilerTransformResult, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, type WeappI18nConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappPreloadNetwork, WeappPreloadRule, WeappReactCompilerConfig, WeappReactConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappTailwindcssOptions, WeappUniAppConfig, WeappUploadConfig, WeappViteConfig, type WeappViteHostMeta, WeappVitePluginApi, type WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWebRuntimeConfig, WeappWevuConfig, WeappWorkerConfig, WxmlAttribute, WxmlAttributeValue, WxmlDep, WxmlElementInfo, WxmlRemoveAttrRule, WxmlRemoveOptions, WxmlSourceLocation, WxmlTransform, WxmlTransformContext, WxmlTransformNode, WxmlTransformResult, WxmlTransformVisitor, WxmlValidate, WxmlValidationContext, WxmlValidationDiagnostic, WxmlValidationVisitor };
|