weapp-vite 7.3.0 → 7.5.0
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 +154 -6
- package/bin/bootstrap.js +14 -1
- package/dist/adapters-CcHrsYaj.mjs +1 -0
- package/dist/analyze-ZJUvEdaY.mjs +248 -0
- package/dist/auto-import-components/resolvers.mjs +1 -2
- package/dist/auto-import-presets/wevu-router.mjs +1 -2
- package/dist/auto-import-presets/wevu.mjs +1 -2
- package/dist/auto-routes.mjs +2 -1
- package/dist/budget-BD7VqLCl.d.mts +178 -0
- package/dist/chunkStrategy-DRA5WpB-.mjs +1436 -0
- package/dist/cli-acceptance.d.mts +1 -0
- package/dist/cli-acceptance.mjs +21 -0
- package/dist/cli.mjs +1918 -2089
- package/dist/compatibility.mjs +1 -2
- package/dist/{config-1J4rToMR.d.mts → config-V0L-IAJf.d.mts} +419 -39
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/constants-DEZdcsMn.mjs +85 -0
- package/dist/{createContext-cqr9Y4EV.mjs → createCompilerContextInstance-DJH_P_nZ.mjs} +17602 -15886
- package/dist/createContext-BqYzHhY9.mjs +12 -0
- package/dist/dashboard/analyze.d.mts +48 -0
- package/dist/dashboard/analyze.mjs +1 -0
- package/dist/dashboard/vite.d.mts +9 -0
- package/dist/dashboard/vite.mjs +44 -0
- package/dist/dashboard-DvqF3Key.mjs +1842 -0
- package/dist/dashboard.d.mts +3 -0
- package/dist/dashboard.mjs +1 -0
- package/dist/dashboardViteBridge-Dy3nAD4m.mjs +299 -0
- package/dist/dev-fR5GiJRO.mjs +63 -0
- package/dist/devProvider-BGBkw28J.mjs +1050 -0
- package/dist/docs/README.md +154 -6
- package/dist/docs/ai-workflows.md +4 -0
- package/dist/docs/doctor.md +38 -0
- package/dist/docs/getting-started.md +52 -1
- package/dist/docs/index.md +6 -2
- package/dist/docs/mcp.md +94 -1
- package/dist/docs/testing.md +29 -2
- package/dist/docs/troubleshooting.md +8 -0
- package/dist/docs/uni-app-component-libraries.md +8 -7
- package/dist/docs/upload.md +226 -0
- package/dist/docs/vite-plugin.md +171 -0
- package/dist/docs/vue-sfc.md +19 -0
- package/dist/docs/weapp-config.md +374 -2
- package/dist/docs/wevu-authoring.md +10 -0
- package/dist/doctor-worker.d.mts +1 -0
- package/dist/doctor-worker.mjs +59 -0
- package/dist/doctor.d.mts +144 -0
- package/dist/doctor.mjs +848 -0
- package/dist/eslint.mjs +1 -2
- package/dist/file-DRb4eWqw.mjs +1 -0
- package/dist/{file-CKB0Tn8Z.mjs → file-sC3jD7Fh.mjs} +16 -93
- package/dist/files-BqxFIPRp.mjs +45 -0
- package/dist/getInstance-DiGSzBNI.mjs +28 -0
- package/dist/getInstance-SiE6WZRh.mjs +1 -0
- package/dist/index-C9HjUX5c.d.mts +741 -0
- package/dist/index.d.mts +10 -8
- package/dist/index.mjs +3 -2
- package/dist/json.d.mts +1 -1
- package/dist/json.mjs +1 -2
- package/dist/lifecycle-BROTlwSL.mjs +320 -0
- package/dist/loadConfig-C3BQhz7F.mjs +59 -0
- package/dist/loadConfig-VGtBF4qm.mjs +1 -0
- package/dist/logger-DGn5iEVN.mjs +1 -0
- package/dist/{mcp-BG6TliEg.mjs → mcp-Cj8Maqo6.mjs} +16 -7
- package/dist/mcp-D3Yh24Cj.mjs +529 -0
- package/dist/mcp.d.mts +6 -3
- package/dist/mcp.mjs +1 -2
- package/dist/package-7swhyLmf.mjs +91 -0
- package/dist/path-doV773b7.mjs +103 -0
- package/dist/platform-CnkySBKz.mjs +175 -0
- package/dist/processCleanup-B6KA30Zc.mjs +77 -0
- package/dist/protocol-vg8HGJ4n.mjs +138 -0
- package/dist/{resolvers-icNxkpcy.mjs → resolvers-Dod-euqX.mjs} +4 -1
- package/dist/resolvers.mjs +1 -2
- package/dist/runtime.mjs +1 -2
- package/dist/session-PskhD-nZ.mjs +390 -0
- package/dist/test.d.mts +1 -0
- package/dist/test.mjs +201 -44
- package/dist/types.d.mts +2 -2
- package/dist/upload-D4msblBf.mjs +562 -0
- package/dist/upload-worker.d.mts +1 -0
- package/dist/upload-worker.mjs +161 -0
- package/dist/utils-CJSCgEj6.mjs +1094 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.mjs +270 -0
- package/dist/volar.d.mts +2 -2
- package/dist/web-apis.mjs +1 -2
- package/package.json +85 -37
- package/dist/file-CvgkbGIx.mjs +0 -2
- package/dist/getInstance-CZ1s63zd.mjs +0 -2
- package/dist/logger-mt4mSTqV.mjs +0 -2
package/dist/vite.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./config-V0L-IAJf.mjs";
|
|
2
|
+
import { ConfigEnv, Plugin } from "vite";
|
|
3
|
+
//#region src/vite/index.d.ts
|
|
4
|
+
/** 通过顶层 weapp 配置激活标准 Vite 小程序编译。 */
|
|
5
|
+
export declare function weapp(): Plugin[];
|
|
6
|
+
declare module 'vite' {
|
|
7
|
+
function defineConfig<T extends (env: ConfigEnv) => UserConfig | Promise<UserConfig>>(config: T): T;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
package/dist/vite.mjs
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { i as isWeappViteHost } from "./pluginHost--CaeyWpA.mjs";
|
|
2
|
+
import { t as bindHostLifecycle } from "./lifecycle-BROTlwSL.mjs";
|
|
3
|
+
import process from "node:process";
|
|
4
|
+
import path from "pathe";
|
|
5
|
+
//#region src/vite/environment.ts
|
|
6
|
+
/** 环境钩子捕获本轮会话,旧环境关闭不能清理重启后的新会话。 */
|
|
7
|
+
function createSessionEnvironmentPlugin(session, serve) {
|
|
8
|
+
return {
|
|
9
|
+
name: "weapp-vite:session-environment",
|
|
10
|
+
enforce: "pre",
|
|
11
|
+
options: {
|
|
12
|
+
order: "pre",
|
|
13
|
+
async handler() {
|
|
14
|
+
if (serve) return;
|
|
15
|
+
try {
|
|
16
|
+
await session.validateEntries();
|
|
17
|
+
} catch (error) {
|
|
18
|
+
if (!this.meta.watchMode) await session.close().catch(() => {});
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
buildStart: {
|
|
24
|
+
order: "pre",
|
|
25
|
+
async handler() {
|
|
26
|
+
if (serve) return;
|
|
27
|
+
if (this.meta.watchMode) await session.validateEntries();
|
|
28
|
+
const dependencies = await session.buildDependencies();
|
|
29
|
+
for (const file of dependencies.watchFiles) this.addWatchFile(file);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
generateBundle: {
|
|
33
|
+
order: "post",
|
|
34
|
+
async handler() {
|
|
35
|
+
if (!serve) {
|
|
36
|
+
const dependencies = await session.buildDependencies();
|
|
37
|
+
for (const asset of dependencies.assets) this.emitFile(asset);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
writeBundle: {
|
|
42
|
+
order: "post",
|
|
43
|
+
sequential: true,
|
|
44
|
+
async handler() {
|
|
45
|
+
if (!serve) await session.publishDependencies();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
closeBundle: {
|
|
49
|
+
order: "post",
|
|
50
|
+
sequential: true,
|
|
51
|
+
async handler() {
|
|
52
|
+
if (!serve && !this.meta.watchMode) await session.close();
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
async closeWatcher() {
|
|
56
|
+
await session.close();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/vite/options.ts
|
|
62
|
+
async function resolvePlugins(options) {
|
|
63
|
+
const result = [];
|
|
64
|
+
for (const option of options ?? []) {
|
|
65
|
+
const resolved = await option;
|
|
66
|
+
if (Array.isArray(resolved)) result.push(...await resolvePlugins(resolved));
|
|
67
|
+
else if (resolved) result.push(resolved);
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/vite/slots.ts
|
|
73
|
+
const descriptors = [
|
|
74
|
+
["weapp-vite:runtime-provider:web-runtime", "pre"],
|
|
75
|
+
["@weapp-vite/web", "pre"],
|
|
76
|
+
["weapp-vite:module-graph-provider", "pre"],
|
|
77
|
+
["weapp-vite:stateful-style-client", "pre"],
|
|
78
|
+
["weapp-vite:hmr-input", "pre"],
|
|
79
|
+
["weapp-vite:stateful-hmr-sidecar", "pre"],
|
|
80
|
+
["weapp-vite:stateful-hmr-session", "post"],
|
|
81
|
+
...[
|
|
82
|
+
"config",
|
|
83
|
+
"watcher",
|
|
84
|
+
"wxml",
|
|
85
|
+
"json",
|
|
86
|
+
"scan",
|
|
87
|
+
"auto-routes",
|
|
88
|
+
"auto-import",
|
|
89
|
+
"npm",
|
|
90
|
+
"build",
|
|
91
|
+
"web"
|
|
92
|
+
].map((name) => [`weapp-runtime:${name}-service`]),
|
|
93
|
+
["weapp-vite:context", "pre"],
|
|
94
|
+
["weapp-vite:runtime-provider:native-miniprogram", "pre"],
|
|
95
|
+
["weapp-vite:runtime-provider:wevu-miniprogram", "pre"],
|
|
96
|
+
["weapp-vite:preflight", "pre"],
|
|
97
|
+
["weapp-vite:set-env", "pre"],
|
|
98
|
+
["weapp-vite:uni-app-compatibility", "pre"],
|
|
99
|
+
["weapp-vite:react", "pre"],
|
|
100
|
+
["weapp-vite:vue:resolver"],
|
|
101
|
+
["weapp-vite:vue:transform"],
|
|
102
|
+
["weapp-vite:vue:watch"],
|
|
103
|
+
["weapp-vite:wevu:page-features", "pre"],
|
|
104
|
+
["weapp-vite:asset", "post"],
|
|
105
|
+
["weapp-vite:auto-routes", "pre"],
|
|
106
|
+
["weapp-vite:auto-import", "pre"],
|
|
107
|
+
["weapp-vite:i18n", "pre"],
|
|
108
|
+
["weapp-vite:pre:native-style", "pre"],
|
|
109
|
+
["weapp-vite:pre", "pre"],
|
|
110
|
+
["weapp-vite:post", "post"],
|
|
111
|
+
["weapp-vite:wxs", "post"],
|
|
112
|
+
["weapp-vite:css-sidecar-source"],
|
|
113
|
+
["weapp-vite:oxc-runtime-helpers", "pre"],
|
|
114
|
+
["vite-tsconfig-paths", "pre"],
|
|
115
|
+
["weapp-vite:compiler:source", "pre"],
|
|
116
|
+
["weapp-vite:tailwindcss", "pre"],
|
|
117
|
+
["weapp-vite:css", "pre"],
|
|
118
|
+
["weapp-vite:project-config"],
|
|
119
|
+
["weapp-vite:project-config-directory"],
|
|
120
|
+
["weapp-vite:app-builder"],
|
|
121
|
+
["weapp-vite:worker-output"],
|
|
122
|
+
["weapp-vite:plugin-project-output"],
|
|
123
|
+
["weapp-vite:output-finalizer", "post"],
|
|
124
|
+
["weapp-vite:tailwindcss:output", "post"],
|
|
125
|
+
["weapp-vite:compiler:output", "post"],
|
|
126
|
+
["weapp-vite:lib-dts", "post"],
|
|
127
|
+
["weapp-vite:output-publication", "post"]
|
|
128
|
+
];
|
|
129
|
+
/** 延迟绑定保留钩子对象、过滤器与原始 this,转换链及 sourcemap 仍由 Vite 调度。 */
|
|
130
|
+
function createPluginSlots(apply) {
|
|
131
|
+
const delegates = /* @__PURE__ */ new Map();
|
|
132
|
+
const plugins = descriptors.map(([name, enforce]) => {
|
|
133
|
+
return {
|
|
134
|
+
name: name === "vite-tsconfig-paths" ? "weapp-vite:tsconfig-paths-slot" : name,
|
|
135
|
+
enforce,
|
|
136
|
+
apply,
|
|
137
|
+
config(config, env) {
|
|
138
|
+
const hook = delegates.get(name)?.config;
|
|
139
|
+
if (!hook) return;
|
|
140
|
+
return (typeof hook === "function" ? hook : hook.handler).call(this, config, env);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
const originals = plugins.map((plugin) => ({ ...plugin }));
|
|
145
|
+
return {
|
|
146
|
+
plugins,
|
|
147
|
+
bind(implementations) {
|
|
148
|
+
delegates.clear();
|
|
149
|
+
for (const [index, plugin] of plugins.entries()) {
|
|
150
|
+
for (const key of Reflect.ownKeys(plugin)) Reflect.deleteProperty(plugin, key);
|
|
151
|
+
Object.assign(plugin, originals[index]);
|
|
152
|
+
}
|
|
153
|
+
for (const implementation of implementations) {
|
|
154
|
+
const slot = descriptors.find(([name]) => name === implementation.name);
|
|
155
|
+
if (!slot || slot[1] !== implementation.enforce || delegates.has(implementation.name)) throw new Error(`[weapp-vite] 插件槽不匹配:${implementation.name}。请检查宿主插件支持矩阵。`);
|
|
156
|
+
delegates.set(implementation.name, implementation);
|
|
157
|
+
const target = plugins[descriptors.indexOf(slot)];
|
|
158
|
+
const config = target.config;
|
|
159
|
+
Object.assign(target, implementation, {
|
|
160
|
+
config,
|
|
161
|
+
apply
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/vite/index.ts
|
|
169
|
+
const PLUGIN_NAME = "weapp-vite:host";
|
|
170
|
+
/** 通过顶层 weapp 配置激活标准 Vite 小程序编译。 */
|
|
171
|
+
function weapp() {
|
|
172
|
+
let session;
|
|
173
|
+
let initializing = false;
|
|
174
|
+
let inactive = false;
|
|
175
|
+
let serveRequested = false;
|
|
176
|
+
const apply = (config) => !isWeappViteHost(config);
|
|
177
|
+
const slots = createPluginSlots(apply);
|
|
178
|
+
const coordinator = {
|
|
179
|
+
name: PLUGIN_NAME,
|
|
180
|
+
enforce: "pre",
|
|
181
|
+
apply,
|
|
182
|
+
config: {
|
|
183
|
+
order: "pre",
|
|
184
|
+
async handler(config, env) {
|
|
185
|
+
if (initializing || session && session.state !== "closed") throw new Error("[weapp-vite] 同一插件实例不能被多个活动宿主复用,请为每个宿主调用 weapp()。");
|
|
186
|
+
initializing = true;
|
|
187
|
+
try {
|
|
188
|
+
session = void 0;
|
|
189
|
+
serveRequested = false;
|
|
190
|
+
slots.bind([]);
|
|
191
|
+
const configuredPlugins = await resolvePlugins(config.plugins);
|
|
192
|
+
if (configuredPlugins.filter((plugin) => plugin.name === PLUGIN_NAME).length !== 1) throw new Error("[weapp-vite] 同一宿主只能安装一次 weapp()。");
|
|
193
|
+
inactive = configuredPlugins.some((plugin) => plugin.name === "vitest:config" || plugin.name === "vitest:project") || env.isPreview === true;
|
|
194
|
+
if (inactive) return;
|
|
195
|
+
serveRequested = env.command === "serve";
|
|
196
|
+
const options = config.weapp;
|
|
197
|
+
if (options?.web?.enable !== false && options?.web && options.platform !== "web") throw new Error("[weapp-vite] Web 与小程序混合宿主尚未开放;纯 Web 请设置 weapp.platform=web。");
|
|
198
|
+
const userPlugins = configuredPlugins.filter((plugin) => plugin !== coordinator && !slots.plugins.includes(plugin));
|
|
199
|
+
const hostConfig = {
|
|
200
|
+
...config,
|
|
201
|
+
plugins: serveRequested ? userPlugins : []
|
|
202
|
+
};
|
|
203
|
+
const { WeappBuildSession } = await import("./session-PskhD-nZ.mjs");
|
|
204
|
+
session = new WeappBuildSession();
|
|
205
|
+
try {
|
|
206
|
+
const merged = await session.prepare(hostConfig, path.resolve(config.root ?? process.cwd()), env.mode, serveRequested);
|
|
207
|
+
session.context.configService.options.sourceConfig = {
|
|
208
|
+
...hostConfig,
|
|
209
|
+
root: session.context.configService.cwd,
|
|
210
|
+
plugins: userPlugins
|
|
211
|
+
};
|
|
212
|
+
if (session.isWeb) {
|
|
213
|
+
slots.bind((await resolvePlugins(merged.plugins)).filter((plugin) => !configuredPlugins.includes(plugin)));
|
|
214
|
+
const { plugins: _plugins, configFile: _configFile, ...normalized } = merged;
|
|
215
|
+
normalized.logLevel = config.logLevel;
|
|
216
|
+
return normalized;
|
|
217
|
+
}
|
|
218
|
+
if (serveRequested) {
|
|
219
|
+
const { prepareDevHostConfig } = await import("./dev-fR5GiJRO.mjs");
|
|
220
|
+
if (!session.statefulController && config.experimental?.bundledDev) throw new Error("[weapp-vite] classic 开发模式暂不支持 experimental.bundledDev,请关闭此选项。");
|
|
221
|
+
const host = prepareDevHostConfig(session, merged, config);
|
|
222
|
+
slots.bind((await resolvePlugins(host.plugins)).filter((plugin) => !configuredPlugins.includes(plugin)));
|
|
223
|
+
return host.config;
|
|
224
|
+
}
|
|
225
|
+
slots.bind(await resolvePlugins(merged.plugins));
|
|
226
|
+
const { plugins: _plugins, configFile: _configFile, ...normalized } = merged;
|
|
227
|
+
normalized.logLevel = config.logLevel;
|
|
228
|
+
if (normalized.build) normalized.build.emptyOutDir = config.build?.emptyOutDir;
|
|
229
|
+
return normalized;
|
|
230
|
+
} catch (error) {
|
|
231
|
+
await session.close().catch(() => {});
|
|
232
|
+
throw error;
|
|
233
|
+
}
|
|
234
|
+
} finally {
|
|
235
|
+
initializing = false;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
async configureServer(server) {
|
|
240
|
+
if (inactive || !serveRequested || !session) return;
|
|
241
|
+
const active = session;
|
|
242
|
+
if (active.statefulController) {
|
|
243
|
+
const listen = server.listen.bind(server);
|
|
244
|
+
server.listen = async (...args) => {
|
|
245
|
+
const result = await listen(...args);
|
|
246
|
+
await active.refreshHostControl();
|
|
247
|
+
return result;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
bindHostLifecycle(server, () => active.close());
|
|
251
|
+
try {
|
|
252
|
+
await active.startDev(server);
|
|
253
|
+
} catch (error) {
|
|
254
|
+
await server.close().catch(() => {});
|
|
255
|
+
throw error;
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
configResolved(config) {
|
|
259
|
+
if (inactive || !session) return;
|
|
260
|
+
session.context.configService.options.configFilePath = config.configFile || void 0;
|
|
261
|
+
session.context.configService.options.configFileDependencies = config.configFileDependencies;
|
|
262
|
+
},
|
|
263
|
+
applyToEnvironment() {
|
|
264
|
+
return session && !inactive ? createSessionEnvironmentPlugin(session, serveRequested) : false;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
return [coordinator, ...slots.plugins];
|
|
268
|
+
}
|
|
269
|
+
//#endregion
|
|
270
|
+
export { weapp };
|
package/dist/volar.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export {
|
|
1
|
+
import volar_default from "@weapp-vite/volar";
|
|
2
|
+
export { volar_default as default };
|
package/dist/web-apis.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { installAbortGlobals, installRequestGlobals, installWebRuntimeGlobals } from "@wevu/web-apis";
|
|
2
2
|
export * from "@wevu/web-apis";
|
|
3
|
-
export { installAbortGlobals, installRequestGlobals, installWebRuntimeGlobals };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.5.0",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,10 +32,26 @@
|
|
|
32
32
|
"types": "./dist/index.d.mts",
|
|
33
33
|
"import": "./dist/index.mjs"
|
|
34
34
|
},
|
|
35
|
+
"./vite": {
|
|
36
|
+
"types": "./dist/vite.d.mts",
|
|
37
|
+
"import": "./dist/vite.mjs"
|
|
38
|
+
},
|
|
35
39
|
"./config": {
|
|
36
40
|
"types": "./dist/config.d.mts",
|
|
37
41
|
"import": "./dist/config.mjs"
|
|
38
42
|
},
|
|
43
|
+
"./dashboard": {
|
|
44
|
+
"types": "./dist/dashboard.d.mts",
|
|
45
|
+
"import": "./dist/dashboard.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./dashboard/analyze": {
|
|
48
|
+
"types": "./dist/dashboard/analyze.d.mts",
|
|
49
|
+
"import": "./dist/dashboard/analyze.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./dashboard/vite": {
|
|
52
|
+
"types": "./dist/dashboard/vite.d.mts",
|
|
53
|
+
"import": "./dist/dashboard/vite.mjs"
|
|
54
|
+
},
|
|
39
55
|
"./json": {
|
|
40
56
|
"types": "./dist/json.d.mts",
|
|
41
57
|
"import": "./dist/json.mjs"
|
|
@@ -105,6 +121,10 @@
|
|
|
105
121
|
"./auto-import-presets/wevu-router": {
|
|
106
122
|
"types": "./dist/auto-import-presets/wevu-router.d.mts",
|
|
107
123
|
"import": "./dist/auto-import-presets/wevu-router.mjs"
|
|
124
|
+
},
|
|
125
|
+
"./doctor": {
|
|
126
|
+
"types": "./dist/doctor.d.mts",
|
|
127
|
+
"import": "./dist/doctor.mjs"
|
|
108
128
|
}
|
|
109
129
|
},
|
|
110
130
|
"main": "./dist/index.mjs",
|
|
@@ -122,70 +142,97 @@
|
|
|
122
142
|
"volar.cjs"
|
|
123
143
|
],
|
|
124
144
|
"engines": {
|
|
125
|
-
"node": "^
|
|
145
|
+
"node": "^22.18.0 || ^24.11.0 || >=26.0.0"
|
|
126
146
|
},
|
|
127
147
|
"publishConfig": {
|
|
128
148
|
"access": "public",
|
|
129
149
|
"registry": "https://registry.npmjs.org"
|
|
130
150
|
},
|
|
151
|
+
"peerDependencies": {
|
|
152
|
+
"@vitejs/devtools-kit": "^0.7.6"
|
|
153
|
+
},
|
|
154
|
+
"peerDependenciesMeta": {
|
|
155
|
+
"@vitejs/devtools-kit": {
|
|
156
|
+
"optional": true
|
|
157
|
+
}
|
|
158
|
+
},
|
|
131
159
|
"dependencies": {
|
|
132
|
-
"@babel/
|
|
133
|
-
"@babel/preset-
|
|
160
|
+
"@babel/plugin-transform-modules-commonjs": "^8.0.1",
|
|
161
|
+
"@babel/preset-env": "^8.0.7",
|
|
162
|
+
"@babel/preset-typescript": "^8.0.7",
|
|
163
|
+
"@devframes/agentic": "1.2.3",
|
|
164
|
+
"@devframes/hub": "1.2.3",
|
|
165
|
+
"@devframes/hub-ui": "1.2.3",
|
|
134
166
|
"@jridgewell/remapping": "^2.3.5",
|
|
167
|
+
"@modelcontextprotocol/node": "^2.1.1",
|
|
168
|
+
"@typescript-eslint/parser": "^8.71.1",
|
|
135
169
|
"@vercel/detect-agent": "^1.2.5",
|
|
136
170
|
"@volar/typescript": "^2.4.28",
|
|
137
|
-
"@vue/language-core": "^3.3.
|
|
138
|
-
"@weapp-core/constants": "0.
|
|
139
|
-
"@weapp-core/init": "6.0.
|
|
140
|
-
"@weapp-core/logger": "3.1.
|
|
141
|
-
"@weapp-core/schematics": "6.2.
|
|
142
|
-
"@weapp-core/shared": "3.2.
|
|
143
|
-
"@weapp-
|
|
144
|
-
"@weapp-vite/
|
|
145
|
-
"@weapp-vite/
|
|
146
|
-
"@weapp-vite/
|
|
147
|
-
"@weapp-vite/
|
|
148
|
-
"@weapp-vite/
|
|
149
|
-
"@weapp-vite/
|
|
150
|
-
"@
|
|
151
|
-
"@
|
|
152
|
-
"
|
|
171
|
+
"@vue/language-core": "^3.3.12",
|
|
172
|
+
"@weapp-core/constants": "0.3.1",
|
|
173
|
+
"@weapp-core/init": "6.0.25",
|
|
174
|
+
"@weapp-core/logger": "3.1.9",
|
|
175
|
+
"@weapp-core/schematics": "6.2.9",
|
|
176
|
+
"@weapp-core/shared": "3.2.8",
|
|
177
|
+
"@weapp-tailwindcss/engine": "0.1.5",
|
|
178
|
+
"@weapp-vite/acceptance": "0.1.0",
|
|
179
|
+
"@weapp-vite/ast": "7.5.0",
|
|
180
|
+
"@weapp-vite/eslint": "0.2.10",
|
|
181
|
+
"@weapp-vite/hmr": "0.2.1",
|
|
182
|
+
"@weapp-vite/i18n": "0.2.9",
|
|
183
|
+
"@weapp-vite/mcp": "2.0.0",
|
|
184
|
+
"@weapp-vite/miniprogram-automator": "1.3.0",
|
|
185
|
+
"@weapp-vite/tailwindcss": "1.0.0",
|
|
186
|
+
"@weapp-vite/volar": "2.1.13",
|
|
187
|
+
"@weapp-vite/web": "2.0.0",
|
|
188
|
+
"@wevu/api": "0.3.8",
|
|
189
|
+
"@wevu/web-apis": "1.3.5",
|
|
190
|
+
"cac": "^7.0.1",
|
|
153
191
|
"chokidar": "^5.0.0",
|
|
154
192
|
"comment-json": "^5.0.0",
|
|
155
|
-
"devframe": "1.
|
|
193
|
+
"devframe": "1.2.3",
|
|
194
|
+
"dotenv": "^18.0.6",
|
|
195
|
+
"dotenv-expand": "^1000.0.0",
|
|
196
|
+
"eslint": "^10.12.0",
|
|
156
197
|
"fdir": "^6.5.0",
|
|
198
|
+
"get-tsconfig": "^4.14.3",
|
|
157
199
|
"htmlparser2": "^12.0.0",
|
|
158
200
|
"local-pkg": "^1.2.1",
|
|
159
201
|
"lru-cache": "^11.5.3",
|
|
160
|
-
"magic-string": "^1.4.
|
|
202
|
+
"magic-string": "^1.4.3",
|
|
161
203
|
"merge": "^2.1.1",
|
|
162
204
|
"obug": "^3.0.0",
|
|
163
205
|
"p-queue": "^9.3.3",
|
|
164
|
-
"package-manager-detector": "^1.
|
|
206
|
+
"package-manager-detector": "^1.9.0",
|
|
165
207
|
"pathe": "^2.0.3",
|
|
166
208
|
"picomatch": "^4.0.7",
|
|
167
|
-
"postcss": "^8.5.
|
|
209
|
+
"postcss": "^8.5.29",
|
|
168
210
|
"postcss-selector-parser": "^7.1.6",
|
|
169
211
|
"postcss-value-parser": "4.2.0",
|
|
170
|
-
"rolldown": "1.2.
|
|
212
|
+
"rolldown": "1.2.13",
|
|
171
213
|
"rolldown-plugin-dts": "0.28.6",
|
|
172
|
-
"rolldown-require": "2.0.
|
|
214
|
+
"rolldown-require": "2.0.35",
|
|
173
215
|
"semver": "^7.8.5",
|
|
216
|
+
"tinyexec": "^1.3.1",
|
|
174
217
|
"typescript": "^6.0.3",
|
|
175
|
-
"vite": "8.3.
|
|
176
|
-
"vite-plugin-performance": "2.0.
|
|
177
|
-
"vite-tsconfig-paths": "^
|
|
218
|
+
"vite": "8.3.4",
|
|
219
|
+
"vite-plugin-performance": "2.0.8",
|
|
220
|
+
"vite-tsconfig-paths": "^7.0.0-alpha.3",
|
|
178
221
|
"vue": "^3.5.43",
|
|
179
|
-
"vue-
|
|
180
|
-
"
|
|
181
|
-
"weapp-
|
|
182
|
-
"
|
|
222
|
+
"vue-eslint-parser": "^10.4.1",
|
|
223
|
+
"vue-tsc": "^3.3.12",
|
|
224
|
+
"weapp-ide-cli": "6.2.0",
|
|
225
|
+
"weapp-tailwindcss": "^5.6.0",
|
|
226
|
+
"wevu": "7.5.0",
|
|
227
|
+
"zod": "^4.6.5"
|
|
183
228
|
},
|
|
184
229
|
"optionalDependencies": {
|
|
185
|
-
"@swc/core": "^1.16.
|
|
230
|
+
"@swc/core": "^1.16.13"
|
|
186
231
|
},
|
|
187
232
|
"devDependencies": {
|
|
188
|
-
"
|
|
233
|
+
"@modelcontextprotocol/client": "^2.3.1",
|
|
234
|
+
"@vitejs/devtools-kit": "0.7.6",
|
|
235
|
+
"oxc-parser": "^0.153.0",
|
|
189
236
|
"oxc-walker": "^1.1.1",
|
|
190
237
|
"tailwindcss": "^4.3.3",
|
|
191
238
|
"ts-morph": "^28.0.0"
|
|
@@ -203,9 +250,10 @@
|
|
|
203
250
|
"benchmark:auto-import:ci": "node --import tsx scripts/benchmark-auto-import-ci.ts",
|
|
204
251
|
"test:dev": "vitest",
|
|
205
252
|
"test": "vitest run",
|
|
206
|
-
"test:types": "
|
|
253
|
+
"test:types": "pnpm run test:types:check",
|
|
254
|
+
"test:types:check": "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 ../upload-config && 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\" && cd ../dashboard-public-types && tsd --files \"**/*.test-d.ts\" && cd ../vite-public-types && tsd --files \"**/*.test-d.ts\" && cd ../doctor-public-types && tsd --files \"**/*.test-d.ts\"",
|
|
207
255
|
"lint:src": "eslint src --ext .ts",
|
|
208
256
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
209
|
-
"sync": "
|
|
257
|
+
"sync": "repo release sync-npmmirror --package weapp-vite"
|
|
210
258
|
}
|
|
211
259
|
}
|
package/dist/file-CvgkbGIx.mjs
DELETED
package/dist/logger-mt4mSTqV.mjs
DELETED