weapp-vite 6.19.0 → 6.19.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 +2 -2
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +14 -11
- package/dist/{config-CKToDk5V.d.mts → config-DWY8nWj0.d.mts} +8 -1
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-B5rRMSjV.mjs → createContext-D9HCnUmH.mjs} +674 -216
- package/dist/docs/README.md +2 -2
- package/dist/docs/uni-app-component-libraries.md +12 -0
- package/dist/docs/weapp-config.md +4 -2
- package/dist/file-BTZg_nyD.mjs +2 -0
- package/dist/{file-BgstESAr.mjs → file-CFQYYS_3.mjs} +1 -1
- package/dist/getInstance-BPQWdhpZ.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/{runtime-kc5RVjrC.mjs → runtime-D6VCNhNY.mjs} +4 -2
- package/dist/runtime.mjs +1 -1
- package/dist/test.mjs +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +21 -21
- package/dist/file-DDpy9efy.mjs +0 -2
- package/dist/getInstance-DYwC9HEv.mjs +0 -2
package/dist/docs/README.md
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
## 快速开始
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
微信项目默认会根据微信开发者工具的热重载设置选择 HMR 模式。也可以显式锁定模式:
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
41
|
export default defineConfig({
|
|
@@ -47,7 +47,7 @@ export default defineConfig({
|
|
|
47
47
|
})
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
未配置 `weapp.hmr.runtime` 时,`wv dev` 会在启动时读取 `project.private.config.json.setting.compileHotReLoad`:开启时使用 `stateful-experimental`,关闭或无法确认时使用 `classic`。启动日志会显示最终 HMR 模式、选择来源和切换到另一模式的方法。显式设置 `classic` 或 `stateful-experimental` 会覆盖自动选择。修改 DevTools 设置后请重启 `wv dev`;CSS、资源、配置和不兼容更新会自动回退完整构建与当前路由重载。
|
|
51
51
|
|
|
52
52
|
> 说明:CLI 同时支持完整命令 `weapp-vite` 与简写命令 `wv`,两者等价。下面的示例默认使用 `weapp-vite`,你也可以按个人习惯替换成 `wv`。
|
|
53
53
|
|
|
@@ -42,6 +42,18 @@ export default defineConfig({
|
|
|
42
42
|
|
|
43
43
|
`supportFilesStrategy` 默认为 `'used'`;需要生成全量组件辅助文件时可传入 `UviewPlusResolver({ supportFilesStrategy: 'full' })`。
|
|
44
44
|
|
|
45
|
+
## 微信开发者工具回归分层
|
|
46
|
+
|
|
47
|
+
组件库 IDE 验收拆分为运行时、代表性视觉和全量视觉三种命令。运行时命令覆盖全部组件页面的行为与交互,不调用截图;视觉命令独立执行截图对比。
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pnpm e2e:ide:component-libraries
|
|
51
|
+
pnpm e2e:ide:component-libraries:visual
|
|
52
|
+
pnpm e2e:ide:component-libraries:visual:full
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
也可以分别运行 `pnpm e2e:ide:uview-plus`、`pnpm e2e:ide:wot-ui` 及其 `:visual` / `:visual:full` 变体。视觉套件在 `App.captureScreenshot` 协议超时后轮换 DevTools 会话;自动恢复只处理连接级错误,视觉差异仍会直接失败。
|
|
56
|
+
|
|
45
57
|
## Wot UI
|
|
46
58
|
|
|
47
59
|
## 安装
|
|
@@ -313,7 +313,7 @@ export default defineConfig({
|
|
|
313
313
|
|
|
314
314
|
### `hmr.runtime`
|
|
315
315
|
|
|
316
|
-
默认值为 `
|
|
316
|
+
默认值为 `auto`。微信项目会在 `wv dev` 启动时根据开发者工具设置自动选择 HMR 运行时,也可显式锁定状态保持型热更新:
|
|
317
317
|
|
|
318
318
|
```ts
|
|
319
319
|
export default defineConfig({
|
|
@@ -327,7 +327,9 @@ export default defineConfig({
|
|
|
327
327
|
|
|
328
328
|
安全的 JavaScript/Vue 更新会保留当前 Page/Component 实例、route/query、输入和可序列化 data/setup ref,并替换原生 Page、原生 Component 与 wevu 方法。CSS、资源、JSON/配置、不兼容模块图或补丁失败会回退完整构建与当前路由重载。
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
`auto` 在 `project.private.config.json` 的 `setting.compileHotReLoad` 严格为 `true` 时选择 `stateful-experimental`,否则选择 `classic`;非微信平台也会回退到 `classic`。该判断只在启动时执行,修改开发者工具设置后需要重启 `wv dev`。启动日志会显示最终模式、选择来源,以及通过 DevTools 热重载开关或 `weapp.hmr.runtime` 切换模式的方法。显式配置 `classic` 或 `stateful-experimental` 始终优先。
|
|
331
|
+
|
|
332
|
+
状态保持模式目前只支持微信小程序,需要微信开发者工具开启服务端口和热重载。需要既有写盘/刷新行为时显式配置 `classic`。
|
|
331
333
|
|
|
332
334
|
### `hmr.logLevel` / `hmr.profileJson`
|
|
333
335
|
|
|
@@ -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-BPQWdhpZ.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 { $n as WeappViteTargetInput, A as Ref, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as isWeappViteHost, Hn as WeappViteHostMeta, I as RolldownPluginOption, Jn as ResolvedWeappViteTarget, Kn as resolveWeappViteHostMeta, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteTargetDescriptor, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as applyWeappViteHostMeta, Vn as WEAPP_VITE_HOST_NAME, Wn as createWeappViteHostMeta, Xn as WeappVitePlatform, Yn as WEB_PLATFORM_ALIASES, Zn as WeappViteRuntime, _ as definePageJson, a as UserConfigFnNoEnvPlain, ar as resolveWeappViteTarget, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as WeappViteTargetKind, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, ir as isWebPlatform, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as getSupportedWeappVitePlatforms, o as UserConfigFnObject, p as Sitemap, qn as ResolveWeappViteTargetOptions, r as UserConfigFn, rr as getSupportedWeappViteTargetDescriptors, s as UserConfigFnObjectPlain, t as UserConfig, tr as WebPlatform, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-
|
|
1
|
+
import { $n as WeappViteTargetInput, A as Ref, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as isWeappViteHost, Hn as WeappViteHostMeta, I as RolldownPluginOption, Jn as ResolvedWeappViteTarget, Kn as resolveWeappViteHostMeta, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteTargetDescriptor, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as applyWeappViteHostMeta, Vn as WEAPP_VITE_HOST_NAME, Wn as createWeappViteHostMeta, Xn as WeappVitePlatform, Yn as WEB_PLATFORM_ALIASES, Zn as WeappViteRuntime, _ as definePageJson, a as UserConfigFnNoEnvPlain, ar as resolveWeappViteTarget, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as WeappViteTargetKind, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, ir as isWebPlatform, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as getSupportedWeappVitePlatforms, o as UserConfigFnObject, p as Sitemap, qn as ResolveWeappViteTargetOptions, r as UserConfigFn, rr as getSupportedWeappViteTargetDescriptors, s as UserConfigFnObjectPlain, t as UserConfig, tr as WebPlatform, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-DWY8nWj0.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-
|
|
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-
|
|
4
|
+
import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-D9HCnUmH.mjs";
|
|
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-DWY8nWj0.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-DWY8nWj0.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 {
|
|
@@ -22,7 +22,8 @@ function createWevuComponent(options) {
|
|
|
22
22
|
//#region src/plugins/vue/nativeLayoutHost.ts
|
|
23
23
|
const layoutHostRegistry = createMiniProgramLayoutHostRegistry();
|
|
24
24
|
function resolveCurrentPageInstance$1() {
|
|
25
|
-
|
|
25
|
+
const compiledPlatform = resolveMiniProgramPlatform(import.meta.env?.PLATFORM);
|
|
26
|
+
if (!supportsMiniProgramRuntimeCapability(compiledPlatform, "globalPageStack")) return;
|
|
26
27
|
const getCurrentPagesFn = globalThis.getCurrentPages;
|
|
27
28
|
if (typeof getCurrentPagesFn !== "function") return;
|
|
28
29
|
try {
|
|
@@ -83,7 +84,8 @@ function waitForLayoutHost(key, options = {}) {
|
|
|
83
84
|
//#endregion
|
|
84
85
|
//#region src/plugins/vue/nativePageLayout.ts
|
|
85
86
|
function resolveCurrentPageInstance() {
|
|
86
|
-
|
|
87
|
+
const compiledPlatform = resolveMiniProgramPlatform(import.meta.env?.PLATFORM);
|
|
88
|
+
if (!supportsMiniProgramRuntimeCapability(compiledPlatform, "globalPageStack")) return;
|
|
87
89
|
const getCurrentPagesFn = globalThis.getCurrentPages;
|
|
88
90
|
if (typeof getCurrentPagesFn !== "function") return;
|
|
89
91
|
try {
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { createWevuComponent, defineEmits, defineProps, registerLayoutHosts, resolveLayoutHost, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
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, $t as GenerateTemplateEntry, A as Ref, An as WeappLibDtsOptions, At as WeappRouteRules, B as BindingErrorLike, Bn as WeappWebConfig, Bt as AlipayNpmMode, Cn as SubPackage, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as SubPackageStyleScope, Dt as WeappNpmConfig, E as InlineConfig, En as SubPackageStyleEntry, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappManagedAppTsconfigConfig, Ft as WeappWebRuntimeConfig, G as EntryJsonFragment, Gt as DeprecatedInlineDynamicImports, H as BaseEntry, Hn as WeappViteHostMeta, Ht as ChunksConfig, I as RolldownPluginOption, In as WeappManagedNodeTsconfigConfig, It as WeappWevuConfig, J as ScanComponentItem, Jt as GenerateFileType, K as PageEntry, Kt as GenerateDirsOptions, L as RolldownWatchOptions, Ln as WeappManagedServerTsconfigConfig, Lt as WeappWorkerConfig, M as RolldownBuild, Mn as WeappLibFileName, Mt as WeappUniAppConfig, N as RolldownOptions, Nn as WeappLibInternalDtsOptions, Nt as WeappVueConfig, O as Plugin, On as WeappLibComponentJson, Ot as WeappRequestRuntimeConfig, P as RolldownOutput, Pn as WeappLibVueTscOptions, Pt as WeappVueTemplateConfig, Q as UserConfig, Qt as GenerateTemplateContext, R as RolldownWatcher, Rn as WeappManagedSharedTsconfigConfig, Rt as Alias, Sn as SharedChunkStrategy, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackageStyleConfigObject, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as CopyGlobs, V as AppEntry, Vt as BuildNpmPackageMeta, W as Entry, Wt as CopyOptions, X as ProjectConfig, Xt as GenerateOptions, Y as WxmlDep, Yt as GenerateFilenamesOptions, Z as SubPackageMetaValue, Zn as WeappViteRuntime, Zt as GenerateTemplate, _n as NpmSubPackageConfig, _t as WeappAutoRoutesIncludePattern, an as JsFormat, at as WeappViteConfig, b as ChangeEvent, bn as SharedChunkMode, bt as WeappHmrConfig, cn as JsonMergeFunction, ct as EnhanceOptions, dn as MpPlatform, dt as MultiPlatformConfig, en as GenerateTemplateFactory, et as WeappAnalyzeConfig, fn as NpmBuildOptions, ft as ScanWxmlOptions, gn as NpmStrategy, gt as WeappAutoRoutesInclude, hn as NpmPluginPackageConfig, ht as WeappAutoRoutesConfig, in as GenerateTemplatesConfig, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibEntryContext, jt as WeappSubPackageConfig, k as PluginOption, kn as WeappLibConfig, kt as WeappRouteRule, ln as JsonMergeStage, lt as EnhanceWxmlOptions, mn as NpmMainPackageConfig, mt as WeappAppPreludeMode, nn as GenerateTemplateInlineSource, nt as WeappDebugConfig, on as JsonConfig, ot as AutoImportComponents, pn as NpmDependencyPattern, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateExtensionsOptions, rn as GenerateTemplateScope, rt as WeappForwardConsoleConfig, sn as JsonMergeContext, st as AutoImportComponentsOption, tn as GenerateTemplateFileSource, tt as WeappAnalyzeHistoryConfig, un as JsonMergeStrategy, ut as HandleWxmlOptions, vn as ResolvedAlias, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SubPackageStyleConfigEntry, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SharedChunkOverride, xt as WeappInjectRequestGlobalsConfig, yn as SharedChunkDynamicImports, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zn as WeappManagedTypeScriptConfig, zt as AliasOptions } from "./config-
|
|
3
|
+
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateTemplateEntry, A as Ref, An as WeappLibDtsOptions, At as WeappRouteRules, B as BindingErrorLike, Bn as WeappWebConfig, Bt as AlipayNpmMode, Cn as SubPackage, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as SubPackageStyleScope, Dt as WeappNpmConfig, E as InlineConfig, En as SubPackageStyleEntry, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappManagedAppTsconfigConfig, Ft as WeappWebRuntimeConfig, G as EntryJsonFragment, Gt as DeprecatedInlineDynamicImports, H as BaseEntry, Hn as WeappViteHostMeta, Ht as ChunksConfig, I as RolldownPluginOption, In as WeappManagedNodeTsconfigConfig, It as WeappWevuConfig, J as ScanComponentItem, Jt as GenerateFileType, K as PageEntry, Kt as GenerateDirsOptions, L as RolldownWatchOptions, Ln as WeappManagedServerTsconfigConfig, Lt as WeappWorkerConfig, M as RolldownBuild, Mn as WeappLibFileName, Mt as WeappUniAppConfig, N as RolldownOptions, Nn as WeappLibInternalDtsOptions, Nt as WeappVueConfig, O as Plugin, On as WeappLibComponentJson, Ot as WeappRequestRuntimeConfig, P as RolldownOutput, Pn as WeappLibVueTscOptions, Pt as WeappVueTemplateConfig, Q as UserConfig, Qt as GenerateTemplateContext, R as RolldownWatcher, Rn as WeappManagedSharedTsconfigConfig, Rt as Alias, Sn as SharedChunkStrategy, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackageStyleConfigObject, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as CopyGlobs, V as AppEntry, Vt as BuildNpmPackageMeta, W as Entry, Wt as CopyOptions, X as ProjectConfig, Xt as GenerateOptions, Y as WxmlDep, Yt as GenerateFilenamesOptions, Z as SubPackageMetaValue, Zn as WeappViteRuntime, Zt as GenerateTemplate, _n as NpmSubPackageConfig, _t as WeappAutoRoutesIncludePattern, an as JsFormat, at as WeappViteConfig, b as ChangeEvent, bn as SharedChunkMode, bt as WeappHmrConfig, cn as JsonMergeFunction, ct as EnhanceOptions, dn as MpPlatform, dt as MultiPlatformConfig, en as GenerateTemplateFactory, et as WeappAnalyzeConfig, fn as NpmBuildOptions, ft as ScanWxmlOptions, gn as NpmStrategy, gt as WeappAutoRoutesInclude, hn as NpmPluginPackageConfig, ht as WeappAutoRoutesConfig, in as GenerateTemplatesConfig, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibEntryContext, jt as WeappSubPackageConfig, k as PluginOption, kn as WeappLibConfig, kt as WeappRouteRule, ln as JsonMergeStage, lt as EnhanceWxmlOptions, mn as NpmMainPackageConfig, mt as WeappAppPreludeMode, nn as GenerateTemplateInlineSource, nt as WeappDebugConfig, on as JsonConfig, ot as AutoImportComponents, pn as NpmDependencyPattern, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateExtensionsOptions, rn as GenerateTemplateScope, rt as WeappForwardConsoleConfig, sn as JsonMergeContext, st as AutoImportComponentsOption, tn as GenerateTemplateFileSource, tt as WeappAnalyzeHistoryConfig, un as JsonMergeStrategy, ut as HandleWxmlOptions, vn as ResolvedAlias, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SubPackageStyleConfigEntry, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SharedChunkOverride, xt as WeappInjectRequestGlobalsConfig, yn as SharedChunkDynamicImports, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zn as WeappManagedTypeScriptConfig, zt as AliasOptions } from "./config-DWY8nWj0.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, 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.19.
|
|
4
|
+
"version": "6.19.2",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -101,9 +101,9 @@
|
|
|
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.4",
|
|
105
105
|
"@volar/typescript": "^2.4.28",
|
|
106
|
-
"@vue/language-core": "^3.3.
|
|
106
|
+
"@vue/language-core": "^3.3.9",
|
|
107
107
|
"cac": "^7.0.0",
|
|
108
108
|
"chokidar": "^5.0.0",
|
|
109
109
|
"comment-json": "^5.0.0",
|
|
@@ -118,39 +118,39 @@
|
|
|
118
118
|
"package-manager-detector": "^1.8.0",
|
|
119
119
|
"pathe": "^2.0.3",
|
|
120
120
|
"picomatch": "^4.0.5",
|
|
121
|
-
"postcss": "^8.5.
|
|
122
|
-
"rolldown": "1.
|
|
123
|
-
"rolldown-plugin-dts": "0.
|
|
121
|
+
"postcss": "^8.5.26",
|
|
122
|
+
"rolldown": "1.2.3",
|
|
123
|
+
"rolldown-plugin-dts": "0.28.0",
|
|
124
124
|
"semver": "^7.8.5",
|
|
125
125
|
"typescript": "^6.0.3",
|
|
126
|
-
"vite": "8.1
|
|
126
|
+
"vite": "8.2.1",
|
|
127
127
|
"vite-tsconfig-paths": "^6.1.1",
|
|
128
|
-
"vue": "^3.5.
|
|
129
|
-
"vue-tsc": "^3.3.
|
|
130
|
-
"@weapp-core/constants": "0.1.
|
|
128
|
+
"vue": "^3.5.41",
|
|
129
|
+
"vue-tsc": "^3.3.9",
|
|
130
|
+
"@weapp-core/constants": "0.1.16",
|
|
131
131
|
"@weapp-core/init": "6.0.13",
|
|
132
132
|
"@weapp-core/logger": "3.1.1",
|
|
133
133
|
"@weapp-core/schematics": "6.0.4",
|
|
134
134
|
"@weapp-core/shared": "3.1.0",
|
|
135
|
-
"@weapp-vite/ast": "6.19.
|
|
135
|
+
"@weapp-vite/ast": "6.19.2",
|
|
136
|
+
"@weapp-vite/mcp": "1.4.12",
|
|
137
|
+
"@weapp-vite/miniprogram-automator": "1.2.11",
|
|
136
138
|
"@weapp-vite/volar": "2.1.2",
|
|
137
|
-
"@weapp-vite/
|
|
138
|
-
"@
|
|
139
|
-
"@
|
|
140
|
-
"
|
|
141
|
-
"@wevu/api": "0.2.13",
|
|
142
|
-
"rolldown-require": "2.0.22",
|
|
139
|
+
"@weapp-vite/web": "1.4.2",
|
|
140
|
+
"@wevu/api": "0.2.14",
|
|
141
|
+
"@wevu/web-apis": "1.2.31",
|
|
142
|
+
"rolldown-require": "2.0.23",
|
|
143
143
|
"vite-plugin-performance": "2.0.1",
|
|
144
|
-
"weapp-ide-cli": "6.0.
|
|
145
|
-
"wevu": "6.19.
|
|
144
|
+
"weapp-ide-cli": "6.0.3",
|
|
145
|
+
"wevu": "6.19.2"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"access": "public",
|
|
149
149
|
"registry": "https://registry.npmjs.org"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"oxc-parser": "^0.
|
|
153
|
-
"oxc-walker": "^1.
|
|
152
|
+
"oxc-parser": "^0.143.0",
|
|
153
|
+
"oxc-walker": "^1.1.1",
|
|
154
154
|
"tailwindcss": "^4.3.3",
|
|
155
155
|
"ts-morph": "^28.0.0"
|
|
156
156
|
},
|
package/dist/file-DDpy9efy.mjs
DELETED