weapp-vite 6.16.0 → 6.16.2
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 +17 -3
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +961 -52
- package/dist/{config-BKXx-hW-.d.mts → config-BiVvWW9d.d.mts} +60 -1
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-C-05IQc1.mjs → createContext-D69xinBq.mjs} +298 -68
- package/dist/docs/README.md +17 -3
- package/dist/docs/ai-workflows.md +19 -0
- package/dist/docs/mcp.md +23 -5
- package/dist/docs/weapp-config.md +28 -0
- package/dist/file-C0XHk9ks.mjs +2 -0
- package/dist/{file-BC_RNbAI.mjs → file-Dnwa6tm_.mjs} +1 -1
- package/dist/getInstance-GyYMx1dz.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/types.d.mts +2 -2
- package/package.json +5 -5
- package/dist/file-djYgQoCM.mjs +0 -2
- package/dist/getInstance-BzppVHkY.mjs +0 -2
package/dist/docs/README.md
CHANGED
|
@@ -261,7 +261,7 @@ weapp-vite dev --open
|
|
|
261
261
|
|
|
262
262
|
## CLI 中调用 weapp-ide-cli
|
|
263
263
|
|
|
264
|
-
`weapp-vite` 内置了对 `weapp-ide-cli` 的透传能力,除了 `dev/build/open/init/generate/analyze/npm` 等原生命令外,其它 IDE 相关命令都可以直接调用:
|
|
264
|
+
`weapp-vite` 内置了对 `weapp-ide-cli` 的透传能力,除了 `dev/build/close/open/init/generate/analyze/npm/prepare/mcp` 等原生命令外,其它 IDE 相关命令都可以直接调用:
|
|
265
265
|
|
|
266
266
|
```sh
|
|
267
267
|
weapp-vite preview --project ./dist/build/mp-weixin
|
|
@@ -300,12 +300,26 @@ wv mcp init claude-code
|
|
|
300
300
|
wv mcp init cursor
|
|
301
301
|
```
|
|
302
302
|
|
|
303
|
+
只预览配置、不写入:
|
|
304
|
+
|
|
305
|
+
```sh
|
|
306
|
+
wv mcp print codex
|
|
307
|
+
```
|
|
308
|
+
|
|
303
309
|
检查配置是否可用:
|
|
304
310
|
|
|
305
311
|
```sh
|
|
306
312
|
wv mcp doctor codex
|
|
307
313
|
```
|
|
308
314
|
|
|
315
|
+
如果已经手动启动 HTTP MCP 服务:
|
|
316
|
+
|
|
317
|
+
```sh
|
|
318
|
+
wv mcp init codex --transport http --url http://127.0.0.1:3088/mcp
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
接入后,AI 可以直接使用 `take_weapp_screenshot`、`compare_weapp_screenshot`,也可以用 `weapp_devtools_connect`、`weapp_devtools_route`、`weapp_devtools_capture`、`weapp_devtools_console` 与 `weapp_runtime_*` 工具检查真实小程序运行时。
|
|
322
|
+
|
|
309
323
|
仍然需要手动启动 MCP Server 时:
|
|
310
324
|
|
|
311
325
|
```sh
|
|
@@ -317,9 +331,9 @@ wv mcp
|
|
|
317
331
|
指定工作区根路径:
|
|
318
332
|
|
|
319
333
|
```sh
|
|
320
|
-
weapp-vite mcp --workspace-root
|
|
334
|
+
weapp-vite mcp --workspace-root <repo-root>
|
|
321
335
|
# 等价写法
|
|
322
|
-
wv mcp --workspace-root
|
|
336
|
+
wv mcp --workspace-root <repo-root>
|
|
323
337
|
```
|
|
324
338
|
|
|
325
339
|
在 `vite.config.ts` 或 `weapp-vite.config.ts` 中开启自动启动:
|
|
@@ -36,6 +36,8 @@ weapp-vite screenshot --project ./dist/build/mp-weixin --page pages/index/index
|
|
|
36
36
|
weapp-vite compare --project ./dist/build/mp-weixin --page pages/index/index --baseline .screenshots/baseline/index.png --diff-output .tmp/index.diff.png --max-diff-pixels 100 --json
|
|
37
37
|
weapp-vite ide logs --open
|
|
38
38
|
weapp-vite mcp
|
|
39
|
+
weapp-vite mcp init codex
|
|
40
|
+
weapp-vite mcp doctor codex
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
等价写法:
|
|
@@ -48,8 +50,25 @@ wv screenshot --project ./dist/build/mp-weixin --page pages/index/index --output
|
|
|
48
50
|
wv compare --project ./dist/build/mp-weixin --page pages/index/index --baseline .screenshots/baseline/index.png --diff-output .tmp/index.diff.png --max-diff-pixels 100 --json
|
|
49
51
|
wv ide logs --open
|
|
50
52
|
wv mcp
|
|
53
|
+
wv mcp init codex
|
|
54
|
+
wv mcp doctor codex
|
|
51
55
|
```
|
|
52
56
|
|
|
57
|
+
`wv mcp` 既可以启动服务,也可以管理 AI 客户端配置:
|
|
58
|
+
|
|
59
|
+
- `wv mcp init <codex|claude-code|cursor>`:写入客户端配置。
|
|
60
|
+
- `wv mcp print <codex|claude-code|cursor>`:只打印配置预览。
|
|
61
|
+
- `wv mcp doctor <codex|claude-code|cursor>`:检查配置。
|
|
62
|
+
- `wv mcp init codex --transport http --url http://127.0.0.1:3088/mcp`:为已启动的 HTTP MCP 服务生成客户端配置。
|
|
63
|
+
|
|
64
|
+
当 MCP 客户端已经接入后,优先使用这些真实小程序运行时工具:
|
|
65
|
+
|
|
66
|
+
- `take_weapp_screenshot` / `compare_weapp_screenshot`:截图与截图对比。
|
|
67
|
+
- `weapp_devtools_connect` / `weapp_devtools_route` / `weapp_devtools_capture` / `weapp_devtools_console`:连接 DevTools、切路由、截图、读日志。
|
|
68
|
+
- `weapp_runtime_find_node` / `weapp_runtime_page_state` / `weapp_runtime_component_state`:检查页面结构、页面 data 与组件 data。
|
|
69
|
+
|
|
70
|
+
提示词可以直接点名 `inspect-mini-program-page` 或 `recover-mini-program-connection`,让 AI 按固定顺序检查页面或恢复 automator 连接。
|
|
71
|
+
|
|
53
72
|
## 截图与日志
|
|
54
73
|
|
|
55
74
|
- 小程序截图采集优先使用 `weapp-vite screenshot` / `wv screenshot`
|
package/dist/docs/mcp.md
CHANGED
|
@@ -138,7 +138,7 @@ weapp-vite mcp
|
|
|
138
138
|
可选指定工作区根路径:
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
|
-
weapp-vite mcp --workspace-root
|
|
141
|
+
weapp-vite mcp --workspace-root <repo-root>
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
以 HTTP 方式手动启动:
|
|
@@ -203,7 +203,7 @@ await handle.close?.()
|
|
|
203
203
|
"args": [
|
|
204
204
|
"mcp",
|
|
205
205
|
"--workspace-root",
|
|
206
|
-
"
|
|
206
|
+
"<repo-root>"
|
|
207
207
|
]
|
|
208
208
|
}
|
|
209
209
|
}
|
|
@@ -221,6 +221,22 @@ await handle.close?.()
|
|
|
221
221
|
5. `run_package_script`
|
|
222
222
|
6. `run_weapp_vite_cli`
|
|
223
223
|
7. `run_repo_command`
|
|
224
|
+
8. `take_weapp_screenshot`
|
|
225
|
+
9. `compare_weapp_screenshot`
|
|
226
|
+
10. `weapp_devtools_connect`
|
|
227
|
+
11. `weapp_devtools_route`
|
|
228
|
+
12. `weapp_devtools_active_page`
|
|
229
|
+
13. `weapp_devtools_page_stack`
|
|
230
|
+
14. `weapp_devtools_capture`
|
|
231
|
+
15. `weapp_devtools_host_api`
|
|
232
|
+
16. `weapp_devtools_console`
|
|
233
|
+
17. `weapp_runtime_find_node` / `weapp_runtime_find_nodes` / `weapp_runtime_wait_node`
|
|
234
|
+
18. `weapp_runtime_wait`
|
|
235
|
+
19. `weapp_runtime_page_state` / `weapp_runtime_update_page_state` / `weapp_runtime_invoke_page`
|
|
236
|
+
20. `weapp_runtime_tap_node` / `weapp_runtime_input_node`
|
|
237
|
+
21. `weapp_runtime_component_state` / `weapp_runtime_update_component_state` / `weapp_runtime_invoke_component`
|
|
238
|
+
22. `weapp_runtime_find_child` / `weapp_runtime_find_children`
|
|
239
|
+
23. `weapp_runtime_node_markup` / `weapp_runtime_node_styles` / `weapp_runtime_node_attrs` / `weapp_runtime_scroll_node` / `weapp_runtime_measure_node`
|
|
224
240
|
|
|
225
241
|
建议使用顺序:
|
|
226
242
|
|
|
@@ -245,6 +261,8 @@ await handle.close?.()
|
|
|
245
261
|
|
|
246
262
|
1. `plan-weapp-vite-change`
|
|
247
263
|
2. `debug-wevu-runtime`
|
|
264
|
+
3. `inspect-mini-program-page`
|
|
265
|
+
4. `recover-mini-program-connection`
|
|
248
266
|
|
|
249
267
|
典型用途:
|
|
250
268
|
|
|
@@ -291,7 +309,7 @@ MCP 服务端做了以下约束:
|
|
|
291
309
|
1. 客户端已接入 `weapp-vite` MCP。
|
|
292
310
|
2. 微信开发者工具已登录,并开启「设置 -> 安全设置 -> 服务端口」。
|
|
293
311
|
|
|
294
|
-
###
|
|
312
|
+
### 11.1 可直接复制的提示词
|
|
295
313
|
|
|
296
314
|
```text
|
|
297
315
|
你现在连接的是 weapp-vite MCP。请帮我完成一次小程序截图验收:
|
|
@@ -308,13 +326,13 @@ MCP 服务端做了以下约束:
|
|
|
308
326
|
5. 最后汇总:执行命令、关键输出、最终结论。
|
|
309
327
|
```
|
|
310
328
|
|
|
311
|
-
###
|
|
329
|
+
### 11.2 期望结果
|
|
312
330
|
|
|
313
331
|
1. AI 输出 `screenshot-ok`。
|
|
314
332
|
2. 工作区生成 `.tmp/mcp-screenshot.png`。
|
|
315
333
|
3. AI 输出本次验收摘要(命令、关键日志、结论)。
|
|
316
334
|
|
|
317
|
-
##
|
|
335
|
+
## 12. 示例:AI 驱动 screenshot compare 验收
|
|
318
336
|
|
|
319
337
|
如果提示词里出现“截图对比 / baseline / diff / 视觉回归”,应优先让 AI 使用 `compare_weapp_screenshot`,或退回到 `weapp-vite compare`。
|
|
320
338
|
|
|
@@ -55,6 +55,34 @@ export default defineConfig({
|
|
|
55
55
|
|
|
56
56
|
不要在 `srcRoot`、路由来源、分包边界都没确认前就先调 chunk 策略。
|
|
57
57
|
|
|
58
|
+
### `hmr.logLevel` / `hmr.profileJson`
|
|
59
|
+
|
|
60
|
+
排查开发态热更新慢、共享 chunk 回退或 DevTools 热重载不稳定时,可以临时打开:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
export default defineConfig({
|
|
64
|
+
weapp: {
|
|
65
|
+
hmr: {
|
|
66
|
+
logLevel: 'concise',
|
|
67
|
+
profileJson: '.tmp/weapp-vite-hmr-profile.jsonl',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
})
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- `logLevel: 'default' | 'concise' | 'verbose'` 控制终端诊断详细程度。
|
|
74
|
+
- `profileJson: boolean | string` 控制是否输出 JSONL profile,字符串表示自定义输出路径。
|
|
75
|
+
|
|
76
|
+
### `mcp`
|
|
77
|
+
|
|
78
|
+
`weapp.mcp` 默认启用,但默认不自动启动服务。AI 客户端接入优先走 CLI:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
wv mcp init codex
|
|
82
|
+
wv mcp print codex
|
|
83
|
+
wv mcp doctor codex
|
|
84
|
+
```
|
|
85
|
+
|
|
58
86
|
## CLI 与 IDE 命令
|
|
59
87
|
|
|
60
88
|
`weapp-vite` 原生命令优先,IDE 相关命令通过 `weapp-ide-cli` 透传。
|
|
@@ -84,7 +84,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
84
84
|
}
|
|
85
85
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
86
86
|
try {
|
|
87
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
87
|
+
const { getCompilerContext } = await import("./getInstance-GyYMx1dz.mjs");
|
|
88
88
|
const compilerContext = getCompilerContext();
|
|
89
89
|
const service = compilerContext.autoRoutesService;
|
|
90
90
|
const reference = service?.getReference?.();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Ref, Bn as
|
|
1
|
+
import { A as Ref, Bn as applyWeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Hn as isWeappViteHost, I as RolldownPluginOption, L as RolldownWatchOptions, Ln as WEAPP_VITE_HOST_NAME, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, R as RolldownWatcher, Rn as WeappViteHostMeta, S as CompilerContext, T as ConfigEnv, Un as resolveWeappViteHostMeta, Vn as createWeappViteHostMeta, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as WeappViteRuntime } from "./config-BiVvWW9d.mjs";
|
|
2
2
|
import { a as createWevuComponent, i as WevuComponentOptions, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-DSLk7kWi.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/createContext.d.ts
|
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-D0HkutE0.mjs";
|
|
2
2
|
import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost-SJdl15d3.mjs";
|
|
3
3
|
import { t as defineConfig } from "./config-DJjSbpNX.mjs";
|
|
4
|
-
import { t as createCompilerContext } from "./createContext-
|
|
4
|
+
import { t as createCompilerContext } from "./createContext-D69xinBq.mjs";
|
|
5
5
|
import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-DN3lxU9s.mjs";
|
|
6
6
|
export { WEAPP_VITE_HOST_NAME, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta, setPageLayout };
|
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-BiVvWW9d.mjs";
|
|
2
2
|
export { App, Component, Page, Sitemap, 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-BiVvWW9d.mjs";
|
|
2
2
|
import { CreateServerOptions, DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, McpServerHandle, StartMcpServerOptions, createWeappViteMcpServer } from "@weapp-vite/mcp";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as Resolver } from "./index-C1yQldy3.mjs";
|
|
2
2
|
import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-DiEBrMtj.mjs";
|
|
3
|
-
import { $ as
|
|
4
|
-
export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, ComputedDefinitions, ConfigEnv, CopyGlobs, CopyOptions, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, MethodDefinitions, MpPlatform, MultiPlatformConfig, NpmBuildOptions, NpmDependencyPattern, NpmMainPackageConfig, NpmPluginPackageConfig, NpmStrategy, NpmSubPackageConfig, PageEntry, Plugin, PluginOption, ProjectConfig, Ref, ResolvedAlias, ResolvedConfig, Resolver, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatchOptions, RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, ViteDevServer, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappViteConfig, WeappViteHostMeta, WeappVitePluginApi, WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWebRuntimeConfig, WeappWevuConfig, WeappWorkerConfig, WxmlDep };
|
|
3
|
+
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateTemplateScope, A as Ref, An as WeappLibVueTscOptions, At as WeappVueConfig, B as BindingErrorLike, Bt as CopyGlobs, Cn as SubPackageStyleScope, Ct as WeappInjectWebRuntimeGlobalsTarget, D as MethodDefinitions, Dn as WeappLibEntryContext, Dt as WeappRouteRule, E as InlineConfig, En as WeappLibDtsOptions, Et as WeappRequestRuntimeConfig, F as RolldownPlugin, Fn as WeappManagedTypeScriptConfig, Ft as Alias, G as EntryJsonFragment, Gt as GenerateFilenamesOptions, H as BaseEntry, Ht as GenerateDirsOptions, I as RolldownPluginOption, In as WeappWebConfig, It as AliasOptions, J as ScanComponentItem, Jt as GenerateTemplateContext, K as PageEntry, Kt as GenerateOptions, L as RolldownWatchOptions, Lt as AlipayNpmMode, M as RolldownBuild, Mn as WeappManagedNodeTsconfigConfig, Mt as WeappWebRuntimeConfig, N as RolldownOptions, Nn as WeappManagedServerTsconfigConfig, Nt as WeappWevuConfig, O as Plugin, On as WeappLibFileName, Ot as WeappRouteRules, P as RolldownOutput, Pn as WeappManagedSharedTsconfigConfig, Pt as WeappWorkerConfig, Q as UserConfig, Qt as GenerateTemplateInlineSource, R as RolldownWatcher, Rn as WeappViteHostMeta, Rt as BuildNpmPackageMeta, Sn as SubPackageStyleEntry, St as WeappInjectWebRuntimeGlobalsConfig, T as ConfigEnv, Tn as WeappLibConfig, Tt as WeappNpmConfig, U as ComponentEntry, Ut as GenerateExtensionsOptions, V as AppEntry, Vt as CopyOptions, W as Entry, Wt as GenerateFileType, X as ProjectConfig, Xt as GenerateTemplateFactory, Y as WxmlDep, Yt as GenerateTemplateEntry, Z as SubPackageMetaValue, Zt as GenerateTemplateFileSource, _n as SharedChunkOverride, _t as WeappAutoRoutesIncludePattern, an as JsonMergeStage, at as WeappViteConfig, b as ChangeEvent, bn as SubPackageStyleConfigEntry, bt as WeappInjectRequestGlobalsTarget, cn as NpmBuildOptions, ct as EnhanceOptions, dn as NpmPluginPackageConfig, dt as MultiPlatformConfig, en as GenerateTemplatesConfig, et as WeappAnalyzeConfig, fn as NpmStrategy, ft as ScanWxmlOptions, gn as SharedChunkMode, gt as WeappAutoRoutesInclude, hn as SharedChunkDynamicImports, ht as WeappAutoRoutesConfig, in as JsonMergeFunction, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappManagedAppTsconfigConfig, jt as WeappVueTemplateConfig, k as PluginOption, kn as WeappLibInternalDtsOptions, kt as WeappSubPackageConfig, ln as NpmDependencyPattern, lt as EnhanceWxmlOptions, mn as ResolvedAlias, mt as WeappAppPreludeMode, nn as JsonConfig, nt as WeappDebugConfig, on as JsonMergeStrategy, ot as AutoImportComponents, pn as NpmSubPackageConfig, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateTemplate, rn as JsonMergeContext, rt as WeappForwardConsoleConfig, sn as MpPlatform, st as AutoImportComponentsOption, tn as JsFormat, tt as WeappAnalyzeHistoryConfig, un as NpmMainPackageConfig, ut as HandleWxmlOptions, vn as SharedChunkStrategy, vt as WeappHmrConfig, w as ComputedDefinitions, wn as WeappLibComponentJson, wt as WeappMcpConfig, x as WeappVitePluginApi, xn as SubPackageStyleConfigObject, xt as WeappInjectWeapiConfig, yn as SubPackage, yt as WeappInjectRequestGlobalsConfig, z as ViteDevServer, zn as WeappViteRuntime, zt as ChunksConfig } from "./config-BiVvWW9d.mjs";
|
|
4
|
+
export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, ComputedDefinitions, ConfigEnv, CopyGlobs, CopyOptions, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, MethodDefinitions, MpPlatform, MultiPlatformConfig, NpmBuildOptions, NpmDependencyPattern, NpmMainPackageConfig, NpmPluginPackageConfig, NpmStrategy, NpmSubPackageConfig, PageEntry, Plugin, PluginOption, ProjectConfig, Ref, ResolvedAlias, ResolvedConfig, Resolver, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatchOptions, RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, ViteDevServer, WeappAnalyzeBudgetConfig, WeappAnalyzeConfig, WeappAnalyzeHistoryConfig, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappViteConfig, WeappViteHostMeta, WeappVitePluginApi, WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWebRuntimeConfig, WeappWevuConfig, WeappWorkerConfig, WxmlDep };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.16.
|
|
4
|
+
"version": "6.16.2",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"package-manager-detector": "^1.6.0",
|
|
109
109
|
"pathe": "^2.0.3",
|
|
110
110
|
"picomatch": "^4.0.4",
|
|
111
|
-
"postcss": "^8.5.
|
|
111
|
+
"postcss": "^8.5.13",
|
|
112
112
|
"rolldown": "1.0.0-rc.17",
|
|
113
113
|
"rolldown-plugin-dts": "0.23.2",
|
|
114
114
|
"semver": "^7.7.4",
|
|
@@ -122,17 +122,17 @@
|
|
|
122
122
|
"@weapp-core/logger": "3.1.1",
|
|
123
123
|
"@weapp-core/schematics": "6.0.4",
|
|
124
124
|
"@weapp-core/shared": "3.0.4",
|
|
125
|
-
"@weapp-vite/ast": "6.16.
|
|
125
|
+
"@weapp-vite/ast": "6.16.2",
|
|
126
126
|
"@weapp-vite/mcp": "1.3.0",
|
|
127
127
|
"@weapp-vite/miniprogram-automator": "1.0.4",
|
|
128
128
|
"@weapp-vite/volar": "2.1.0",
|
|
129
|
+
"@weapp-vite/web": "1.3.19",
|
|
129
130
|
"@wevu/api": "0.2.6",
|
|
130
131
|
"@wevu/web-apis": "1.2.10",
|
|
131
132
|
"rolldown-require": "2.0.15",
|
|
132
133
|
"vite-plugin-performance": "2.0.1",
|
|
133
134
|
"weapp-ide-cli": "5.2.7",
|
|
134
|
-
"wevu": "6.16.
|
|
135
|
-
"@weapp-vite/web": "1.3.19"
|
|
135
|
+
"wevu": "6.16.2"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": {
|
|
138
138
|
"access": "public",
|
package/dist/file-djYgQoCM.mjs
DELETED