weapp-vite 6.13.0 → 6.13.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 +3 -0
- package/dist/auto-import-components/resolvers.d.mts +1 -1
- package/dist/auto-routes.d.mts +1 -1
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +2 -18
- package/dist/{config-B3HNOAZo.d.mts → config-CeCx5qMh.d.mts} +3 -2
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-CZ7Kunvn.mjs → createContext-Dja7tL2g.mjs} +375 -156
- package/dist/docs/README.md +3 -0
- package/dist/{file-DwwblEq4.mjs → file-MiE605t6.mjs} +1 -1
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +2 -3
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/runtime-CpQutkhu.d.mts +39 -0
- package/dist/runtime-gyZnAGCZ.mjs +53 -0
- package/dist/runtime.d.mts +1 -30
- package/dist/runtime.mjs +1 -31
- package/dist/types.d.mts +3 -3
- package/package.json +7 -5
- /package/dist/{index-BQqQ_BLM.d.mts → index-B5wBsuYI.d.mts} +0 -0
- /package/dist/{routes-DUBjYF43.d.mts → routes-o20IHwXa.d.mts} +0 -0
package/dist/docs/README.md
CHANGED
|
@@ -166,10 +166,13 @@ wv ide logs --open
|
|
|
166
166
|
```sh
|
|
167
167
|
weapp-vite preview --project ./dist/build/mp-weixin
|
|
168
168
|
weapp-vite upload --project ./dist/build/mp-weixin -v 1.0.0 -d "release"
|
|
169
|
+
weapp-vite cache --clean compile
|
|
170
|
+
weapp-vite cache --clean all
|
|
169
171
|
weapp-vite config lang zh
|
|
170
172
|
weapp-vite navigate pages/index/index --project ./dist/build/mp-weixin
|
|
171
173
|
# 等价写法
|
|
172
174
|
wv preview --project ./dist/build/mp-weixin
|
|
175
|
+
wv cache --clean all
|
|
173
176
|
```
|
|
174
177
|
|
|
175
178
|
也支持命名空间写法:
|
|
@@ -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-Dja7tL2g.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,6 +1,5 @@
|
|
|
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-
|
|
2
|
-
import {
|
|
3
|
-
import { createWevuComponent, setPageLayout } from "wevu";
|
|
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-CeCx5qMh.mjs";
|
|
2
|
+
import { a as createWevuComponent, i as WevuComponentOptions, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-CpQutkhu.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/createContext.d.ts
|
|
6
5
|
interface CreateCompilerContextOptions extends Partial<LoadConfigOptions> {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +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-
|
|
5
|
-
import {
|
|
6
|
-
import { createWevuComponent, setPageLayout } from "wevu";
|
|
4
|
+
import { t as createCompilerContext } from "./createContext-Dja7tL2g.mjs";
|
|
5
|
+
import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-gyZnAGCZ.mjs";
|
|
7
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-CeCx5qMh.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-CeCx5qMh.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
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComputedDefinitions, MethodDefinitions, WevuPageLayoutMap } from "wevu";
|
|
2
|
+
|
|
3
|
+
//#region src/plugins/vue/createWevuComponent.d.ts
|
|
4
|
+
interface WevuComponentOptions<D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions> {
|
|
5
|
+
data?: () => D;
|
|
6
|
+
computed?: C;
|
|
7
|
+
methods?: M;
|
|
8
|
+
watch?: any;
|
|
9
|
+
setup?: (...args: any[]) => any;
|
|
10
|
+
setupLifecycle?: 'created' | 'attached';
|
|
11
|
+
properties?: Record<string, any>;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 从 Vue SFC 的 options 创建 wevu 组件
|
|
16
|
+
* 同时支持 Vue 2 风格(Options API)与 Vue 3 风格(Composition API)
|
|
17
|
+
*
|
|
18
|
+
* 始终使用 defineComponent(其内部会调用小程序的 Component())。
|
|
19
|
+
* 在微信小程序中,Component() 可以同时定义页面与组件。
|
|
20
|
+
*/
|
|
21
|
+
declare function createWevuComponent(options: WevuComponentOptions): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/plugins/vue/nativePageLayout.d.ts
|
|
24
|
+
type ResolveTypedPageLayoutName = keyof WevuPageLayoutMap extends never ? string : Extract<keyof WevuPageLayoutMap, string>;
|
|
25
|
+
type ResolveTypedPageLayoutProps<Name extends string> = Name extends keyof WevuPageLayoutMap ? WevuPageLayoutMap[Name] : Record<string, any>;
|
|
26
|
+
declare function setPageLayout(layout: false): void;
|
|
27
|
+
declare function setPageLayout<Name extends ResolveTypedPageLayoutName>(layout: Name, props?: ResolveTypedPageLayoutProps<Name>): void;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/plugins/vue/runtimeMacros.d.ts
|
|
30
|
+
/**
|
|
31
|
+
* 说明:Vue 3 风格的 props 声明(用于类型提示)
|
|
32
|
+
*/
|
|
33
|
+
declare function defineProps<T extends Record<string, any>>(props: T): T;
|
|
34
|
+
/**
|
|
35
|
+
* 说明:Vue 3 风格的 emits 声明(用于类型提示)
|
|
36
|
+
*/
|
|
37
|
+
declare function defineEmits<T extends Record<string, any> | string[]>(emits: T): T;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { createWevuComponent as a, WevuComponentOptions as i, defineProps as n, setPageLayout as r, defineEmits as t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent } from "wevu";
|
|
2
|
+
//#region src/plugins/vue/createWevuComponent.ts
|
|
3
|
+
/**
|
|
4
|
+
* 从 Vue SFC 的 options 创建 wevu 组件
|
|
5
|
+
* 同时支持 Vue 2 风格(Options API)与 Vue 3 风格(Composition API)
|
|
6
|
+
*
|
|
7
|
+
* 始终使用 defineComponent(其内部会调用小程序的 Component())。
|
|
8
|
+
* 在微信小程序中,Component() 可以同时定义页面与组件。
|
|
9
|
+
*/
|
|
10
|
+
function createWevuComponent(options) {
|
|
11
|
+
const { properties, ...restOptions } = options;
|
|
12
|
+
const mpOptions = {};
|
|
13
|
+
if (properties) mpOptions.properties = properties;
|
|
14
|
+
defineComponent({
|
|
15
|
+
...restOptions,
|
|
16
|
+
...mpOptions
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/plugins/vue/nativePageLayout.ts
|
|
21
|
+
const PAGE_LAYOUT_SETTER_KEY = "__wevuSetPageLayout";
|
|
22
|
+
function resolveCurrentPageInstance() {
|
|
23
|
+
const getCurrentPagesFn = globalThis.getCurrentPages;
|
|
24
|
+
if (typeof getCurrentPagesFn !== "function") return;
|
|
25
|
+
return getCurrentPagesFn().at(-1);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 为原生 Page() 页面切换 layout。
|
|
29
|
+
*/
|
|
30
|
+
function setPageLayout(layout, props) {
|
|
31
|
+
const pageSetter = resolveCurrentPageInstance()?.[PAGE_LAYOUT_SETTER_KEY];
|
|
32
|
+
if (typeof pageSetter === "function") {
|
|
33
|
+
pageSetter(layout, props);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
throw new Error("setPageLayout() 未找到当前页面实例。请在页面生命周期、事件回调或当前页面上下文中调用。");
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/plugins/vue/runtimeMacros.ts
|
|
40
|
+
/**
|
|
41
|
+
* 说明:Vue 3 风格的 props 声明(用于类型提示)
|
|
42
|
+
*/
|
|
43
|
+
function defineProps(props) {
|
|
44
|
+
return props;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 说明:Vue 3 风格的 emits 声明(用于类型提示)
|
|
48
|
+
*/
|
|
49
|
+
function defineEmits(emits) {
|
|
50
|
+
return emits;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { createWevuComponent as i, defineProps as n, setPageLayout as r, defineEmits as t };
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/plugins/vue/runtime.d.ts
|
|
4
|
-
interface WevuComponentOptions<D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions> {
|
|
5
|
-
data?: () => D;
|
|
6
|
-
computed?: C;
|
|
7
|
-
methods?: M;
|
|
8
|
-
watch?: any;
|
|
9
|
-
setup?: (...args: any[]) => any;
|
|
10
|
-
setupLifecycle?: 'created' | 'attached';
|
|
11
|
-
properties?: Record<string, any>;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 从 Vue SFC 的 options 创建 wevu 组件
|
|
16
|
-
* 同时支持 Vue 2 风格(Options API)与 Vue 3 风格(Composition API)
|
|
17
|
-
*
|
|
18
|
-
* 始终使用 defineComponent(其内部会调用小程序的 Component())。
|
|
19
|
-
* 在微信小程序中,Component() 可以同时定义页面与组件。
|
|
20
|
-
*/
|
|
21
|
-
declare function createWevuComponent(options: WevuComponentOptions): void;
|
|
22
|
-
/**
|
|
23
|
-
* 说明:Vue 3 风格的 props 声明(用于类型提示)
|
|
24
|
-
*/
|
|
25
|
-
declare function defineProps<T extends Record<string, any>>(props: T): T;
|
|
26
|
-
/**
|
|
27
|
-
* 说明:Vue 3 风格的 emits 声明(用于类型提示)
|
|
28
|
-
*/
|
|
29
|
-
declare function defineEmits<T extends Record<string, any> | string[]>(emits: T): T;
|
|
30
|
-
//#endregion
|
|
1
|
+
import { a as createWevuComponent, i as WevuComponentOptions, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-CpQutkhu.mjs";
|
|
31
2
|
export { WevuComponentOptions, createWevuComponent, defineEmits, defineProps, setPageLayout };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/plugins/vue/runtime.ts
|
|
3
|
-
/**
|
|
4
|
-
* 从 Vue SFC 的 options 创建 wevu 组件
|
|
5
|
-
* 同时支持 Vue 2 风格(Options API)与 Vue 3 风格(Composition API)
|
|
6
|
-
*
|
|
7
|
-
* 始终使用 defineComponent(其内部会调用小程序的 Component())。
|
|
8
|
-
* 在微信小程序中,Component() 可以同时定义页面与组件。
|
|
9
|
-
*/
|
|
10
|
-
function createWevuComponent(options) {
|
|
11
|
-
const { properties, ...restOptions } = options;
|
|
12
|
-
const mpOptions = {};
|
|
13
|
-
if (properties) mpOptions.properties = properties;
|
|
14
|
-
defineComponent({
|
|
15
|
-
...restOptions,
|
|
16
|
-
...mpOptions
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 说明:Vue 3 风格的 props 声明(用于类型提示)
|
|
21
|
-
*/
|
|
22
|
-
function defineProps(props) {
|
|
23
|
-
return props;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 说明:Vue 3 风格的 emits 声明(用于类型提示)
|
|
27
|
-
*/
|
|
28
|
-
function defineEmits(emits) {
|
|
29
|
-
return emits;
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
1
|
+
import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-gyZnAGCZ.mjs";
|
|
32
2
|
export { createWevuComponent, defineEmits, defineProps, setPageLayout };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Resolver } from "./index-
|
|
2
|
-
import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-
|
|
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-
|
|
1
|
+
import { c as Resolver } from "./index-B5wBsuYI.mjs";
|
|
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-CeCx5qMh.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.2",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
"typescript": "^6.0.2",
|
|
116
116
|
"vite": "8.0.2",
|
|
117
117
|
"vite-tsconfig-paths": "^6.1.1",
|
|
118
|
-
"vue": "^3.5.
|
|
118
|
+
"vue": "^3.5.32",
|
|
119
119
|
"vue-tsc": "^3.2.6",
|
|
120
120
|
"@weapp-core/init": "6.0.5",
|
|
121
121
|
"@weapp-core/logger": "3.1.1",
|
|
122
122
|
"@weapp-core/schematics": "6.0.4",
|
|
123
123
|
"@weapp-core/shared": "3.0.2",
|
|
124
|
-
"@weapp-vite/ast": "6.13.
|
|
124
|
+
"@weapp-vite/ast": "6.13.2",
|
|
125
125
|
"@weapp-vite/mcp": "1.1.2",
|
|
126
126
|
"@weapp-vite/volar": "2.0.8",
|
|
127
127
|
"@weapp-vite/web": "1.3.10",
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
"@wevu/web-apis": "1.1.0",
|
|
130
130
|
"rolldown-require": "2.0.12",
|
|
131
131
|
"vite-plugin-performance": "2.0.1",
|
|
132
|
-
"weapp-ide-cli": "5.1.
|
|
133
|
-
"wevu": "6.13.
|
|
132
|
+
"weapp-ide-cli": "5.1.5",
|
|
133
|
+
"wevu": "6.13.2"
|
|
134
134
|
},
|
|
135
135
|
"publishConfig": {
|
|
136
136
|
"access": "public",
|
|
@@ -148,6 +148,8 @@
|
|
|
148
148
|
"build": "tsdown",
|
|
149
149
|
"release": "tsx scripts/release.ts",
|
|
150
150
|
"bench": "vitest bench -c vitest.bench.config.ts",
|
|
151
|
+
"benchmark:auto-import": "node --import tsx scripts/benchmark-auto-import-resolver.ts",
|
|
152
|
+
"benchmark:auto-import:build": "node --import tsx scripts/benchmark-auto-import-build.ts",
|
|
151
153
|
"test:dev": "vitest",
|
|
152
154
|
"test": "vitest run",
|
|
153
155
|
"test:types": "cd test-d/auto-routes-define-app-json && tsd && cd ../config-define-config && tsd",
|
|
File without changes
|
|
File without changes
|