weapp-vite 7.1.2 → 7.1.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/dist/auto-import-presets/wevu-router.d.mts +2 -0
- package/dist/auto-import-presets/wevu-router.mjs +2 -0
- package/dist/auto-import-presets/wevu.d.mts +2 -0
- package/dist/auto-import-presets/wevu.mjs +2 -0
- package/dist/auto-import-presets.d.mts +3 -0
- package/dist/auto-import-presets.mjs +3 -0
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{config-CgTp6kSh.d.mts → config-CDlfnbbb.d.mts} +6 -1
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-BYZnlk4j.mjs → createContext-CsYIo9DO.mjs} +401 -112
- package/dist/{file-CLo_LdAz.mjs → file-CHisoC18.mjs} +1 -1
- package/dist/file-DxMrh1lh.mjs +2 -0
- package/dist/getInstance-C-3pAq1Y.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/dist/wevu-C4KEC5kO.d.mts +5 -0
- package/dist/wevu-CrDVekb9.mjs +130 -0
- package/dist/wevu-router-Bl-FE8zi.mjs +15 -0
- package/dist/wevu-router-Cg2sIkIE.d.mts +5 -0
- package/package.json +41 -29
- package/dist/file-BRQqRekU.mjs +0 -2
- package/dist/getInstance-D82nepOm.mjs +0 -2
|
@@ -54,7 +54,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
54
54
|
}
|
|
55
55
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
56
56
|
try {
|
|
57
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
57
|
+
const { getCompilerContext } = await import("./getInstance-C-3pAq1Y.mjs");
|
|
58
58
|
const compilerContext = getCompilerContext();
|
|
59
59
|
const service = compilerContext.autoRoutesService;
|
|
60
60
|
const reference = service?.getReference?.();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as applyWeappViteHostMeta, A as Ref, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, I as RolldownPluginOption, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteHostMeta, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Zn as WEAPP_VITE_HOST_NAME, _ as definePageJson, a as UserConfigFnNoEnvPlain, ar as WEB_PLATFORM_ALIASES, c as UserConfigFnPromise, cr as WeappViteTargetDescriptor, d as Component, dr as WebPlatform, er as createWeappViteHostMeta, f as Page, fr as getSupportedWeappVitePlatforms, g as defineComponentJson, h as defineAppJson, hr as resolveWeappViteTarget, i as UserConfigFnNoEnv, ir as ResolvedWeappViteTarget, j as ResolvedConfig, k as PluginOption, l as defineConfig, lr as WeappViteTargetInput, m as Theme, mr as isWebPlatform, n as UserConfigExport, nr as resolveWeappViteHostMeta, o as UserConfigFnObject, or as WeappVitePlatform, ot as WeappViteConfig, p as Sitemap, pr as getSupportedWeappViteTargetDescriptors, r as UserConfigFn, rr as ResolveWeappViteTargetOptions, s as UserConfigFnObjectPlain, sr as WeappViteRuntime, t as UserConfig, tr as isWeappViteHost, u as App, ur as WeappViteTargetKind, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-
|
|
1
|
+
import { $n as applyWeappViteHostMeta, A as Ref, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, I as RolldownPluginOption, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteHostMeta, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Zn as WEAPP_VITE_HOST_NAME, _ as definePageJson, a as UserConfigFnNoEnvPlain, ar as WEB_PLATFORM_ALIASES, c as UserConfigFnPromise, cr as WeappViteTargetDescriptor, d as Component, dr as WebPlatform, er as createWeappViteHostMeta, f as Page, fr as getSupportedWeappVitePlatforms, g as defineComponentJson, h as defineAppJson, hr as resolveWeappViteTarget, i as UserConfigFnNoEnv, ir as ResolvedWeappViteTarget, j as ResolvedConfig, k as PluginOption, l as defineConfig, lr as WeappViteTargetInput, m as Theme, mr as isWebPlatform, n as UserConfigExport, nr as resolveWeappViteHostMeta, o as UserConfigFnObject, or as WeappVitePlatform, ot as WeappViteConfig, p as Sitemap, pr as getSupportedWeappViteTargetDescriptors, r as UserConfigFn, rr as ResolveWeappViteTargetOptions, s as UserConfigFnObjectPlain, sr as WeappViteRuntime, t as UserConfig, tr as isWeappViteHost, u as App, ur as WeappViteTargetKind, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer } from "./config-CDlfnbbb.mjs";
|
|
2
2
|
import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
|
|
3
3
|
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";
|
|
4
4
|
//#region src/createContext.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-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 getSupportedWeappVitePlatforms, d as resolveWeappViteTarget, l as getSupportedWeappViteTargetDescriptors, s as WEB_PLATFORM_ALIASES, t as createCompilerContext, u as isWebPlatform } from "./createContext-
|
|
4
|
+
import { c as getSupportedWeappVitePlatforms, d as resolveWeappViteTarget, l as getSupportedWeappViteTargetDescriptors, s as WEB_PLATFORM_ALIASES, t as createCompilerContext, u as isWebPlatform } from "./createContext-CsYIo9DO.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-CDlfnbbb.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 { Dt as WeappMcpConfig } from "./config-
|
|
1
|
+
import { Dt as WeappMcpConfig } from "./config-CDlfnbbb.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
|
export interface ResolvedWeappMcpConfig {
|
package/dist/test.mjs
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 GenerateFileType, A as Ref, An as StyleConfigObject, At as WeappPreloadRule, B as BindingErrorLike, Bn as WeappLibDtsOptions, Bt as WeappWebRuntimeConfig, Cn as NpmSubPackageConfig, Ct as WeappInjectRequestGlobalsTarget, D as MethodDefinitions, Dn as SharedChunkOverride, Dt as WeappMcpConfig, E as InlineConfig, En as SharedChunkMode, Et as WeappInjectWebRuntimeGlobalsTarget, F as RolldownPlugin, Fn as SubPackageStyleConfigObject, Ft as WeappRouteRules, G as EntryJsonFragment, Gn as WeappManagedAppTsconfigConfig, Gt as AlipayNpmMode, H as BaseEntry, Hn as WeappLibFileName, Ht as WeappWorkerConfig, I as RolldownPluginOption, In as SubPackageStyleEntry, It as WeappSubPackageConfig, J as ScanComponentItem, Jn as WeappManagedSharedTsconfigConfig, Jt as CopyGlobs, K as PageEntry, Kn as WeappManagedNodeTsconfigConfig, Kt as BuildNpmPackageMeta, L as RolldownWatchOptions, Ln as SubPackageStyleScope, Lt as WeappUniAppConfig, M as RolldownBuild, Mn as StyleScope, Mt as WeappReactConfig, N as RolldownOptions, Nn as SubPackage, Nt as WeappRequestRuntimeConfig, O as Plugin, On as SharedChunkStrategy, Ot as WeappNpmConfig, P as RolldownOutput, Pn as SubPackageStyleConfigEntry, Pt as WeappRouteRule, Q as UserConfig, Qn as WeappViteHostMeta, Qt as GenerateExtensionsOptions, R as RolldownWatcher, Rn as WeappLibComponentJson, Rt as WeappVueConfig, Sn as NpmStrategy, St as WeappInjectRequestGlobalsConfig, T as ConfigEnv, Tn as SharedChunkDynamicImports, Tt as WeappInjectWebRuntimeGlobalsConfig, U as ComponentEntry, Un as WeappLibInternalDtsOptions, Ut as Alias, V as AppEntry, Vn as WeappLibEntryContext, Vt as WeappWevuConfig, W as Entry, Wn as WeappLibVueTscOptions, Wt as AliasOptions, X as ProjectConfig, Xn as WeappWebConfig, Xt as DeprecatedInlineDynamicImports, Y as WxmlDep, Yn as WeappManagedTypeScriptConfig, Yt as CopyOptions, Z as SubPackageMetaValue, Zt as GenerateDirsOptions, _n as NpmBuildOptions, _t as WeappAutoRoutesInclude, an as GenerateTemplateFactory, at as WeappTailwindcssOptions, b as ChangeEvent, bn as NpmPackageFilesConfig, bt as WeappBuildScopeObjectConfig, cn as GenerateTemplateScope, ct as AutoImportComponentsOption, dn as JsonConfig, dt as HandleWxmlOptions, en as GenerateFilenamesOptions, et as WeappAnalyzeConfig, fn as JsonMergeContext, ft as MultiPlatformConfig, gn as MpPlatform, gt as WeappAutoRoutesConfig, hn as JsonMergeStrategy, ht as WeappAppPreludeMode, in as GenerateTemplateEntry, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as StyleEntry, jt as WeappReactCompilerConfig, k as PluginOption, kn as StyleConfigEntry, kt as WeappPreloadNetwork, ln as GenerateTemplatesConfig, lt as EnhanceOptions, mn as JsonMergeStage, mt as WeappAppPreludeConfig, nn as GenerateTemplate, nt as WeappDebugConfig, on as GenerateTemplateFileSource, ot as WeappViteConfig, pn as JsonMergeFunction, pt as ScanWxmlOptions, q as ComponentsMap, qn as WeappManagedServerTsconfigConfig, qt as ChunksConfig, rn as GenerateTemplateContext, rt as WeappForwardConsoleConfig, sn as GenerateTemplateInlineSource, sr as WeappViteRuntime, st as AutoImportComponents, tn as GenerateOptions, tt as WeappAnalyzeHistoryConfig, un as JsFormat, ut as EnhanceWxmlOptions, vn as NpmDependencyPattern, vt as WeappAutoRoutesIncludePattern, w as ComputedDefinitions, wn as ResolvedAlias, wt as WeappInjectWeapiConfig, x as WeappVitePluginApi, xn as NpmPluginPackageConfig, xt as WeappHmrConfig, yn as NpmMainPackageConfig, yt as WeappBuildScopeConfig, z as ViteDevServer, zn as WeappLibConfig, zt as WeappVueTemplateConfig } from "./config-
|
|
3
|
+
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateFileType, A as Ref, An as StyleConfigObject, At as WeappPreloadRule, B as BindingErrorLike, Bn as WeappLibDtsOptions, Bt as WeappWebRuntimeConfig, Cn as NpmSubPackageConfig, Ct as WeappInjectRequestGlobalsTarget, D as MethodDefinitions, Dn as SharedChunkOverride, Dt as WeappMcpConfig, E as InlineConfig, En as SharedChunkMode, Et as WeappInjectWebRuntimeGlobalsTarget, F as RolldownPlugin, Fn as SubPackageStyleConfigObject, Ft as WeappRouteRules, G as EntryJsonFragment, Gn as WeappManagedAppTsconfigConfig, Gt as AlipayNpmMode, H as BaseEntry, Hn as WeappLibFileName, Ht as WeappWorkerConfig, I as RolldownPluginOption, In as SubPackageStyleEntry, It as WeappSubPackageConfig, J as ScanComponentItem, Jn as WeappManagedSharedTsconfigConfig, Jt as CopyGlobs, K as PageEntry, Kn as WeappManagedNodeTsconfigConfig, Kt as BuildNpmPackageMeta, L as RolldownWatchOptions, Ln as SubPackageStyleScope, Lt as WeappUniAppConfig, M as RolldownBuild, Mn as StyleScope, Mt as WeappReactConfig, N as RolldownOptions, Nn as SubPackage, Nt as WeappRequestRuntimeConfig, O as Plugin, On as SharedChunkStrategy, Ot as WeappNpmConfig, P as RolldownOutput, Pn as SubPackageStyleConfigEntry, Pt as WeappRouteRule, Q as UserConfig, Qn as WeappViteHostMeta, Qt as GenerateExtensionsOptions, R as RolldownWatcher, Rn as WeappLibComponentJson, Rt as WeappVueConfig, Sn as NpmStrategy, St as WeappInjectRequestGlobalsConfig, T as ConfigEnv, Tn as SharedChunkDynamicImports, Tt as WeappInjectWebRuntimeGlobalsConfig, U as ComponentEntry, Un as WeappLibInternalDtsOptions, Ut as Alias, V as AppEntry, Vn as WeappLibEntryContext, Vt as WeappWevuConfig, W as Entry, Wn as WeappLibVueTscOptions, Wt as AliasOptions, X as ProjectConfig, Xn as WeappWebConfig, Xt as DeprecatedInlineDynamicImports, Y as WxmlDep, Yn as WeappManagedTypeScriptConfig, Yt as CopyOptions, Z as SubPackageMetaValue, Zt as GenerateDirsOptions, _n as NpmBuildOptions, _t as WeappAutoRoutesInclude, an as GenerateTemplateFactory, at as WeappTailwindcssOptions, b as ChangeEvent, bn as NpmPackageFilesConfig, bt as WeappBuildScopeObjectConfig, cn as GenerateTemplateScope, ct as AutoImportComponentsOption, dn as JsonConfig, dt as HandleWxmlOptions, en as GenerateFilenamesOptions, et as WeappAnalyzeConfig, fn as JsonMergeContext, ft as MultiPlatformConfig, gn as MpPlatform, gt as WeappAutoRoutesConfig, hn as JsonMergeStrategy, ht as WeappAppPreludeMode, in as GenerateTemplateEntry, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as StyleEntry, jt as WeappReactCompilerConfig, k as PluginOption, kn as StyleConfigEntry, kt as WeappPreloadNetwork, ln as GenerateTemplatesConfig, lt as EnhanceOptions, mn as JsonMergeStage, mt as WeappAppPreludeConfig, nn as GenerateTemplate, nt as WeappDebugConfig, on as GenerateTemplateFileSource, ot as WeappViteConfig, pn as JsonMergeFunction, pt as ScanWxmlOptions, q as ComponentsMap, qn as WeappManagedServerTsconfigConfig, qt as ChunksConfig, rn as GenerateTemplateContext, rt as WeappForwardConsoleConfig, sn as GenerateTemplateInlineSource, sr as WeappViteRuntime, st as AutoImportComponents, tn as GenerateOptions, tt as WeappAnalyzeHistoryConfig, un as JsFormat, ut as EnhanceWxmlOptions, vn as NpmDependencyPattern, vt as WeappAutoRoutesIncludePattern, w as ComputedDefinitions, wn as ResolvedAlias, wt as WeappInjectWeapiConfig, x as WeappVitePluginApi, xn as NpmPluginPackageConfig, xt as WeappHmrConfig, yn as NpmMainPackageConfig, yt as WeappBuildScopeConfig, z as ViteDevServer, zn as WeappLibConfig, zt as WeappVueTemplateConfig } from "./config-CDlfnbbb.mjs";
|
|
4
4
|
import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
|
|
5
5
|
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, NpmPackageFilesConfig, 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, StyleConfigEntry, StyleConfigObject, StyleEntry, StyleScope, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, type ViteDevServer, WeappAnalyzeBudgetConfig, WeappAnalyzeConfig, WeappAnalyzeHistoryConfig, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, WeappBuildScopeConfig, WeappBuildScopeObjectConfig, WeappDebugConfig, WeappForwardConsoleConfig, WeappForwardConsoleLogLevel, WeappHmrConfig, type WeappI18nConfig, WeappInjectRequestGlobalsConfig, WeappInjectRequestGlobalsTarget, WeappInjectWeapiConfig, WeappInjectWebRuntimeGlobalsConfig, WeappInjectWebRuntimeGlobalsTarget, WeappLibComponentJson, WeappLibConfig, WeappLibDtsOptions, WeappLibEntryContext, WeappLibFileName, WeappLibInternalDtsOptions, WeappLibVueTscOptions, WeappManagedAppTsconfigConfig, WeappManagedNodeTsconfigConfig, WeappManagedServerTsconfigConfig, WeappManagedSharedTsconfigConfig, WeappManagedTypeScriptConfig, WeappMcpConfig, WeappNpmConfig, WeappPreloadNetwork, WeappPreloadRule, WeappReactCompilerConfig, WeappReactConfig, WeappRequestRuntimeConfig, WeappRouteRule, WeappRouteRules, WeappSubPackageConfig, WeappTailwindcssOptions, WeappUniAppConfig, WeappViteConfig, type WeappViteHostMeta, WeappVitePluginApi, type WeappViteRuntime, WeappVueConfig, WeappVueTemplateConfig, WeappWebConfig, WeappWebRuntimeConfig, WeappWevuConfig, WeappWorkerConfig, WxmlDep };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
//#region src/auto-import-presets/wevu.ts
|
|
2
|
+
const wevu = { wevu: [
|
|
3
|
+
"createApp",
|
|
4
|
+
"defineComponent",
|
|
5
|
+
"defineProps",
|
|
6
|
+
"withDefaults",
|
|
7
|
+
"defineEmits",
|
|
8
|
+
"defineSlots",
|
|
9
|
+
"defineExpose",
|
|
10
|
+
"defineModel",
|
|
11
|
+
"defineOptions",
|
|
12
|
+
"defineAppJson",
|
|
13
|
+
"definePageJson",
|
|
14
|
+
"defineComponentJson",
|
|
15
|
+
"defineSitemapJson",
|
|
16
|
+
"defineThemeJson",
|
|
17
|
+
"definePageMeta",
|
|
18
|
+
"defineAppSetup",
|
|
19
|
+
"ref",
|
|
20
|
+
"customRef",
|
|
21
|
+
"reactive",
|
|
22
|
+
"shallowRef",
|
|
23
|
+
"shallowReactive",
|
|
24
|
+
"readonly",
|
|
25
|
+
"shallowReadonly",
|
|
26
|
+
"computed",
|
|
27
|
+
"watch",
|
|
28
|
+
"watchEffect",
|
|
29
|
+
"watchPostEffect",
|
|
30
|
+
"watchSyncEffect",
|
|
31
|
+
"effectScope",
|
|
32
|
+
"getCurrentScope",
|
|
33
|
+
"onScopeDispose",
|
|
34
|
+
"toRef",
|
|
35
|
+
"toRefs",
|
|
36
|
+
"unref",
|
|
37
|
+
"toValue",
|
|
38
|
+
"triggerRef",
|
|
39
|
+
"toRaw",
|
|
40
|
+
"markRaw",
|
|
41
|
+
"isRef",
|
|
42
|
+
"isReactive",
|
|
43
|
+
"isShallowRef",
|
|
44
|
+
"isShallowReactive",
|
|
45
|
+
"isRaw",
|
|
46
|
+
"isReadonly",
|
|
47
|
+
"isProxy",
|
|
48
|
+
"nextTick",
|
|
49
|
+
"useAsyncDerivation",
|
|
50
|
+
"effect",
|
|
51
|
+
"stop",
|
|
52
|
+
"batch",
|
|
53
|
+
"startBatch",
|
|
54
|
+
"endBatch",
|
|
55
|
+
"traverse",
|
|
56
|
+
"onLaunch",
|
|
57
|
+
"onShow",
|
|
58
|
+
"onHide",
|
|
59
|
+
"onError",
|
|
60
|
+
"onPageNotFound",
|
|
61
|
+
"onUnhandledRejection",
|
|
62
|
+
"onThemeChange",
|
|
63
|
+
"onMemoryWarning",
|
|
64
|
+
"onLoad",
|
|
65
|
+
"onReady",
|
|
66
|
+
"onUnload",
|
|
67
|
+
"onPullDownRefresh",
|
|
68
|
+
"onReachBottom",
|
|
69
|
+
"onPageScroll",
|
|
70
|
+
"onRouteDone",
|
|
71
|
+
"onTabItemTap",
|
|
72
|
+
"onResize",
|
|
73
|
+
"onShareAppMessage",
|
|
74
|
+
"onShareTimeline",
|
|
75
|
+
"onAddToFavorites",
|
|
76
|
+
"onSaveExitState",
|
|
77
|
+
"onAttached",
|
|
78
|
+
"onDetached",
|
|
79
|
+
"onMoved",
|
|
80
|
+
"onBeforeMount",
|
|
81
|
+
"onMounted",
|
|
82
|
+
"onBeforeUpdate",
|
|
83
|
+
"onUpdated",
|
|
84
|
+
"onBeforeUnmount",
|
|
85
|
+
"onUnmounted",
|
|
86
|
+
"onActivated",
|
|
87
|
+
"onDeactivated",
|
|
88
|
+
"onErrorCaptured",
|
|
89
|
+
"onServerPrefetch",
|
|
90
|
+
"getCurrentInstance",
|
|
91
|
+
"getCurrentSetupContext",
|
|
92
|
+
"provide",
|
|
93
|
+
"inject",
|
|
94
|
+
"hasInjectionContext",
|
|
95
|
+
"provideGlobal",
|
|
96
|
+
"injectGlobal",
|
|
97
|
+
"useNativeInstance",
|
|
98
|
+
"useBindModel",
|
|
99
|
+
"useChangeModel",
|
|
100
|
+
"useIntersectionObserver",
|
|
101
|
+
"useElementIntersectionObserver",
|
|
102
|
+
"useSelectorQuery",
|
|
103
|
+
"useBoundingClientRect",
|
|
104
|
+
"useSelectorFields",
|
|
105
|
+
"useScrollOffset",
|
|
106
|
+
"useDisposables",
|
|
107
|
+
"usePageLayout",
|
|
108
|
+
"setPageLayout",
|
|
109
|
+
"usePageStack",
|
|
110
|
+
"getCurrentPageStackSnapshot",
|
|
111
|
+
"useNavigationBarMetrics",
|
|
112
|
+
"getNavigationBarMetrics",
|
|
113
|
+
"usePageScrollThrottle",
|
|
114
|
+
"useUpdatePerformanceListener",
|
|
115
|
+
"useAsyncPullDownRefresh",
|
|
116
|
+
"use",
|
|
117
|
+
"mergeModels",
|
|
118
|
+
"useModel",
|
|
119
|
+
"useAttrs",
|
|
120
|
+
"useSlots",
|
|
121
|
+
"useTemplateRef",
|
|
122
|
+
"setWevuDefaults",
|
|
123
|
+
"resetWevuDefaults",
|
|
124
|
+
"markNoSetData",
|
|
125
|
+
"isNoSetData",
|
|
126
|
+
"addMutationRecorder",
|
|
127
|
+
"removeMutationRecorder"
|
|
128
|
+
] };
|
|
129
|
+
//#endregion
|
|
130
|
+
export { wevu as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/auto-import-presets/wevu-router.ts
|
|
2
|
+
const wevuRouter = { "wevu/router": [
|
|
3
|
+
"createRouter",
|
|
4
|
+
"useRouter",
|
|
5
|
+
"useRoute",
|
|
6
|
+
"useNativeRouter",
|
|
7
|
+
"useNativePageRouter",
|
|
8
|
+
"resolveRouteLocation",
|
|
9
|
+
"parseQuery",
|
|
10
|
+
"stringifyQuery",
|
|
11
|
+
"createNavigationFailure",
|
|
12
|
+
"isNavigationFailure"
|
|
13
|
+
] };
|
|
14
|
+
//#endregion
|
|
15
|
+
export { wevuRouter as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.4",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -93,7 +93,19 @@
|
|
|
93
93
|
"types": "./client.d.ts"
|
|
94
94
|
},
|
|
95
95
|
"./package.json": "./package.json",
|
|
96
|
-
"./*": "./*"
|
|
96
|
+
"./*": "./*",
|
|
97
|
+
"./auto-import-presets": {
|
|
98
|
+
"types": "./dist/auto-import-presets.d.mts",
|
|
99
|
+
"import": "./dist/auto-import-presets.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./auto-import-presets/wevu": {
|
|
102
|
+
"types": "./dist/auto-import-presets/wevu.d.mts",
|
|
103
|
+
"import": "./dist/auto-import-presets/wevu.mjs"
|
|
104
|
+
},
|
|
105
|
+
"./auto-import-presets/wevu-router": {
|
|
106
|
+
"types": "./dist/auto-import-presets/wevu-router.d.mts",
|
|
107
|
+
"import": "./dist/auto-import-presets/wevu-router.mjs"
|
|
108
|
+
}
|
|
97
109
|
},
|
|
98
110
|
"main": "./dist/index.mjs",
|
|
99
111
|
"module": "./dist/index.mjs",
|
|
@@ -117,34 +129,34 @@
|
|
|
117
129
|
"registry": "https://registry.npmjs.org"
|
|
118
130
|
},
|
|
119
131
|
"dependencies": {
|
|
120
|
-
"@babel/preset-env": "^8.0.
|
|
132
|
+
"@babel/preset-env": "^8.0.6",
|
|
121
133
|
"@babel/preset-typescript": "^8.0.1",
|
|
122
134
|
"@jridgewell/remapping": "^2.3.5",
|
|
123
135
|
"@vercel/detect-agent": "^1.2.5",
|
|
124
136
|
"@volar/typescript": "^2.4.28",
|
|
125
137
|
"@vue/language-core": "^3.3.11",
|
|
126
|
-
"@weapp-core/constants": "0.2.
|
|
127
|
-
"@weapp-core/init": "6.0.
|
|
128
|
-
"@weapp-core/logger": "3.1.
|
|
129
|
-
"@weapp-core/schematics": "6.2.
|
|
130
|
-
"@weapp-core/shared": "3.2.
|
|
131
|
-
"@weapp-vite/ast": "7.1.
|
|
132
|
-
"@weapp-vite/eslint": "0.2.
|
|
133
|
-
"@weapp-vite/i18n": "0.2.
|
|
134
|
-
"@weapp-vite/mcp": "1.5.
|
|
135
|
-
"@weapp-vite/miniprogram-automator": "1.2.
|
|
136
|
-
"@weapp-vite/volar": "2.1.
|
|
137
|
-
"@weapp-vite/web": "1.5.
|
|
138
|
-
"@wevu/api": "0.3.
|
|
139
|
-
"@wevu/web-apis": "1.
|
|
138
|
+
"@weapp-core/constants": "0.2.5",
|
|
139
|
+
"@weapp-core/init": "6.0.21",
|
|
140
|
+
"@weapp-core/logger": "3.1.5",
|
|
141
|
+
"@weapp-core/schematics": "6.2.5",
|
|
142
|
+
"@weapp-core/shared": "3.2.4",
|
|
143
|
+
"@weapp-vite/ast": "7.1.4",
|
|
144
|
+
"@weapp-vite/eslint": "0.2.6",
|
|
145
|
+
"@weapp-vite/i18n": "0.2.5",
|
|
146
|
+
"@weapp-vite/mcp": "1.5.5",
|
|
147
|
+
"@weapp-vite/miniprogram-automator": "1.2.20",
|
|
148
|
+
"@weapp-vite/volar": "2.1.9",
|
|
149
|
+
"@weapp-vite/web": "1.5.4",
|
|
150
|
+
"@wevu/api": "0.3.4",
|
|
151
|
+
"@wevu/web-apis": "1.3.1",
|
|
140
152
|
"cac": "^7.0.0",
|
|
141
153
|
"chokidar": "^5.0.0",
|
|
142
154
|
"comment-json": "^5.0.0",
|
|
143
155
|
"fdir": "^6.5.0",
|
|
144
156
|
"htmlparser2": "^12.0.0",
|
|
145
157
|
"local-pkg": "^1.2.1",
|
|
146
|
-
"lru-cache": "^11.5.
|
|
147
|
-
"magic-string": "^1.
|
|
158
|
+
"lru-cache": "^11.5.3",
|
|
159
|
+
"magic-string": "^1.4.1",
|
|
148
160
|
"merge": "^2.1.1",
|
|
149
161
|
"obug": "^3.0.0",
|
|
150
162
|
"p-queue": "^9.3.3",
|
|
@@ -153,25 +165,25 @@
|
|
|
153
165
|
"picomatch": "^4.0.7",
|
|
154
166
|
"postcss": "^8.5.28",
|
|
155
167
|
"postcss-value-parser": "4.2.0",
|
|
156
|
-
"rolldown": "1.2.
|
|
157
|
-
"rolldown-plugin-dts": "0.28.
|
|
158
|
-
"rolldown-require": "2.0.
|
|
168
|
+
"rolldown": "1.2.9",
|
|
169
|
+
"rolldown-plugin-dts": "0.28.6",
|
|
170
|
+
"rolldown-require": "2.0.31",
|
|
159
171
|
"semver": "^7.8.5",
|
|
160
172
|
"typescript": "^6.0.3",
|
|
161
173
|
"vite": "8.3.0",
|
|
162
|
-
"vite-plugin-performance": "2.0.
|
|
174
|
+
"vite-plugin-performance": "2.0.4",
|
|
163
175
|
"vite-tsconfig-paths": "^6.1.1",
|
|
164
|
-
"vue": "^3.5.
|
|
176
|
+
"vue": "^3.5.43",
|
|
165
177
|
"vue-tsc": "^3.3.11",
|
|
166
|
-
"weapp-ide-cli": "6.1.
|
|
167
|
-
"weapp-tailwindcss": "^5.5.
|
|
168
|
-
"wevu": "7.1.
|
|
178
|
+
"weapp-ide-cli": "6.1.6",
|
|
179
|
+
"weapp-tailwindcss": "^5.5.6",
|
|
180
|
+
"wevu": "7.1.4"
|
|
169
181
|
},
|
|
170
182
|
"optionalDependencies": {
|
|
171
183
|
"@swc/core": "^1.16.2"
|
|
172
184
|
},
|
|
173
185
|
"devDependencies": {
|
|
174
|
-
"oxc-parser": "^0.
|
|
186
|
+
"oxc-parser": "^0.150.0",
|
|
175
187
|
"oxc-walker": "^1.1.1",
|
|
176
188
|
"tailwindcss": "^4.3.3",
|
|
177
189
|
"ts-morph": "^28.0.0"
|
|
@@ -189,7 +201,7 @@
|
|
|
189
201
|
"benchmark:auto-import:ci": "node --import tsx scripts/benchmark-auto-import-ci.ts",
|
|
190
202
|
"test:dev": "vitest",
|
|
191
203
|
"test": "vitest run",
|
|
192
|
-
"test:types": "cd test-d/auto-routes-define-app-json && tsd --files \"**/*.test-d.ts\" && cd ../config-define-config && tsd --files \"**/*.test-d.ts\" && cd ../config-public-types && tsd --files \"**/*.test-d.ts\" && cd ../i18n-public-types && tsd --files \"**/*.test-d.ts\" && cd ../internal-src-types && tsd --files \"**/*.test-d.ts\" && cd ../resolvers-public-types && tsd --files \"**/*.test-d.ts\" && cd ../runtime-public-types && tsd --files \"**/*.test-d.ts\" && cd ../test-artifact-public-types && tsd --files \"**/*.test-d.ts\"",
|
|
204
|
+
"test:types": "cd test-d/auto-import-presets && tsd --files \"**/*.test-d.ts\" && cd ../auto-routes-define-app-json && tsd --files \"**/*.test-d.ts\" && cd ../config-define-config && tsd --files \"**/*.test-d.ts\" && cd ../config-public-types && tsd --files \"**/*.test-d.ts\" && cd ../i18n-public-types && tsd --files \"**/*.test-d.ts\" && cd ../internal-src-types && tsd --files \"**/*.test-d.ts\" && cd ../resolvers-public-types && tsd --files \"**/*.test-d.ts\" && cd ../runtime-public-types && tsd --files \"**/*.test-d.ts\" && cd ../test-artifact-public-types && tsd --files \"**/*.test-d.ts\"",
|
|
193
205
|
"lint:src": "eslint src --ext .ts",
|
|
194
206
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
195
207
|
"sync": "cnpm sync weapp-vite"
|
package/dist/file-BRQqRekU.mjs
DELETED