weapp-vite 6.20.0 → 6.20.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 +6 -0
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +230 -42
- package/dist/{config-ClSNHsDH.d.mts → config-C810aRQQ.d.mts} +2 -0
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-CtCNbqdC.mjs → createContext-DiBG4uOB.mjs} +215 -111
- package/dist/docs/README.md +6 -0
- package/dist/docs/ai-workflows.md +1 -0
- package/dist/docs/troubleshooting.md +2 -0
- package/dist/{file-NyBgGJm2.mjs → file-DQ5FlYd5.mjs} +60 -16
- package/dist/file-_4iQaFyw.mjs +2 -0
- package/dist/getInstance-COmUPo24.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/test.mjs +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +16 -16
- package/dist/file-CQTcjEWz.mjs +0 -2
- package/dist/getInstance-DkRC6-mO.mjs +0 -2
package/dist/docs/README.md
CHANGED
|
@@ -219,8 +219,14 @@ weapp-vite ide logs --open
|
|
|
219
219
|
# 等价写法
|
|
220
220
|
wv ide logs
|
|
221
221
|
wv ide logs --open
|
|
222
|
+
|
|
223
|
+
# 检查 DevTools CLI、服务端口、登录和已打开 automator 会话
|
|
224
|
+
wv ide doctor
|
|
225
|
+
wv ide doctor --json
|
|
222
226
|
```
|
|
223
227
|
|
|
228
|
+
`wv open`、`wv dev -o`、`wv build -o` 和 `wv ide logs --open` 默认使用官方 CLI 打开项目,再连接 automator。需要调试旧版自动化启动链路时,可显式传入 `--ide-open-strategy automator`;项目自动信任与打开策略相互独立。
|
|
229
|
+
|
|
224
230
|
除了日志桥接,`ide` 子命令现在也支持直接读取已打开 DevTools 会话的信息:
|
|
225
231
|
|
|
226
232
|
```sh
|
|
@@ -84,6 +84,7 @@ wv mcp doctor codex
|
|
|
84
84
|
- 小程序截图对比验收优先使用 `weapp-vite compare` / `wv compare`
|
|
85
85
|
- 不要退化成普通浏览器截图来替代小程序运行时截图
|
|
86
86
|
- 查看 DevTools 终端日志优先使用 `weapp-vite ide logs --open` / `wv ide logs --open`
|
|
87
|
+
- DevTools CLI、服务端口或 automator 连接异常时优先执行 `wv ide doctor --json`
|
|
87
88
|
|
|
88
89
|
## AI 意图映射
|
|
89
90
|
|
|
@@ -37,6 +37,8 @@ weapp-vite screenshot --project ./dist/build/mp-weixin --page pages/index/index
|
|
|
37
37
|
weapp-vite ide logs --open
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
如果 DevTools 未能自动连接,先运行 `wv ide doctor --json`。`wv open`、`wv dev -o` 和 `wv ide logs --open` 默认先通过官方 CLI 打开项目,再连接 automator;只有需要兼容旧链路时才使用 `--ide-open-strategy automator`。
|
|
41
|
+
|
|
40
42
|
如果项目启用了 `weapp.forwardConsole.enabled = 'auto'`,AI 终端场景下 `dev --open` 也可能自动附加日志桥。
|
|
41
43
|
|
|
42
44
|
## `.vue` 文件存在,但提示未安装 `wevu`
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import path from "pathe";
|
|
3
|
+
import { MINI_PROGRAM_PLATFORM_DESCRIPTORS as MINI_PROGRAM_PLATFORM_ADAPTERS } from "@weapp-core/shared";
|
|
3
4
|
import { fs } from "@weapp-core/shared/fs";
|
|
4
5
|
import { parse } from "vue/compiler-sfc";
|
|
5
6
|
import process from "node:process";
|
|
6
7
|
import { recursive } from "merge";
|
|
8
|
+
//#region src/platforms/sourceAssets.ts
|
|
9
|
+
const PORTABLE_TEMPLATE_EXTENSIONS = ["wxml", "html"];
|
|
10
|
+
const PORTABLE_STYLE_EXTENSIONS = [
|
|
11
|
+
"wxss",
|
|
12
|
+
"css",
|
|
13
|
+
"scss",
|
|
14
|
+
"less",
|
|
15
|
+
"sass",
|
|
16
|
+
"styl"
|
|
17
|
+
];
|
|
18
|
+
function uniqueExtensions(extensions) {
|
|
19
|
+
return Array.from(new Set(extensions.filter((extension) => Boolean(extension))));
|
|
20
|
+
}
|
|
21
|
+
const ALL_NATIVE_TEMPLATE_EXTENSIONS = uniqueExtensions(MINI_PROGRAM_PLATFORM_ADAPTERS.map((adapter) => adapter.outputExtensions.wxml));
|
|
22
|
+
const ALL_NATIVE_STYLE_EXTENSIONS = uniqueExtensions(MINI_PROGRAM_PLATFORM_ADAPTERS.map((adapter) => adapter.outputExtensions.wxss));
|
|
23
|
+
const ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS = ALL_NATIVE_STYLE_EXTENSIONS.filter((extension) => extension !== "css");
|
|
24
|
+
const ALL_SOURCE_TEMPLATE_EXTENSIONS = uniqueExtensions([...PORTABLE_TEMPLATE_EXTENSIONS, ...ALL_NATIVE_TEMPLATE_EXTENSIONS]);
|
|
25
|
+
const ALL_SOURCE_STYLE_EXTENSIONS = uniqueExtensions([...PORTABLE_STYLE_EXTENSIONS, ...ALL_NATIVE_STYLE_EXTENSIONS]);
|
|
26
|
+
function getAdapter(platform) {
|
|
27
|
+
return platform ? MINI_PROGRAM_PLATFORM_ADAPTERS.find((adapter) => adapter.id === platform) : void 0;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 返回当前平台的模板源码选择顺序。
|
|
31
|
+
* 原生平台后缀优先,便携源码后缀作为兼容回退。
|
|
32
|
+
*/
|
|
33
|
+
function getSourceTemplateExtensions(platform) {
|
|
34
|
+
const nativeExtension = getAdapter(platform)?.outputExtensions.wxml;
|
|
35
|
+
return platform ? uniqueExtensions([nativeExtension, ...PORTABLE_TEMPLATE_EXTENSIONS]) : ALL_SOURCE_TEMPLATE_EXTENSIONS;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 返回当前平台的样式源码选择顺序。
|
|
39
|
+
* 原生平台后缀优先,预处理器和便携样式后缀继续可用。
|
|
40
|
+
*/
|
|
41
|
+
function getSourceStyleExtensions(platform) {
|
|
42
|
+
const nativeExtension = getAdapter(platform)?.outputExtensions.wxss;
|
|
43
|
+
return platform ? uniqueExtensions([nativeExtension, ...PORTABLE_STYLE_EXTENSIONS]) : ALL_SOURCE_STYLE_EXTENSIONS;
|
|
44
|
+
}
|
|
45
|
+
function isSourceTemplateExtension(extension) {
|
|
46
|
+
const normalized = extension.startsWith(".") ? extension.slice(1) : extension;
|
|
47
|
+
return getSourceTemplateExtensions().includes(normalized);
|
|
48
|
+
}
|
|
49
|
+
function isSourceStyleExtension(extension) {
|
|
50
|
+
const normalized = extension.startsWith(".") ? extension.slice(1) : extension;
|
|
51
|
+
return getSourceStyleExtensions().includes(normalized);
|
|
52
|
+
}
|
|
53
|
+
function isNativeTemplateSource(filePath, platform) {
|
|
54
|
+
const nativeExtension = getAdapter(platform)?.outputExtensions.wxml;
|
|
55
|
+
return Boolean(nativeExtension && filePath.endsWith(`.${nativeExtension}`));
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
7
58
|
//#region src/constants.ts
|
|
8
59
|
const VERSION = "__VERSION__";
|
|
9
60
|
/**
|
|
@@ -31,18 +82,11 @@ const configExtensions = [
|
|
|
31
82
|
/**
|
|
32
83
|
* 源代码支持的 css 文件格式
|
|
33
84
|
*/
|
|
34
|
-
const supportedCssLangs =
|
|
35
|
-
"wxss",
|
|
36
|
-
"css",
|
|
37
|
-
"scss",
|
|
38
|
-
"less",
|
|
39
|
-
"sass",
|
|
40
|
-
"styl"
|
|
41
|
-
];
|
|
85
|
+
const supportedCssLangs = ALL_SOURCE_STYLE_EXTENSIONS;
|
|
42
86
|
/**
|
|
43
87
|
* 源代码支持的 wxml 文件格式
|
|
44
88
|
*/
|
|
45
|
-
const templateExtensions =
|
|
89
|
+
const templateExtensions = ALL_SOURCE_TEMPLATE_EXTENSIONS;
|
|
46
90
|
//#endregion
|
|
47
91
|
//#region src/utils/file/autoRoutes.ts
|
|
48
92
|
const nodeRequire = createRequire(import.meta.url);
|
|
@@ -90,7 +134,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
90
134
|
}
|
|
91
135
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
92
136
|
try {
|
|
93
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
137
|
+
const { getCompilerContext } = await import("./getInstance-COmUPo24.mjs");
|
|
94
138
|
const compilerContext = getCompilerContext();
|
|
95
139
|
const service = compilerContext.autoRoutesService;
|
|
96
140
|
const reference = service?.getReference?.();
|
|
@@ -177,14 +221,14 @@ async function findJsEntry(filepath) {
|
|
|
177
221
|
async function findJsonEntry(filepath) {
|
|
178
222
|
return findEntryByExtensions(filepath, configExtensions);
|
|
179
223
|
}
|
|
180
|
-
async function findCssEntry(filepath) {
|
|
181
|
-
return findEntryByExtensions(filepath,
|
|
224
|
+
async function findCssEntry(filepath, platform) {
|
|
225
|
+
return findEntryByExtensions(filepath, getSourceStyleExtensions(platform));
|
|
182
226
|
}
|
|
183
|
-
async function findTemplateEntry(filepath) {
|
|
184
|
-
return findEntryByExtensions(filepath,
|
|
227
|
+
async function findTemplateEntry(filepath, platform) {
|
|
228
|
+
return findEntryByExtensions(filepath, getSourceTemplateExtensions(platform));
|
|
185
229
|
}
|
|
186
230
|
function isTemplate(filepath) {
|
|
187
|
-
return
|
|
231
|
+
return isSourceTemplateExtension(path.extname(filepath));
|
|
188
232
|
}
|
|
189
233
|
async function touch(filename) {
|
|
190
234
|
const time = /* @__PURE__ */ new Date();
|
|
@@ -280,4 +324,4 @@ async function extractConfigFromVue(vueFilePath, options) {
|
|
|
280
324
|
}
|
|
281
325
|
}
|
|
282
326
|
//#endregion
|
|
283
|
-
export { jsExtensions as _, findJsonEntry as a, templateExtensions as b, isJsOrTs as c, touch as d, getAutoRoutesMacroImportCandidates as f, configExtensions as g, VERSION as h, findJsEntry as i, isTemplate as l, resolveAutoRoutesInlineSnapshot as m, changeFileExtension as n, findTemplateEntry as o, inlineAutoRoutesImports as p, findCssEntry as r, findVueEntry as s, extractConfigFromVue as t, normalizeFileExtension as u, scriptExtensions as v, vueExtensions as x, supportedCssLangs as y };
|
|
327
|
+
export { isNativeTemplateSource as C, ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS as S, MINI_PROGRAM_PLATFORM_ADAPTERS as T, jsExtensions as _, findJsonEntry as a, templateExtensions as b, isJsOrTs as c, touch as d, getAutoRoutesMacroImportCandidates as f, configExtensions as g, VERSION as h, findJsEntry as i, isTemplate as l, resolveAutoRoutesInlineSnapshot as m, changeFileExtension as n, findTemplateEntry as o, inlineAutoRoutesImports as p, findCssEntry as r, findVueEntry as s, extractConfigFromVue as t, normalizeFileExtension as u, scriptExtensions as v, isSourceStyleExtension as w, vueExtensions as x, supportedCssLangs as y };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as WeappViteRuntime, A as Ref, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as applyWeappViteHostMeta, I as RolldownPluginOption, Jn as resolveWeappViteHostMeta, Kn as createWeappViteHostMeta, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappVitePlatform, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as WEAPP_VITE_HOST_NAME, Wn as WeappViteHostMeta, Xn as ResolvedWeappViteTarget, Yn as ResolveWeappViteTargetOptions, Zn as WEB_PLATFORM_ALIASES, _ as definePageJson, a as UserConfigFnNoEnvPlain, ar as getSupportedWeappViteTargetDescriptors, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as WeappViteTargetDescriptor, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, ir as getSupportedWeappVitePlatforms, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as WeappViteTargetKind, o as UserConfigFnObject, or as isWebPlatform, p as Sitemap, qn as isWeappViteHost, r as UserConfigFn, rr as WebPlatform, s as UserConfigFnObjectPlain, sr as resolveWeappViteTarget, t as UserConfig, tr as WeappViteTargetInput, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-
|
|
1
|
+
import { $n as WeappViteRuntime, A as Ref, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as applyWeappViteHostMeta, I as RolldownPluginOption, Jn as resolveWeappViteHostMeta, Kn as createWeappViteHostMeta, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappVitePlatform, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as WEAPP_VITE_HOST_NAME, Wn as WeappViteHostMeta, Xn as ResolvedWeappViteTarget, Yn as ResolveWeappViteTargetOptions, Zn as WEB_PLATFORM_ALIASES, _ as definePageJson, a as UserConfigFnNoEnvPlain, ar as getSupportedWeappViteTargetDescriptors, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as WeappViteTargetDescriptor, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, ir as getSupportedWeappVitePlatforms, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as WeappViteTargetKind, o as UserConfigFnObject, or as isWebPlatform, p as Sitemap, qn as isWeappViteHost, r as UserConfigFn, rr as WebPlatform, s as UserConfigFnObjectPlain, sr as resolveWeappViteTarget, t as UserConfig, tr as WeappViteTargetInput, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-C810aRQQ.mjs";
|
|
2
2
|
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";
|
|
3
3
|
//#region src/createContext.d.ts
|
|
4
4
|
interface CreateCompilerContextOptions extends Partial<LoadConfigOptions> {
|
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-DiBG4uOB.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-C810aRQQ.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 { Et as WeappMcpConfig } from "./config-
|
|
1
|
+
import { Et as WeappMcpConfig } from "./config-C810aRQQ.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
|
interface ResolvedWeappMcpConfig {
|
package/dist/test.mjs
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 WeappAnalyzeBudgetConfig, $n as WeappViteRuntime, $t as GenerateTemplate, A as Ref, An as WeappLibComponentJson, At as WeappRequestRuntimeConfig, B as BindingErrorLike, Bn as WeappManagedSharedTsconfigConfig, Bt as Alias, Cn as SharedChunkOverride, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as SubPackageStyleConfigObject, Dt as WeappNpmConfig, E as InlineConfig, En as SubPackageStyleConfigEntry, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappLibInternalDtsOptions, Ft as WeappVueConfig, G as EntryJsonFragment, Gt as CopyGlobs, H as BaseEntry, Hn as WeappWebConfig, Ht as AlipayNpmMode, I as RolldownPluginOption, In as WeappLibVueTscOptions, It as WeappVueTemplateConfig, J as ScanComponentItem, Jt as GenerateDirsOptions, K as PageEntry, Kt as CopyOptions, L as RolldownWatchOptions, Ln as WeappManagedAppTsconfigConfig, Lt as WeappWebRuntimeConfig, M as RolldownBuild, Mn as WeappLibDtsOptions, Mt as WeappRouteRules, N as RolldownOptions, Nn as WeappLibEntryContext, Nt as WeappSubPackageConfig, O as Plugin, On as SubPackageStyleEntry, Ot as WeappReactCompilerConfig, P as RolldownOutput, Pn as WeappLibFileName, Pt as WeappUniAppConfig, Q as UserConfig, Qt as GenerateOptions, R as RolldownWatcher, Rn as WeappManagedNodeTsconfigConfig, Rt as WeappWevuConfig, Sn as SharedChunkMode, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackage, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as BuildNpmPackageMeta, V as AppEntry, Vn as WeappManagedTypeScriptConfig, Vt as AliasOptions, W as Entry, Wn as WeappViteHostMeta, Wt as ChunksConfig, X as ProjectConfig, Xt as GenerateFileType, Y as WxmlDep, Yt as GenerateExtensionsOptions, Z as SubPackageMetaValue, Zt as GenerateFilenamesOptions, _n as NpmPluginPackageConfig, _t as WeappAutoRoutesIncludePattern, an as GenerateTemplateScope, at as WeappViteConfig, b as ChangeEvent, bn as ResolvedAlias, bt as WeappHmrConfig, cn as JsonConfig, ct as EnhanceOptions, dn as JsonMergeStage, dt as MultiPlatformConfig, en as GenerateTemplateContext, et as WeappAnalyzeConfig, fn as JsonMergeStrategy, ft as ScanWxmlOptions, gn as NpmMainPackageConfig, gt as WeappAutoRoutesInclude, hn as NpmDependencyPattern, ht as WeappAutoRoutesConfig, in as GenerateTemplateInlineSource, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibConfig, jt as WeappRouteRule, k as PluginOption, kn as SubPackageStyleScope, kt as WeappReactConfig, ln as JsonMergeContext, lt as EnhanceWxmlOptions, mn as NpmBuildOptions, mt as WeappAppPreludeMode, nn as GenerateTemplateFactory, nt as WeappDebugConfig, on as GenerateTemplatesConfig, ot as AutoImportComponents, pn as MpPlatform, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as DeprecatedInlineDynamicImports, rn as GenerateTemplateFileSource, rt as WeappForwardConsoleConfig, sn as JsFormat, st as AutoImportComponentsOption, tn as GenerateTemplateEntry, tt as WeappAnalyzeHistoryConfig, un as JsonMergeFunction, ut as HandleWxmlOptions, vn as NpmStrategy, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SharedChunkStrategy, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SharedChunkDynamicImports, xt as WeappInjectRequestGlobalsConfig, yn as NpmSubPackageConfig, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zn as WeappManagedServerTsconfigConfig, zt as WeappWorkerConfig } from "./config-
|
|
3
|
+
import { $ as WeappAnalyzeBudgetConfig, $n as WeappViteRuntime, $t as GenerateTemplate, A as Ref, An as WeappLibComponentJson, At as WeappRequestRuntimeConfig, B as BindingErrorLike, Bn as WeappManagedSharedTsconfigConfig, Bt as Alias, Cn as SharedChunkOverride, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as SubPackageStyleConfigObject, Dt as WeappNpmConfig, E as InlineConfig, En as SubPackageStyleConfigEntry, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappLibInternalDtsOptions, Ft as WeappVueConfig, G as EntryJsonFragment, Gt as CopyGlobs, H as BaseEntry, Hn as WeappWebConfig, Ht as AlipayNpmMode, I as RolldownPluginOption, In as WeappLibVueTscOptions, It as WeappVueTemplateConfig, J as ScanComponentItem, Jt as GenerateDirsOptions, K as PageEntry, Kt as CopyOptions, L as RolldownWatchOptions, Ln as WeappManagedAppTsconfigConfig, Lt as WeappWebRuntimeConfig, M as RolldownBuild, Mn as WeappLibDtsOptions, Mt as WeappRouteRules, N as RolldownOptions, Nn as WeappLibEntryContext, Nt as WeappSubPackageConfig, O as Plugin, On as SubPackageStyleEntry, Ot as WeappReactCompilerConfig, P as RolldownOutput, Pn as WeappLibFileName, Pt as WeappUniAppConfig, Q as UserConfig, Qt as GenerateOptions, R as RolldownWatcher, Rn as WeappManagedNodeTsconfigConfig, Rt as WeappWevuConfig, Sn as SharedChunkMode, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackage, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as BuildNpmPackageMeta, V as AppEntry, Vn as WeappManagedTypeScriptConfig, Vt as AliasOptions, W as Entry, Wn as WeappViteHostMeta, Wt as ChunksConfig, X as ProjectConfig, Xt as GenerateFileType, Y as WxmlDep, Yt as GenerateExtensionsOptions, Z as SubPackageMetaValue, Zt as GenerateFilenamesOptions, _n as NpmPluginPackageConfig, _t as WeappAutoRoutesIncludePattern, an as GenerateTemplateScope, at as WeappViteConfig, b as ChangeEvent, bn as ResolvedAlias, bt as WeappHmrConfig, cn as JsonConfig, ct as EnhanceOptions, dn as JsonMergeStage, dt as MultiPlatformConfig, en as GenerateTemplateContext, et as WeappAnalyzeConfig, fn as JsonMergeStrategy, ft as ScanWxmlOptions, gn as NpmMainPackageConfig, gt as WeappAutoRoutesInclude, hn as NpmDependencyPattern, ht as WeappAutoRoutesConfig, in as GenerateTemplateInlineSource, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibConfig, jt as WeappRouteRule, k as PluginOption, kn as SubPackageStyleScope, kt as WeappReactConfig, ln as JsonMergeContext, lt as EnhanceWxmlOptions, mn as NpmBuildOptions, mt as WeappAppPreludeMode, nn as GenerateTemplateFactory, nt as WeappDebugConfig, on as GenerateTemplatesConfig, ot as AutoImportComponents, pn as MpPlatform, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as DeprecatedInlineDynamicImports, rn as GenerateTemplateFileSource, rt as WeappForwardConsoleConfig, sn as JsFormat, st as AutoImportComponentsOption, tn as GenerateTemplateEntry, tt as WeappAnalyzeHistoryConfig, un as JsonMergeFunction, ut as HandleWxmlOptions, vn as NpmStrategy, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SharedChunkStrategy, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SharedChunkDynamicImports, xt as WeappInjectRequestGlobalsConfig, yn as NpmSubPackageConfig, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zn as WeappManagedServerTsconfigConfig, zt as WeappWorkerConfig } from "./config-C810aRQQ.mjs";
|
|
4
4
|
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, 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, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, type ViteDevServer, WeappAnalyzeBudgetConfig, WeappAnalyzeConfig, WeappAnalyzeHistoryConfig, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappBuildScopeConfig, WeappBuildScopeObjectConfig, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappReactCompilerConfig, WeappReactConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappUniAppConfig, WeappViteConfig, type WeappViteHostMeta, WeappVitePluginApi, type 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.20.
|
|
4
|
+
"version": "6.20.2",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@babel/preset-env": "^8.0.2",
|
|
102
102
|
"@babel/preset-typescript": "^8.0.1",
|
|
103
103
|
"@jridgewell/remapping": "^2.3.5",
|
|
104
|
-
"@vercel/detect-agent": "^1.2.
|
|
104
|
+
"@vercel/detect-agent": "^1.2.5",
|
|
105
105
|
"@volar/typescript": "^2.4.28",
|
|
106
106
|
"@vue/language-core": "^3.3.9",
|
|
107
107
|
"cac": "^7.0.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"htmlparser2": "^12.0.0",
|
|
112
112
|
"local-pkg": "^1.2.1",
|
|
113
113
|
"lru-cache": "^11.5.2",
|
|
114
|
-
"magic-string": "^1.
|
|
114
|
+
"magic-string": "^1.2.0",
|
|
115
115
|
"merge": "^2.1.1",
|
|
116
116
|
"obug": "^2.1.4",
|
|
117
117
|
"p-queue": "^9.3.3",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"pathe": "^2.0.3",
|
|
120
120
|
"picomatch": "^4.0.5",
|
|
121
121
|
"postcss": "^8.5.26",
|
|
122
|
-
"rolldown": "1.2.
|
|
123
|
-
"rolldown-plugin-dts": "0.28.
|
|
122
|
+
"rolldown": "1.2.4",
|
|
123
|
+
"rolldown-plugin-dts": "0.28.2",
|
|
124
124
|
"semver": "^7.8.5",
|
|
125
125
|
"typescript": "^6.0.3",
|
|
126
126
|
"vite": "8.2.1",
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
"vue": "^3.5.41",
|
|
129
129
|
"vue-tsc": "^3.3.9",
|
|
130
130
|
"@weapp-core/constants": "0.1.17",
|
|
131
|
-
"@weapp-core/shared": "3.1.0",
|
|
132
|
-
"@weapp-core/init": "6.0.13",
|
|
133
131
|
"@weapp-core/logger": "3.1.1",
|
|
132
|
+
"@weapp-core/init": "6.0.14",
|
|
134
133
|
"@weapp-core/schematics": "6.1.0",
|
|
135
|
-
"@weapp-
|
|
136
|
-
"@weapp-vite/
|
|
134
|
+
"@weapp-core/shared": "3.1.1",
|
|
135
|
+
"@weapp-vite/ast": "6.20.2",
|
|
136
|
+
"@weapp-vite/mcp": "1.4.14",
|
|
137
|
+
"@weapp-vite/miniprogram-automator": "1.2.13",
|
|
137
138
|
"@weapp-vite/volar": "2.1.3",
|
|
138
|
-
"@
|
|
139
|
-
"@
|
|
140
|
-
"@wevu/web-apis": "1.2.
|
|
141
|
-
"rolldown-require": "2.0.
|
|
142
|
-
"@weapp-vite/ast": "6.20.0",
|
|
139
|
+
"@weapp-vite/web": "1.4.7",
|
|
140
|
+
"@wevu/api": "0.2.16",
|
|
141
|
+
"@wevu/web-apis": "1.2.34",
|
|
142
|
+
"rolldown-require": "2.0.25",
|
|
143
143
|
"vite-plugin-performance": "2.0.1",
|
|
144
|
-
"weapp-ide-cli": "6.0.
|
|
145
|
-
"wevu": "6.20.
|
|
144
|
+
"weapp-ide-cli": "6.0.6",
|
|
145
|
+
"wevu": "6.20.2"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"access": "public",
|
package/dist/file-CQTcjEWz.mjs
DELETED