weapp-vite 6.13.3 → 6.13.4
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 +20 -1
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +67 -40
- package/dist/{config-Dec415jY.d.mts → config-CiuNcUYK.d.mts} +6 -0
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-3UhoQl2A.mjs → createContext-Bb4OSo1-.mjs} +951 -836
- package/dist/docs/README.md +20 -1
- package/dist/docs/ai-workflows.md +17 -1
- package/dist/docs/mcp.md +33 -2
- package/dist/{file-BAUXs16l.mjs → file-Cf3pf5w7.mjs} +2 -2
- 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 +1 -1
- package/package.json +10 -10
package/dist/docs/README.md
CHANGED
|
@@ -95,10 +95,20 @@ function handleClick() {
|
|
|
95
95
|
|
|
96
96
|
- 安装依赖后,优先阅读 `node_modules/weapp-vite/dist/docs/README.md`、`node_modules/weapp-vite/dist/docs/mcp.md` 等本地版本文档
|
|
97
97
|
- CLI 同时支持 `weapp-vite` 与 `wv`
|
|
98
|
-
-
|
|
98
|
+
- 需要做小程序截图采集时,优先使用 `weapp-vite screenshot` / `wv screenshot`
|
|
99
|
+
- 需要做小程序截图对比验收时,优先使用 `weapp-vite compare` / `wv compare`
|
|
99
100
|
- 不要把小程序运行时截图退化成通用浏览器截图
|
|
100
101
|
- 需要看 DevTools 终端日志时,优先使用 `weapp-vite ide logs --open` 或 `wv ide logs --open`
|
|
101
102
|
|
|
103
|
+
推荐把下面这组意图映射写进项目根 `AGENTS.md`,让常见 AI 更稳定命中:
|
|
104
|
+
|
|
105
|
+
- 提到 `截图`、`页面快照`、`runtime screenshot`
|
|
106
|
+
- 默认使用 `weapp-vite screenshot` / `wv screenshot`
|
|
107
|
+
- 提到 `截图对比`、`diff`、`baseline`、`视觉回归`、`像素对比`
|
|
108
|
+
- 默认使用 `weapp-vite compare` / `wv compare`
|
|
109
|
+
- 提到 `运行时日志`、`DevTools 日志`
|
|
110
|
+
- 默认使用 `weapp-vite ide logs --open` / `wv ide logs --open`
|
|
111
|
+
|
|
102
112
|
`dist/docs` 当前会内置这些文件:
|
|
103
113
|
|
|
104
114
|
- `README.md`
|
|
@@ -123,6 +133,15 @@ weapp-vite screenshot --project ./dist/build/mp-weixin --page pages/index/index
|
|
|
123
133
|
wv screenshot --project ./dist/build/mp-weixin --page pages/index/index --output .tmp/acceptance.png --json
|
|
124
134
|
```
|
|
125
135
|
|
|
136
|
+
推荐的截图对比命令示例:
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
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
|
|
140
|
+
|
|
141
|
+
# 等价写法
|
|
142
|
+
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
|
|
143
|
+
```
|
|
144
|
+
|
|
126
145
|
## DevTools 日志桥接
|
|
127
146
|
|
|
128
147
|
`weapp-vite` 现在支持把微信开发者工具里的小程序 `console` 输出桥接到当前终端。
|
|
@@ -33,6 +33,7 @@ weapp-vite prepare
|
|
|
33
33
|
weapp-vite dev --open
|
|
34
34
|
weapp-vite build
|
|
35
35
|
weapp-vite screenshot --project ./dist/build/mp-weixin --page pages/index/index --output .tmp/acceptance.png --json
|
|
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
|
|
36
37
|
weapp-vite ide logs --open
|
|
37
38
|
weapp-vite mcp
|
|
38
39
|
```
|
|
@@ -44,16 +45,31 @@ wv prepare
|
|
|
44
45
|
wv dev --open
|
|
45
46
|
wv build
|
|
46
47
|
wv screenshot --project ./dist/build/mp-weixin --page pages/index/index --output .tmp/acceptance.png --json
|
|
48
|
+
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
|
|
47
49
|
wv ide logs --open
|
|
48
50
|
wv mcp
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
## 截图与日志
|
|
52
54
|
|
|
53
|
-
-
|
|
55
|
+
- 小程序截图采集优先使用 `weapp-vite screenshot` / `wv screenshot`
|
|
56
|
+
- 小程序截图对比验收优先使用 `weapp-vite compare` / `wv compare`
|
|
54
57
|
- 不要退化成普通浏览器截图来替代小程序运行时截图
|
|
55
58
|
- 查看 DevTools 终端日志优先使用 `weapp-vite ide logs --open` / `wv ide logs --open`
|
|
56
59
|
|
|
60
|
+
## AI 意图映射
|
|
61
|
+
|
|
62
|
+
当用户请求包含以下意图时,AI 应直接命中对应命令,而不是先尝试泛化的浏览器工具:
|
|
63
|
+
|
|
64
|
+
- `截图`、`截个图`、`页面快照`、`运行时截图`、`capture current page`
|
|
65
|
+
- 默认使用 `weapp-vite screenshot` / `wv screenshot`
|
|
66
|
+
- `截图对比`、`视觉回归`、`diff`、`baseline`、`像素对比`、`acceptance compare`
|
|
67
|
+
- 默认使用 `weapp-vite compare` / `wv compare`
|
|
68
|
+
- `DevTools 日志`、`运行时日志`、`小程序 console`
|
|
69
|
+
- 默认使用 `weapp-vite ide logs --open` / `wv ide logs --open`
|
|
70
|
+
|
|
71
|
+
如果目标明确是 Web runtime,而不是微信开发者工具中的小程序运行时,才改用普通浏览器截图或 Web E2E 工具。
|
|
72
|
+
|
|
57
73
|
## 推荐阅读顺序
|
|
58
74
|
|
|
59
75
|
- 项目初始化、命令和 AI 使用入口:[`getting-started.md`](./getting-started.md)
|
package/dist/docs/mcp.md
CHANGED
|
@@ -191,13 +191,26 @@ MCP 服务端做了以下约束:
|
|
|
191
191
|
|
|
192
192
|
建议在 CI 或团队环境中继续加上外层沙箱策略(容器、只读挂载、命令审计)。
|
|
193
193
|
|
|
194
|
-
## 8.
|
|
194
|
+
## 8. AI 直达工具
|
|
195
|
+
|
|
196
|
+
除了通用的 `run_weapp_vite_cli`,MCP 还提供了更适合 AI 直接命中的显式工具:
|
|
197
|
+
|
|
198
|
+
1. `take_weapp_screenshot`
|
|
199
|
+
- 用于“小程序截图 / 页面快照 / runtime screenshot”语义
|
|
200
|
+
- 等价于执行 `weapp-vite screenshot --json ...`
|
|
201
|
+
2. `compare_weapp_screenshot`
|
|
202
|
+
- 用于“截图对比 / diff / baseline / 视觉回归 / 像素对比”语义
|
|
203
|
+
- 等价于执行 `weapp-vite compare --json ...`
|
|
204
|
+
|
|
205
|
+
推荐让 AI 优先选择这两个显式工具,而不是先拼通用 CLI 参数。这样命中率和结果一致性会更高。
|
|
206
|
+
|
|
207
|
+
## 9. 故障排查
|
|
195
208
|
|
|
196
209
|
1. `weapp-vite mcp` 启动失败:先确认 Node 版本符合 `^20.19.0 || >=22.12.0`。
|
|
197
210
|
2. AI 看不到包内容:检查 `--workspace-root` 是否指向正确仓库根目录。
|
|
198
211
|
3. 命令执行失败:确认命令在白名单中,并检查子目录权限与脚本名是否存在。
|
|
199
212
|
|
|
200
|
-
##
|
|
213
|
+
## 10. 示例:AI 驱动 weapp-vite screenshot 验收
|
|
201
214
|
|
|
202
215
|
下面给一个简化版示例:只给 AI 一段提示词,让它通过 MCP 自动执行构建与截图验收。
|
|
203
216
|
|
|
@@ -228,3 +241,21 @@ MCP 服务端做了以下约束:
|
|
|
228
241
|
1. AI 输出 `screenshot-ok`。
|
|
229
242
|
2. 工作区生成 `.tmp/mcp-screenshot.png`。
|
|
230
243
|
3. AI 输出本次验收摘要(命令、关键日志、结论)。
|
|
244
|
+
|
|
245
|
+
## 11. 示例:AI 驱动 screenshot compare 验收
|
|
246
|
+
|
|
247
|
+
如果提示词里出现“截图对比 / baseline / diff / 视觉回归”,应优先让 AI 使用 `compare_weapp_screenshot`,或退回到 `weapp-vite compare`。
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
你现在连接的是 weapp-vite MCP。请帮我完成一次小程序截图对比验收:
|
|
251
|
+
1. 先阅读 node_modules/weapp-vite/dist/docs/index.md、node_modules/weapp-vite/dist/docs/ai-workflows.md 和 node_modules/weapp-vite/dist/docs/mcp.md。
|
|
252
|
+
2. 构建 e2e-apps/auto-routes-define-app-json(platform=weapp)。
|
|
253
|
+
3. 执行截图对比:
|
|
254
|
+
- projectPath: e2e-apps/auto-routes-define-app-json/dist/build/mp-weixin
|
|
255
|
+
- page: pages/home/index
|
|
256
|
+
- baselinePath: .screenshots/baseline/home.png
|
|
257
|
+
- diffOutputPath: .tmp/mcp-home.diff.png
|
|
258
|
+
- maxDiffPixels: 100
|
|
259
|
+
4. 如果命令通过,输出 compare-ok;如果对比失败,输出 compare-failed。
|
|
260
|
+
5. 最后汇总:执行命令、关键输出、最终结论。
|
|
261
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
+
import { fs } from "@weapp-core/shared";
|
|
3
4
|
import path from "pathe";
|
|
4
|
-
import fs from "fs-extra";
|
|
5
5
|
import { parse } from "vue/compiler-sfc";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { recursive } from "merge";
|
|
@@ -102,7 +102,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
102
102
|
}
|
|
103
103
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
104
104
|
try {
|
|
105
|
-
const { getCompilerContext } = await import("./createContext-
|
|
105
|
+
const { getCompilerContext } = await import("./createContext-Bb4OSo1-.mjs").then((n) => n.a);
|
|
106
106
|
const compilerContext = getCompilerContext();
|
|
107
107
|
const service = compilerContext.autoRoutesService;
|
|
108
108
|
const reference = service?.getReference?.();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Ref, An as createWeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, Dn as WeappViteHostMeta, E as InlineConfig, En as WEAPP_VITE_HOST_NAME, F as RolldownPlugin, I as RolldownPluginOption, L as RolldownWatchOptions, M as RolldownBuild, Mn as resolveWeappViteHostMeta, N as RolldownOptions, O as Plugin, On as WeappViteRuntime, P as RolldownOutput, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, jn as isWeappViteHost, k as PluginOption, kn as applyWeappViteHostMeta, 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, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-
|
|
1
|
+
import { A as Ref, An as createWeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, Dn as WeappViteHostMeta, E as InlineConfig, En as WEAPP_VITE_HOST_NAME, F as RolldownPlugin, I as RolldownPluginOption, L as RolldownWatchOptions, M as RolldownBuild, Mn as resolveWeappViteHostMeta, N as RolldownOptions, O as Plugin, On as WeappViteRuntime, P as RolldownOutput, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, jn as isWeappViteHost, k as PluginOption, kn as applyWeappViteHostMeta, 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, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-CiuNcUYK.mjs";
|
|
2
2
|
import { a as createWevuComponent, i as WevuComponentOptions, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-CpQutkhu.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/createContext.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAppJson, defineComponentJson, definePageJson, defineSitemapJson, defineThemeJson } from "./json.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 { defineConfig } from "./config.mjs";
|
|
4
|
-
import { t as createCompilerContext } from "./createContext-
|
|
4
|
+
import { t as createCompilerContext } from "./createContext-Bb4OSo1-.mjs";
|
|
5
5
|
import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-gyZnAGCZ.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-CiuNcUYK.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 { _t as WeappMcpConfig } from "./config-
|
|
1
|
+
import { _t as WeappMcpConfig } from "./config-CiuNcUYK.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-CUFOUU8V.mjs";
|
|
2
2
|
import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-o20IHwXa.mjs";
|
|
3
|
-
import { $ as WeappDebugConfig, $t as NpmBuildOptions, A as Ref, At as ChunksConfig, B as BindingErrorLike, Bt as GenerateTemplateEntry, Cn as WeappManagedSharedTsconfigConfig, Ct as WeappVueTemplateConfig, D as MethodDefinitions, Dn as WeappViteHostMeta, Dt as AliasOptions, E as InlineConfig, Et as Alias, F as RolldownPlugin, Ft as GenerateFileType, G as EntryJsonFragment, Gt as GenerateTemplatesConfig, H as BaseEntry, Ht as GenerateTemplateFileSource, I as RolldownPluginOption, It as GenerateFilenamesOptions, J as ScanComponentItem, Jt as JsonMergeContext, K as PageEntry, Kt as JsFormat, L as RolldownWatchOptions, Lt as GenerateOptions, M as RolldownBuild, Mt as CopyOptions, N as RolldownOptions, Nt as GenerateDirsOptions, O as Plugin, On as WeappViteRuntime, Ot as AlipayNpmMode, P as RolldownOutput, Pt as GenerateExtensionsOptions, Q as UserConfig, Qt as MpPlatform, R as RolldownWatcher, Rt as GenerateTemplate, Sn as WeappManagedServerTsconfigConfig, St as WeappVueConfig, T as ConfigEnv, Tn as WeappWebConfig, Tt as WeappWorkerConfig, U as ComponentEntry, Ut as GenerateTemplateInlineSource, V as AppEntry, Vt as GenerateTemplateFactory, W as Entry, Wt as GenerateTemplateScope, X as ProjectConfig, Xt as JsonMergeStage, Y as WxmlDep, Yt as JsonMergeFunction, Z as SubPackageMetaValue, Zt as JsonMergeStrategy, _n as WeappLibFileName, _t as WeappMcpConfig, an as SharedChunkMode, at as EnhanceOptions, b as ChangeEvent, bn as WeappManagedAppTsconfigConfig, bt as WeappRouteRules, cn as SubPackage, ct as MultiPlatformConfig, dn as SubPackageStyleEntry, dt as WeappAutoRoutesInclude, en as NpmMainPackageConfig, et as WeappForwardConsoleConfig, fn as SubPackageStyleScope, ft as WeappAutoRoutesIncludePattern, gn as WeappLibEntryContext, gt as WeappInjectWeapiConfig, hn as WeappLibDtsOptions, ht as WeappInjectRequestGlobalsTarget, in as SharedChunkDynamicImports, it as AutoImportComponentsOption, j as ResolvedConfig, jt as CopyGlobs, k as PluginOption, kt as BuildNpmPackageMeta, ln as SubPackageStyleConfigEntry, lt as ScanWxmlOptions, mn as WeappLibConfig, mt as WeappInjectRequestGlobalsConfig, nn as NpmSubPackageConfig, nt as WeappViteConfig, on as SharedChunkOverride, ot as EnhanceWxmlOptions, pn as WeappLibComponentJson, pt as WeappHmrConfig, q as ComponentsMap, qt as JsonConfig, rn as ResolvedAlias, rt as AutoImportComponents, sn as SharedChunkStrategy, st as HandleWxmlOptions, tn as NpmPluginPackageConfig, tt as WeappForwardConsoleLogLevel, un as SubPackageStyleConfigObject, ut as WeappAutoRoutesConfig, vn as WeappLibInternalDtsOptions, vt as WeappNpmConfig, w as ComputedDefinitions, wn as WeappManagedTypeScriptConfig, wt as WeappWevuConfig, x as WeappVitePluginApi, xn as WeappManagedNodeTsconfigConfig, xt as WeappSubPackageConfig, yn as WeappLibVueTscOptions, yt as WeappRouteRule, z as ViteDevServer, zt as GenerateTemplateContext } from "./config-
|
|
3
|
+
import { $ as WeappDebugConfig, $t as NpmBuildOptions, A as Ref, At as ChunksConfig, B as BindingErrorLike, Bt as GenerateTemplateEntry, Cn as WeappManagedSharedTsconfigConfig, Ct as WeappVueTemplateConfig, D as MethodDefinitions, Dn as WeappViteHostMeta, Dt as AliasOptions, E as InlineConfig, Et as Alias, F as RolldownPlugin, Ft as GenerateFileType, G as EntryJsonFragment, Gt as GenerateTemplatesConfig, H as BaseEntry, Ht as GenerateTemplateFileSource, I as RolldownPluginOption, It as GenerateFilenamesOptions, J as ScanComponentItem, Jt as JsonMergeContext, K as PageEntry, Kt as JsFormat, L as RolldownWatchOptions, Lt as GenerateOptions, M as RolldownBuild, Mt as CopyOptions, N as RolldownOptions, Nt as GenerateDirsOptions, O as Plugin, On as WeappViteRuntime, Ot as AlipayNpmMode, P as RolldownOutput, Pt as GenerateExtensionsOptions, Q as UserConfig, Qt as MpPlatform, R as RolldownWatcher, Rt as GenerateTemplate, Sn as WeappManagedServerTsconfigConfig, St as WeappVueConfig, T as ConfigEnv, Tn as WeappWebConfig, Tt as WeappWorkerConfig, U as ComponentEntry, Ut as GenerateTemplateInlineSource, V as AppEntry, Vt as GenerateTemplateFactory, W as Entry, Wt as GenerateTemplateScope, X as ProjectConfig, Xt as JsonMergeStage, Y as WxmlDep, Yt as JsonMergeFunction, Z as SubPackageMetaValue, Zt as JsonMergeStrategy, _n as WeappLibFileName, _t as WeappMcpConfig, an as SharedChunkMode, at as EnhanceOptions, b as ChangeEvent, bn as WeappManagedAppTsconfigConfig, bt as WeappRouteRules, cn as SubPackage, ct as MultiPlatformConfig, dn as SubPackageStyleEntry, dt as WeappAutoRoutesInclude, en as NpmMainPackageConfig, et as WeappForwardConsoleConfig, fn as SubPackageStyleScope, ft as WeappAutoRoutesIncludePattern, gn as WeappLibEntryContext, gt as WeappInjectWeapiConfig, hn as WeappLibDtsOptions, ht as WeappInjectRequestGlobalsTarget, in as SharedChunkDynamicImports, it as AutoImportComponentsOption, j as ResolvedConfig, jt as CopyGlobs, k as PluginOption, kt as BuildNpmPackageMeta, ln as SubPackageStyleConfigEntry, lt as ScanWxmlOptions, mn as WeappLibConfig, mt as WeappInjectRequestGlobalsConfig, nn as NpmSubPackageConfig, nt as WeappViteConfig, on as SharedChunkOverride, ot as EnhanceWxmlOptions, pn as WeappLibComponentJson, pt as WeappHmrConfig, q as ComponentsMap, qt as JsonConfig, rn as ResolvedAlias, rt as AutoImportComponents, sn as SharedChunkStrategy, st as HandleWxmlOptions, tn as NpmPluginPackageConfig, tt as WeappForwardConsoleLogLevel, un as SubPackageStyleConfigObject, ut as WeappAutoRoutesConfig, vn as WeappLibInternalDtsOptions, vt as WeappNpmConfig, w as ComputedDefinitions, wn as WeappManagedTypeScriptConfig, wt as WeappWevuConfig, x as WeappVitePluginApi, xn as WeappManagedNodeTsconfigConfig, xt as WeappSubPackageConfig, yn as WeappLibVueTscOptions, yt as WeappRouteRule, z as ViteDevServer, zt as GenerateTemplateContext } from "./config-CiuNcUYK.mjs";
|
|
4
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, NpmMainPackageConfig, NpmPluginPackageConfig, 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, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappViteConfig, WeappViteHostMeta, WeappVitePluginApi, WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, 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.13.
|
|
4
|
+
"version": "6.13.4",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
"comment-json": "^4.6.2",
|
|
99
99
|
"debug": "^4.4.3",
|
|
100
100
|
"fdir": "^6.5.0",
|
|
101
|
-
"fs-extra": "^11.3.4",
|
|
102
101
|
"htmlparser2": "^12.0.0",
|
|
103
102
|
"local-pkg": "^1.1.2",
|
|
104
103
|
"lru-cache": "^11.2.7",
|
|
@@ -117,20 +116,21 @@
|
|
|
117
116
|
"vite-tsconfig-paths": "^6.1.1",
|
|
118
117
|
"vue": "^3.5.32",
|
|
119
118
|
"vue-tsc": "^3.2.6",
|
|
120
|
-
"@weapp-core/init": "6.0.
|
|
119
|
+
"@weapp-core/init": "6.0.6",
|
|
121
120
|
"@weapp-core/logger": "3.1.1",
|
|
122
121
|
"@weapp-core/schematics": "6.0.4",
|
|
123
|
-
"@weapp-core/shared": "3.0.
|
|
124
|
-
"@weapp-vite/ast": "6.13.
|
|
125
|
-
"@weapp-vite/mcp": "1.
|
|
122
|
+
"@weapp-core/shared": "3.0.3",
|
|
123
|
+
"@weapp-vite/ast": "6.13.4",
|
|
124
|
+
"@weapp-vite/mcp": "1.2.0",
|
|
126
125
|
"@weapp-vite/volar": "2.0.8",
|
|
127
|
-
"@weapp-vite/
|
|
126
|
+
"@weapp-vite/miniprogram-automator": "1.0.1",
|
|
127
|
+
"@weapp-vite/web": "1.3.11",
|
|
128
128
|
"@wevu/api": "0.2.2",
|
|
129
129
|
"@wevu/web-apis": "1.1.0",
|
|
130
130
|
"rolldown-require": "2.0.12",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
131
|
+
"weapp-ide-cli": "5.2.0",
|
|
132
|
+
"wevu": "6.13.4",
|
|
133
|
+
"vite-plugin-performance": "2.0.1"
|
|
134
134
|
},
|
|
135
135
|
"publishConfig": {
|
|
136
136
|
"access": "public",
|