weapp-vite 6.17.8 → 6.18.1
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 +1 -0
- package/dist/auto-routes.d.mts +0 -1
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +478 -99
- package/dist/{config-DwMzkHsB.d.mts → config-D-5id5w2.d.mts} +106 -10
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-C2Rk_kcI.mjs → createContext-qv1RyqpU.mjs} +9910 -7164
- package/dist/docs/README.md +1 -0
- package/dist/docs/ai-workflows.md +9 -0
- package/dist/file-DhBNEU2N.mjs +2 -0
- package/dist/{file-CuTGX59g.mjs → file-Dva0fkcv.mjs} +31 -32
- package/dist/getInstance-Br8IaeSp.mjs +2 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -2
- package/dist/{runtime-xQwLUxkz.d.mts → runtime-Ee2HY6gR.d.mts} +0 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +22 -22
- package/dist/file-DdqbRF9E.mjs +0 -2
- package/dist/getInstance-DTOa17Qa.mjs +0 -2
package/dist/docs/README.md
CHANGED
|
@@ -110,6 +110,7 @@ function handleClick() {
|
|
|
110
110
|
- 需要做小程序截图对比验收时,优先使用 `weapp-vite compare` / `wv compare`
|
|
111
111
|
- 不要把小程序运行时截图退化成通用浏览器截图
|
|
112
112
|
- 需要看 DevTools 终端日志时,优先使用 `weapp-vite ide logs --open` 或 `wv ide logs --open`
|
|
113
|
+
- 评估 Rust/native 加速时,优先减少 JS 与 Rust 的往返次数;同一份源码上的多个 AST 分析应尽量批量传入、一次 parse、一次返回结构化结果,并保留 Babel/Oxc/Vue compiler fallback
|
|
113
114
|
|
|
114
115
|
推荐把下面这组意图映射写进项目根 `AGENTS.md`,让常见 AI 更稳定命中:
|
|
115
116
|
|
|
@@ -22,6 +22,15 @@
|
|
|
22
22
|
2. `node_modules/weapp-vite/dist/docs/*.md`
|
|
23
23
|
3. 当前仓库实际代码与 `vite.config.ts`
|
|
24
24
|
|
|
25
|
+
## Rust / Native 加速约束
|
|
26
|
+
|
|
27
|
+
当任务涉及 `@weapp-vite/ast-native`、Rust 插件或 native AST 加速时,先把 JS 与 Rust 的通信次数当作主要性能约束之一。
|
|
28
|
+
|
|
29
|
+
- 优先设计 batch analysis:一次传入源码、配置和所需分析项,一次 parse 后返回结构化结果。
|
|
30
|
+
- 不要把 parse、traverse、query、patch、generate 拆成多次跨语言请求,除非真实 profile 证明有净收益。
|
|
31
|
+
- native fast path 必须显式启用,并在加载、解析或运行失败时回退 Babel/Oxc/Vue compiler。
|
|
32
|
+
- 扩大 native 覆盖前要同时有 correctness 对齐测试和 HMR/build profile,不能只依赖 micro benchmark。
|
|
33
|
+
|
|
25
34
|
## 常用 AI 命令
|
|
26
35
|
|
|
27
36
|
CLI 同时支持完整命令 `weapp-vite` 与简写命令 `wv`,两者等价。
|
|
@@ -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-Br8IaeSp.mjs");
|
|
88
88
|
const compilerContext = getCompilerContext();
|
|
89
89
|
const service = compilerContext.autoRoutesService;
|
|
90
90
|
const reference = service?.getReference?.();
|
|
@@ -134,6 +134,13 @@ function isJsOrTs(name) {
|
|
|
134
134
|
function normalizeFileExtension(extension) {
|
|
135
135
|
return extension ? extension.startsWith(".") ? extension : `.${extension}` : "";
|
|
136
136
|
}
|
|
137
|
+
const knownEntryExtensions = new Set([
|
|
138
|
+
...configExtensions,
|
|
139
|
+
...jsExtensions,
|
|
140
|
+
...supportedCssLangs,
|
|
141
|
+
...templateExtensions,
|
|
142
|
+
...vueExtensions
|
|
143
|
+
].map(normalizeFileExtension));
|
|
137
144
|
function changeFileExtension(filePath, extension) {
|
|
138
145
|
if (typeof filePath !== "string") throw new TypeError(`Expected \`filePath\` to be a string, got \`${typeof filePath}\`.`);
|
|
139
146
|
if (typeof extension !== "string") throw new TypeError(`Expected \`extension\` to be a string, got \`${typeof extension}\`.`);
|
|
@@ -142,43 +149,33 @@ function changeFileExtension(filePath, extension) {
|
|
|
142
149
|
const basename = path.basename(filePath, path.extname(filePath));
|
|
143
150
|
return path.join(path.dirname(filePath), basename + extension);
|
|
144
151
|
}
|
|
152
|
+
async function findEntryByExtensions(filepath, extensions) {
|
|
153
|
+
const normalizedExtensions = extensions.map(normalizeFileExtension);
|
|
154
|
+
const currentExtension = path.extname(filepath);
|
|
155
|
+
const shouldReplaceExtension = currentExtension ? knownEntryExtensions.has(currentExtension) : false;
|
|
156
|
+
const predictions = normalizedExtensions.map((ext) => {
|
|
157
|
+
return shouldReplaceExtension ? changeFileExtension(filepath, ext) : `${filepath}${ext}`;
|
|
158
|
+
});
|
|
159
|
+
const matchedIndex = (await Promise.all(predictions.map((targetPath) => pathExistsCached(targetPath)))).findIndex(Boolean);
|
|
160
|
+
return {
|
|
161
|
+
predictions,
|
|
162
|
+
path: matchedIndex >= 0 ? predictions[matchedIndex] : void 0
|
|
163
|
+
};
|
|
164
|
+
}
|
|
145
165
|
async function findVueEntry(filepath) {
|
|
146
|
-
|
|
147
|
-
const targetPath = changeFileExtension(filepath, ext);
|
|
148
|
-
if (await pathExistsCached(targetPath)) return targetPath;
|
|
149
|
-
}
|
|
166
|
+
return (await findEntryByExtensions(filepath, vueExtensions)).path;
|
|
150
167
|
}
|
|
151
168
|
async function findJsEntry(filepath) {
|
|
152
|
-
|
|
153
|
-
for (const targetPath of predictions) if (await pathExistsCached(targetPath)) return {
|
|
154
|
-
path: targetPath,
|
|
155
|
-
predictions
|
|
156
|
-
};
|
|
157
|
-
return { predictions };
|
|
169
|
+
return findEntryByExtensions(filepath, jsExtensions);
|
|
158
170
|
}
|
|
159
171
|
async function findJsonEntry(filepath) {
|
|
160
|
-
|
|
161
|
-
for (const targetPath of predictions) if (await pathExistsCached(targetPath)) return {
|
|
162
|
-
predictions,
|
|
163
|
-
path: targetPath
|
|
164
|
-
};
|
|
165
|
-
return { predictions };
|
|
172
|
+
return findEntryByExtensions(filepath, configExtensions);
|
|
166
173
|
}
|
|
167
174
|
async function findCssEntry(filepath) {
|
|
168
|
-
|
|
169
|
-
for (const targetPath of predictions) if (await pathExistsCached(targetPath)) return {
|
|
170
|
-
predictions,
|
|
171
|
-
path: targetPath
|
|
172
|
-
};
|
|
173
|
-
return { predictions };
|
|
175
|
+
return findEntryByExtensions(filepath, supportedCssLangs);
|
|
174
176
|
}
|
|
175
177
|
async function findTemplateEntry(filepath) {
|
|
176
|
-
|
|
177
|
-
for (const targetPath of predictions) if (await pathExistsCached(targetPath)) return {
|
|
178
|
-
predictions,
|
|
179
|
-
path: targetPath
|
|
180
|
-
};
|
|
181
|
-
return { predictions };
|
|
178
|
+
return findEntryByExtensions(filepath, templateExtensions);
|
|
182
179
|
}
|
|
183
180
|
function isTemplate(filepath) {
|
|
184
181
|
return templateExtensions.some((ext) => filepath.endsWith(`.${ext}`));
|
|
@@ -223,11 +220,13 @@ async function isVueConfigCacheValid(vueFilePath, cache) {
|
|
|
223
220
|
* @param vueFilePath .vue 文件的路径
|
|
224
221
|
* @returns 提取的配置对象,如果不存在或解析失败则返回 undefined
|
|
225
222
|
*/
|
|
226
|
-
async function extractConfigFromVue(vueFilePath) {
|
|
223
|
+
async function extractConfigFromVue(vueFilePath, options) {
|
|
227
224
|
try {
|
|
228
|
-
const cached = vueConfigCache.get(vueFilePath);
|
|
225
|
+
const cached = options?.force ? void 0 : vueConfigCache.get(vueFilePath);
|
|
229
226
|
if (cached && await isVueConfigCacheValid(vueFilePath, cached)) return cached.config;
|
|
230
|
-
const
|
|
227
|
+
const content = options?.source ?? (options?.readSource ? await options.readSource() : await fs.readFile(vueFilePath, "utf-8"));
|
|
228
|
+
if (content === void 0) return;
|
|
229
|
+
const { descriptor, errors } = parse(content, { filename: vueFilePath });
|
|
231
230
|
if (errors.length > 0) return;
|
|
232
231
|
const mergedConfig = {};
|
|
233
232
|
const macroDependencies = [];
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $n as WebPlatform, A as Ref, Bn as WeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as ResolveWeappViteTargetOptions, Hn as createWeappViteHostMeta, I as RolldownPluginOption, Jn as WeappVitePlatform, Kn as ResolvedWeappViteTarget, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteTargetKind, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Xn as WeappViteTargetDescriptor, Yn as WeappViteRuntime, Zn as WeappViteTargetInput, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as getSupportedWeappVitePlatforms, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as isWebPlatform, o as UserConfigFnObject, p as Sitemap, qn as WEB_PLATFORM_ALIASES, r as UserConfigFn, rr as resolveWeappViteTarget, s as UserConfigFnObjectPlain, t as UserConfig, tr as getSupportedWeappViteTargetDescriptors, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as WEAPP_VITE_HOST_NAME } from "./config-
|
|
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-
|
|
3
|
-
|
|
1
|
+
import { $n as WebPlatform, A as Ref, Bn as WeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Gn as ResolveWeappViteTargetOptions, Hn as createWeappViteHostMeta, I as RolldownPluginOption, Jn as WeappVitePlatform, Kn as ResolvedWeappViteTarget, L as RolldownWatchOptions, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Qn as WeappViteTargetKind, R as RolldownWatcher, S as CompilerContext, T as ConfigEnv, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Xn as WeappViteTargetDescriptor, Yn as WeappViteRuntime, Zn as WeappViteTargetInput, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, er as getSupportedWeappVitePlatforms, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, j as ResolvedConfig, k as PluginOption, l as defineConfig, m as Theme, n as UserConfigExport, nr as isWebPlatform, o as UserConfigFnObject, p as Sitemap, qn as WEB_PLATFORM_ALIASES, r as UserConfigFn, rr as resolveWeappViteTarget, s as UserConfigFnObjectPlain, t as UserConfig, tr as getSupportedWeappViteTargetDescriptors, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as WEAPP_VITE_HOST_NAME } from "./config-D-5id5w2.mjs";
|
|
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";
|
|
4
3
|
//#region src/createContext.d.ts
|
|
5
4
|
interface CreateCompilerContextOptions extends Partial<LoadConfigOptions> {
|
|
6
5
|
key?: string;
|
|
7
6
|
syncSupportFiles?: boolean;
|
|
7
|
+
syncAutoImportSupportFiles?: boolean;
|
|
8
8
|
preloadAppEntry?: boolean;
|
|
9
9
|
}
|
|
10
10
|
/**
|
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-qv1RyqpU.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-CRoKWQZn.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-D-5id5w2.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,6 +1,5 @@
|
|
|
1
|
-
import { Et as WeappMcpConfig } from "./config-
|
|
1
|
+
import { Et as WeappMcpConfig } from "./config-D-5id5w2.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
|
-
|
|
4
3
|
//#region src/mcp.d.ts
|
|
5
4
|
interface ResolvedWeappMcpConfig {
|
|
6
5
|
agentName?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComputedDefinitions, MethodDefinitions, WevuPageLayoutMap } from "wevu";
|
|
2
|
-
|
|
3
2
|
//#region src/plugins/vue/createWevuComponent.d.ts
|
|
4
3
|
interface WevuComponentOptions<D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions> {
|
|
5
4
|
data?: () => D;
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { type LayoutHostBridge, type LayoutHostContext, type LayoutHostEntry, type LayoutHostResolveOptions, type LayoutHostResolver, type WevuComponentOptions, createWevuComponent, defineEmits, defineProps, registerLayoutHosts, resolveLayoutHost, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as Resolver } from "./index-Bmclyjw8.mjs";
|
|
2
2
|
import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-C7fCmf92.mjs";
|
|
3
|
-
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateTemplateFileSource, A as Ref, An as WeappLibFileName, At as WeappRouteRules, B as BindingErrorLike, Bn as WeappViteHostMeta, Bt as BuildNpmPackageMeta, Cn as SubPackageStyleConfigObject, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as WeappLibConfig, Dt as WeappNpmConfig, E as InlineConfig, En as WeappLibComponentJson, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappManagedServerTsconfigConfig, Ft as WeappWevuConfig, G as EntryJsonFragment, Gt as GenerateExtensionsOptions, H as BaseEntry, Ht as CopyGlobs, I as RolldownPluginOption, In as WeappManagedSharedTsconfigConfig, It as WeappWorkerConfig, J as ScanComponentItem, Jt as GenerateOptions, K as PageEntry, Kt as GenerateFileType, L as RolldownWatchOptions, Ln as WeappManagedTypeScriptConfig, Lt as Alias, M as RolldownBuild, Mn as WeappLibVueTscOptions, Mt as WeappVueConfig, N as RolldownOptions, Nn as WeappManagedAppTsconfigConfig, Nt as WeappVueTemplateConfig, O as Plugin, On as WeappLibDtsOptions, Ot as WeappRequestRuntimeConfig, P as RolldownOutput, Pn as WeappManagedNodeTsconfigConfig, Pt as WeappWebRuntimeConfig, Q as UserConfig, Qt as GenerateTemplateFactory, R as RolldownWatcher, Rn as WeappWebConfig, Rt as AliasOptions, Sn as SubPackageStyleConfigEntry, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackageStyleScope, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as CopyOptions, V as AppEntry, Vt as ChunksConfig, W as Entry, Wt as GenerateDirsOptions, X as ProjectConfig, Xt as GenerateTemplateContext, Y as WxmlDep, Yn as WeappViteRuntime, Yt as GenerateTemplate, Z as SubPackageMetaValue, Zt as GenerateTemplateEntry, _n as SharedChunkDynamicImports, _t as WeappAutoRoutesIncludePattern, an as JsonMergeContext, at as WeappViteConfig, b as ChangeEvent, bn as SharedChunkStrategy, bt as WeappHmrConfig, cn as JsonMergeStrategy, ct as EnhanceOptions, dn as NpmDependencyPattern, dt as MultiPlatformConfig, en as GenerateTemplateInlineSource, et as WeappAnalyzeConfig, fn as NpmMainPackageConfig, ft as ScanWxmlOptions, gn as ResolvedAlias, gt as WeappAutoRoutesInclude, hn as NpmSubPackageConfig, ht as WeappAutoRoutesConfig, in as JsonConfig, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibInternalDtsOptions, jt as WeappSubPackageConfig, k as PluginOption, kn as WeappLibEntryContext, kt as WeappRouteRule, ln as MpPlatform, lt as EnhanceWxmlOptions, mn as NpmStrategy, mt as WeappAppPreludeMode, nn as GenerateTemplatesConfig, nt as WeappDebugConfig, on as JsonMergeFunction, ot as AutoImportComponents, pn as NpmPluginPackageConfig, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateFilenamesOptions, rn as JsFormat, rt as WeappForwardConsoleConfig, sn as JsonMergeStage, st as AutoImportComponentsOption, tn as GenerateTemplateScope, tt as WeappAnalyzeHistoryConfig, un as NpmBuildOptions, ut as HandleWxmlOptions, vn as SharedChunkMode, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SubPackageStyleEntry, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SubPackage, xt as WeappInjectRequestGlobalsConfig, yn as SharedChunkOverride, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zt as AlipayNpmMode } from "./config-
|
|
3
|
+
import { $ as WeappAnalyzeBudgetConfig, $t as GenerateTemplateFileSource, A as Ref, An as WeappLibFileName, At as WeappRouteRules, B as BindingErrorLike, Bn as WeappViteHostMeta, Bt as BuildNpmPackageMeta, Cn as SubPackageStyleConfigObject, Ct as WeappInjectWeapiConfig, D as MethodDefinitions, Dn as WeappLibConfig, Dt as WeappNpmConfig, E as InlineConfig, En as WeappLibComponentJson, Et as WeappMcpConfig, F as RolldownPlugin, Fn as WeappManagedServerTsconfigConfig, Ft as WeappWevuConfig, G as EntryJsonFragment, Gt as GenerateExtensionsOptions, H as BaseEntry, Ht as CopyGlobs, I as RolldownPluginOption, In as WeappManagedSharedTsconfigConfig, It as WeappWorkerConfig, J as ScanComponentItem, Jt as GenerateOptions, K as PageEntry, Kt as GenerateFileType, L as RolldownWatchOptions, Ln as WeappManagedTypeScriptConfig, Lt as Alias, M as RolldownBuild, Mn as WeappLibVueTscOptions, Mt as WeappVueConfig, N as RolldownOptions, Nn as WeappManagedAppTsconfigConfig, Nt as WeappVueTemplateConfig, O as Plugin, On as WeappLibDtsOptions, Ot as WeappRequestRuntimeConfig, P as RolldownOutput, Pn as WeappManagedNodeTsconfigConfig, Pt as WeappWebRuntimeConfig, Q as UserConfig, Qt as GenerateTemplateFactory, R as RolldownWatcher, Rn as WeappWebConfig, Rt as AliasOptions, Sn as SubPackageStyleConfigEntry, St as WeappInjectRequestGlobalsTarget, T as ConfigEnv, Tn as SubPackageStyleScope, Tt as WeappInjectWebRuntimeGlobalsTarget, U as ComponentEntry, Ut as CopyOptions, V as AppEntry, Vt as ChunksConfig, W as Entry, Wt as GenerateDirsOptions, X as ProjectConfig, Xt as GenerateTemplateContext, Y as WxmlDep, Yn as WeappViteRuntime, Yt as GenerateTemplate, Z as SubPackageMetaValue, Zt as GenerateTemplateEntry, _n as SharedChunkDynamicImports, _t as WeappAutoRoutesIncludePattern, an as JsonMergeContext, at as WeappViteConfig, b as ChangeEvent, bn as SharedChunkStrategy, bt as WeappHmrConfig, cn as JsonMergeStrategy, ct as EnhanceOptions, dn as NpmDependencyPattern, dt as MultiPlatformConfig, en as GenerateTemplateInlineSource, et as WeappAnalyzeConfig, fn as NpmMainPackageConfig, ft as ScanWxmlOptions, gn as ResolvedAlias, gt as WeappAutoRoutesInclude, hn as NpmSubPackageConfig, ht as WeappAutoRoutesConfig, in as JsonConfig, it as WeappForwardConsoleLogLevel, j as ResolvedConfig, jn as WeappLibInternalDtsOptions, jt as WeappSubPackageConfig, k as PluginOption, kn as WeappLibEntryContext, kt as WeappRouteRule, ln as MpPlatform, lt as EnhanceWxmlOptions, mn as NpmStrategy, mt as WeappAppPreludeMode, nn as GenerateTemplatesConfig, nt as WeappDebugConfig, on as JsonMergeFunction, ot as AutoImportComponents, pn as NpmPluginPackageConfig, pt as WeappAppPreludeConfig, q as ComponentsMap, qt as GenerateFilenamesOptions, rn as JsFormat, rt as WeappForwardConsoleConfig, sn as JsonMergeStage, st as AutoImportComponentsOption, tn as GenerateTemplateScope, tt as WeappAnalyzeHistoryConfig, un as NpmBuildOptions, ut as HandleWxmlOptions, vn as SharedChunkMode, vt as WeappBuildScopeConfig, w as ComputedDefinitions, wn as SubPackageStyleEntry, wt as WeappInjectWebRuntimeGlobalsConfig, x as WeappVitePluginApi, xn as SubPackage, xt as WeappInjectRequestGlobalsConfig, yn as SharedChunkOverride, yt as WeappBuildScopeObjectConfig, z as ViteDevServer, zt as AlipayNpmMode } from "./config-D-5id5w2.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, 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, 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.
|
|
4
|
+
"version": "6.18.1",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -95,55 +95,55 @@
|
|
|
95
95
|
"@jridgewell/remapping": "^2.3.5",
|
|
96
96
|
"@vercel/detect-agent": "^1.2.3",
|
|
97
97
|
"@volar/typescript": "^2.4.28",
|
|
98
|
-
"@vue/language-core": "^3.3.
|
|
98
|
+
"@vue/language-core": "^3.3.7",
|
|
99
99
|
"cac": "^7.0.0",
|
|
100
100
|
"chokidar": "^5.0.0",
|
|
101
101
|
"comment-json": "^5.0.0",
|
|
102
102
|
"fdir": "^6.5.0",
|
|
103
103
|
"htmlparser2": "^12.0.0",
|
|
104
104
|
"local-pkg": "^1.2.1",
|
|
105
|
-
"lru-cache": "^11.5.
|
|
105
|
+
"lru-cache": "^11.5.2",
|
|
106
106
|
"magic-string": "^0.30.21",
|
|
107
107
|
"merge": "^2.1.1",
|
|
108
108
|
"obug": "^2.1.3",
|
|
109
|
-
"p-queue": "^9.3.
|
|
110
|
-
"package-manager-detector": "^1.
|
|
109
|
+
"p-queue": "^9.3.1",
|
|
110
|
+
"package-manager-detector": "^1.7.0",
|
|
111
111
|
"pathe": "^2.0.3",
|
|
112
|
-
"picomatch": "^4.0.
|
|
112
|
+
"picomatch": "^4.0.5",
|
|
113
113
|
"postcss": "^8.5.16",
|
|
114
|
-
"rolldown": "1.1.
|
|
115
|
-
"rolldown-plugin-dts": "0.
|
|
114
|
+
"rolldown": "1.1.5",
|
|
115
|
+
"rolldown-plugin-dts": "0.27.4",
|
|
116
116
|
"semver": "^7.8.5",
|
|
117
117
|
"typescript": "^6.0.3",
|
|
118
|
-
"vite": "8.1.
|
|
118
|
+
"vite": "8.1.4",
|
|
119
119
|
"vite-tsconfig-paths": "^6.1.1",
|
|
120
120
|
"vue": "^3.5.39",
|
|
121
|
-
"vue-tsc": "^3.3.
|
|
121
|
+
"vue-tsc": "^3.3.7",
|
|
122
122
|
"@weapp-core/constants": "0.1.12",
|
|
123
123
|
"@weapp-core/init": "6.0.11",
|
|
124
124
|
"@weapp-core/logger": "3.1.1",
|
|
125
|
-
"@weapp-core/schematics": "6.0.4",
|
|
126
125
|
"@weapp-core/shared": "3.0.5",
|
|
127
|
-
"@weapp-
|
|
128
|
-
"@weapp-vite/
|
|
129
|
-
"@weapp-vite/
|
|
130
|
-
"@weapp-vite/
|
|
131
|
-
"@weapp-vite/web": "1.3.
|
|
126
|
+
"@weapp-core/schematics": "6.0.4",
|
|
127
|
+
"@weapp-vite/ast": "6.18.1",
|
|
128
|
+
"@weapp-vite/mcp": "1.4.8",
|
|
129
|
+
"@weapp-vite/miniprogram-automator": "1.2.7",
|
|
130
|
+
"@weapp-vite/web": "1.3.34",
|
|
132
131
|
"@wevu/api": "0.2.11",
|
|
133
|
-
"@
|
|
134
|
-
"rolldown-require": "2.0.
|
|
132
|
+
"@weapp-vite/volar": "2.1.0",
|
|
133
|
+
"rolldown-require": "2.0.20",
|
|
135
134
|
"vite-plugin-performance": "2.0.1",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
135
|
+
"wevu": "6.18.1",
|
|
136
|
+
"weapp-ide-cli": "5.4.12",
|
|
137
|
+
"@wevu/web-apis": "1.2.26"
|
|
138
138
|
},
|
|
139
139
|
"publishConfig": {
|
|
140
140
|
"access": "public",
|
|
141
141
|
"registry": "https://registry.npmjs.org"
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
144
|
-
"oxc-parser": "^0.
|
|
144
|
+
"oxc-parser": "^0.139.0",
|
|
145
145
|
"oxc-walker": "^1.0.0",
|
|
146
|
-
"tailwindcss": "^4.3.
|
|
146
|
+
"tailwindcss": "^4.3.2",
|
|
147
147
|
"ts-morph": "^28.0.0"
|
|
148
148
|
},
|
|
149
149
|
"scripts": {
|
package/dist/file-DdqbRF9E.mjs
DELETED