weapp-vite 6.16.35 → 6.16.40
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-routes.mjs +1 -1
- package/dist/cli.mjs +42 -20
- package/dist/{config-s5bMI_-z.d.mts → config-CobCpW-a.d.mts} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-29bA2ZmE.mjs → createContext-DNKY6vX9.mjs} +33 -12
- package/dist/file-DiowMq_y.mjs +2 -0
- package/dist/{file--u6Mt5At.mjs → file-SR4f8Kbb.mjs} +1 -1
- package/dist/getInstance-DrxKxIJT.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/types.d.mts +1 -1
- package/package.json +9 -9
- package/dist/file-BGjDGA3Q.mjs +0 -2
- package/dist/getInstance-JUJuJysh.mjs +0 -2
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-
|
|
1
|
+
import { g as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-DNKY6vX9.mjs";
|
|
2
2
|
//#region src/auto-routes.ts
|
|
3
3
|
const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
|
|
4
4
|
function createGetter(resolver) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, b as getProjectConfigFileName, f as resolveWeappViteTarget, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, n as syncProjectSupportFiles, p as createSharedBuildConfig, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-
|
|
1
|
+
import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, b as getProjectConfigFileName, f as resolveWeappViteTarget, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, n as syncProjectSupportFiles, p as createSharedBuildConfig, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-DNKY6vX9.mjs";
|
|
2
2
|
import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
|
|
3
|
-
import { h as VERSION } from "./file
|
|
3
|
+
import { h as VERSION } from "./file-SR4f8Kbb.mjs";
|
|
4
4
|
import { o as resolveWeappMcpConfig, s as startWeappViteMcpServer } from "./mcp-qmDOTH07.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path, { posix } from "pathe";
|
|
@@ -14,7 +14,7 @@ import os from "node:os";
|
|
|
14
14
|
import { execFile, spawn } from "node:child_process";
|
|
15
15
|
import { Buffer } from "node:buffer";
|
|
16
16
|
import { cac } from "cac";
|
|
17
|
-
import { RETRY_CANCEL_KEYS, RETRY_CONFIRM_KEYS, bootstrapWechatDevtoolsSettings, buildWechatIdeNpm, clearWechatIdeCache, clearWechatIdeCacheByAutomator, closeSharedMiniProgram, closeWechatIdeProject, compileWechatIdeByAutomator, connectOpenedAutomator, createSharedInputSession, dispatchWechatCliCommand, formatAutomatorLoginError, getConfig, getWechatIdeTestAccounts, getWechatIdeTicket, getWechatIdeToolInfo, isAutomatorLoginError, isWeappIdeTopLevelCommand, isWechatIdeEngineBuildEndpointMissingError, isWechatIdeLoginRequiredError, launchAutomator, openWechatIdeProjectByHttp, parse, promptRetryKeypress, promptWechatIdeLoginRetry, quitWechatIde, refreshWechatIdeTicket, resetWechatIdeFileUtilsByHttp, runRetryableCommand, runWechatIdeEngineBuild, runWithSuspendedSharedInput, setWechatIdeTicket, startForwardConsole, takeScreenshot } from "weapp-ide-cli";
|
|
17
|
+
import { RETRY_CANCEL_KEYS, RETRY_CONFIRM_KEYS, bootstrapWechatDevtoolsSettings, buildWechatIdeNpm, clearWechatIdeCache, clearWechatIdeCacheByAutomator, closeSharedMiniProgram, closeWechatIdeProject, compileWechatIdeByAutomator, connectOpenedAutomator, createSharedInputSession, createWechatIdeLoginRequiredExitError, dispatchWechatCliCommand, formatAutomatorLoginError, getConfig, getWechatIdeTestAccounts, getWechatIdeTicket, getWechatIdeToolInfo, isAutomatorLoginError, isWeappIdeTopLevelCommand, isWechatIdeEngineBuildEndpointMissingError, isWechatIdeLoginRequiredError, isWechatIdeLoginRequiredExitError, launchAutomator, openWechatIdeProjectByHttp, parse, promptRetryKeypress, promptWechatIdeLoginRetry, quitWechatIde, refreshWechatIdeTicket, resetWechatIdeFileUtilsByHttp, runRetryableCommand, runWechatIdeEngineBuild, runWithSuspendedSharedInput, setWechatIdeTicket, startForwardConsole, takeScreenshot } from "weapp-ide-cli";
|
|
18
18
|
import { promisify } from "node:util";
|
|
19
19
|
import { brotliCompressSync, gzipSync } from "node:zlib";
|
|
20
20
|
import { resolveCommand } from "package-manager-detector/commands";
|
|
@@ -132,7 +132,7 @@ async function tryExecuteWechatIdeCliCommandByHelper(argv) {
|
|
|
132
132
|
* @description 统一执行 weapp-ide-cli 命令,并在登录失效时复用同一套重试交互。
|
|
133
133
|
*/
|
|
134
134
|
async function executeWechatIdeCliCommand(argv, options = {}) {
|
|
135
|
-
const { automatorMode = "prefer", cancelLevel = "warn", engineBuildFallbackToCli = false, httpMode = "prefer", onNonLoginError, onRetry, projectPath } = options;
|
|
135
|
+
const { automatorMode = "prefer", cancelLevel = "warn", engineBuildFallbackToCli = false, httpMode = "prefer", promptOpenIdeLogin = true, onNonLoginError, onRetry, projectPath } = options;
|
|
136
136
|
await runWithSuspendedSharedInput(async () => {
|
|
137
137
|
if (httpMode !== "skip") try {
|
|
138
138
|
if (await tryExecuteWechatIdeCliCommandByHttp(argv, projectPath, engineBuildFallbackToCli)) return;
|
|
@@ -147,6 +147,7 @@ async function executeWechatIdeCliCommand(argv, options = {}) {
|
|
|
147
147
|
try {
|
|
148
148
|
if (await tryExecuteWechatIdeCliCommandByHelper(argv)) return;
|
|
149
149
|
} catch (error) {
|
|
150
|
+
if (isWechatIdeLoginRequiredExitError(error)) throw error;
|
|
150
151
|
if (onNonLoginError) {
|
|
151
152
|
onNonLoginError(error);
|
|
152
153
|
return;
|
|
@@ -154,12 +155,13 @@ async function executeWechatIdeCliCommand(argv, options = {}) {
|
|
|
154
155
|
throw error;
|
|
155
156
|
}
|
|
156
157
|
await runRetryableCommand({
|
|
157
|
-
createCancelError: () =>
|
|
158
|
+
createCancelError: (error) => createWechatIdeLoginRequiredExitError(error, "cancelled"),
|
|
158
159
|
execute: async () => {
|
|
159
160
|
try {
|
|
160
161
|
await parse(argv);
|
|
161
162
|
return null;
|
|
162
163
|
} catch (error) {
|
|
164
|
+
if (isWechatIdeLoginRequiredExitError(error)) throw error;
|
|
163
165
|
if (!isWechatIdeLoginRequiredError(error)) {
|
|
164
166
|
if (onNonLoginError) {
|
|
165
167
|
onNonLoginError(error);
|
|
@@ -178,7 +180,8 @@ async function executeWechatIdeCliCommand(argv, options = {}) {
|
|
|
178
180
|
promptRetry: async (error) => await promptWechatIdeLoginRetry({
|
|
179
181
|
cancelLevel,
|
|
180
182
|
error,
|
|
181
|
-
logger: logger_default
|
|
183
|
+
logger: logger_default,
|
|
184
|
+
promptOpenIdeLogin
|
|
182
185
|
}),
|
|
183
186
|
shouldRetry: (action) => action === "retry"
|
|
184
187
|
});
|
|
@@ -313,7 +316,8 @@ async function runWechatIdeOpenWithRetry(argv) {
|
|
|
313
316
|
onNonLoginError: (error) => logger_default.error(error),
|
|
314
317
|
onRetry: () => {
|
|
315
318
|
logger_default.info(colors.bold(colors.green("正在重试连接微信开发者工具...")));
|
|
316
|
-
}
|
|
319
|
+
},
|
|
320
|
+
promptOpenIdeLogin: true
|
|
317
321
|
});
|
|
318
322
|
}
|
|
319
323
|
/**
|
|
@@ -346,29 +350,35 @@ async function tryOpenWechatIdeByAutomator(projectPath, options) {
|
|
|
346
350
|
/**
|
|
347
351
|
* @description 打开后主动刷新微信开发者工具的项目索引,避免模拟器沿用过期 app 配置。
|
|
348
352
|
*/
|
|
349
|
-
|
|
353
|
+
function appendLoginRetryArgv(argv, options) {
|
|
354
|
+
if (options.nonInteractive) argv.push("--non-interactive");
|
|
355
|
+
if (options.loginRetry) argv.push("--login-retry", options.loginRetry);
|
|
356
|
+
if (options.loginRetryTimeout) argv.push("--login-retry-timeout", options.loginRetryTimeout);
|
|
357
|
+
return argv;
|
|
358
|
+
}
|
|
359
|
+
async function stabilizeOpenedWechatIdeProject(projectPath, servicePortEnabled, options = {}) {
|
|
350
360
|
if (servicePortEnabled === false) return;
|
|
351
361
|
try {
|
|
352
|
-
await executeWechatIdeCliCommand(["compile"], {
|
|
362
|
+
await executeWechatIdeCliCommand(appendLoginRetryArgv(["compile"], options), {
|
|
353
363
|
httpMode: "prefer",
|
|
354
364
|
onNonLoginError: (error) => logger_default.error(error),
|
|
355
365
|
projectPath
|
|
356
366
|
});
|
|
357
|
-
await executeWechatIdeCliCommand([
|
|
367
|
+
await executeWechatIdeCliCommand(appendLoginRetryArgv([
|
|
358
368
|
"reset-fileutils",
|
|
359
369
|
"-p",
|
|
360
370
|
projectPath
|
|
361
|
-
], {
|
|
371
|
+
], options), {
|
|
362
372
|
httpMode: "prefer",
|
|
363
373
|
onNonLoginError: (error) => logger_default.error(error),
|
|
364
374
|
projectPath
|
|
365
375
|
});
|
|
366
376
|
try {
|
|
367
|
-
await executeWechatIdeCliCommand([
|
|
377
|
+
await executeWechatIdeCliCommand(appendLoginRetryArgv([
|
|
368
378
|
"engine",
|
|
369
379
|
"build",
|
|
370
380
|
projectPath
|
|
371
|
-
], {
|
|
381
|
+
], options), {
|
|
372
382
|
httpMode: "prefer",
|
|
373
383
|
onNonLoginError: (error) => logger_default.error(error),
|
|
374
384
|
projectPath
|
|
@@ -378,7 +388,7 @@ async function stabilizeOpenedWechatIdeProject(projectPath, servicePortEnabled)
|
|
|
378
388
|
logger_default.warn("当前微信开发者工具不支持自动 engine build 刷新,已跳过该步骤;如模拟器显示旧状态,可在开发者工具内手动编译。");
|
|
379
389
|
}
|
|
380
390
|
try {
|
|
381
|
-
await executeWechatIdeCliCommand(["compile"], {
|
|
391
|
+
await executeWechatIdeCliCommand(appendLoginRetryArgv(["compile"], options), {
|
|
382
392
|
automatorMode: "require",
|
|
383
393
|
httpMode: "skip",
|
|
384
394
|
projectPath
|
|
@@ -387,6 +397,7 @@ async function stabilizeOpenedWechatIdeProject(projectPath, servicePortEnabled)
|
|
|
387
397
|
if (shouldLogAutomatorFallbackError()) logger_default.error(error);
|
|
388
398
|
}
|
|
389
399
|
} catch (error) {
|
|
400
|
+
if (isWechatIdeLoginRequiredExitError(error)) throw error;
|
|
390
401
|
logger_default.warn("刷新微信开发者工具项目索引失败,已保留当前打开状态;如模拟器仍显示旧状态,可手动刷新一次。");
|
|
391
402
|
if (shouldLogAutomatorFallbackError()) logger_default.error(error);
|
|
392
403
|
}
|
|
@@ -396,6 +407,9 @@ function createIdeOpenArgv(platform, projectPath, options = {}) {
|
|
|
396
407
|
if (projectPath) argv.push(projectPath);
|
|
397
408
|
if (platform === "weapp" && options.trustProject !== false) argv.push("--trust-project");
|
|
398
409
|
if (platform && shouldPassPlatformArgToIdeOpen(platform)) argv.push("--platform", platform);
|
|
410
|
+
if (options.nonInteractive) argv.push("--non-interactive");
|
|
411
|
+
if (options.loginRetry) argv.push("--login-retry", options.loginRetry);
|
|
412
|
+
if (options.loginRetryTimeout) argv.push("--login-retry-timeout", options.loginRetryTimeout);
|
|
399
413
|
return argv;
|
|
400
414
|
}
|
|
401
415
|
async function openIde(platform, projectPath, options = {}) {
|
|
@@ -412,7 +426,7 @@ async function openIde(platform, projectPath, options = {}) {
|
|
|
412
426
|
if (platform === "weapp" && projectPath && bootstrapResult?.servicePortEnabled === false) logger_default.warn("检测到微信开发者工具服务端口当前处于关闭状态,已保留用户设置并回退到普通 open 流程。");
|
|
413
427
|
if (platform === "weapp" && projectPath && options.trustProject !== false && bootstrapResult?.servicePortEnabled !== false) try {
|
|
414
428
|
if (await tryOpenWechatIdeByAutomator(projectPath, options)) {
|
|
415
|
-
await stabilizeOpenedWechatIdeProject(projectPath, bootstrapResult?.servicePortEnabled);
|
|
429
|
+
await stabilizeOpenedWechatIdeProject(projectPath, bootstrapResult?.servicePortEnabled, options);
|
|
416
430
|
return;
|
|
417
431
|
}
|
|
418
432
|
} catch (error) {
|
|
@@ -424,7 +438,7 @@ async function openIde(platform, projectPath, options = {}) {
|
|
|
424
438
|
if (shouldLogAutomatorFallbackError()) logger_default.error(error);
|
|
425
439
|
}
|
|
426
440
|
await runWechatIdeOpenWithRetry(createIdeOpenArgv(platform, projectPath, options));
|
|
427
|
-
if (platform === "weapp" && projectPath) await stabilizeOpenedWechatIdeProject(projectPath, bootstrapResult?.servicePortEnabled);
|
|
441
|
+
if (platform === "weapp" && projectPath) await stabilizeOpenedWechatIdeProject(projectPath, bootstrapResult?.servicePortEnabled, options);
|
|
428
442
|
}
|
|
429
443
|
/**
|
|
430
444
|
* @description 解析 IDE 相关命令所需的平台、项目目录与配置上下文。
|
|
@@ -3450,7 +3464,7 @@ function registerNpmCommand(cli) {
|
|
|
3450
3464
|
//#endregion
|
|
3451
3465
|
//#region src/cli/commands/open.ts
|
|
3452
3466
|
function registerOpenCommand(cli) {
|
|
3453
|
-
cli.command("open [root]").option("-p, --platform <platform>", `[string] target platform (weapp | web)`).option("--trust-project", "[boolean] auto trust Wechat DevTools project on open", { default: true }).action(async (root, options) => {
|
|
3467
|
+
cli.command("open [root]").option("-p, --platform <platform>", `[string] target platform (weapp | web)`).option("--trust-project", "[boolean] auto trust Wechat DevTools project on open", { default: true }).option("--login-retry <mode>", "[string] login retry mode for Wechat DevTools (never | once | always)").option("--login-retry-timeout <ms>", "[number] login retry prompt timeout in milliseconds").option("--non-interactive", "[boolean] fail immediately when Wechat DevTools login has expired").action(async (root, options) => {
|
|
3454
3468
|
filterDuplicateOptions(options);
|
|
3455
3469
|
const configFile = resolveConfigFile(options);
|
|
3456
3470
|
const targets = resolveRuntimeTargets(options);
|
|
@@ -3467,7 +3481,12 @@ function registerOpenCommand(cli) {
|
|
|
3467
3481
|
weappViteConfig
|
|
3468
3482
|
});
|
|
3469
3483
|
if (latestHmrSummary) logger_default.info(latestHmrSummary.line);
|
|
3470
|
-
await openIde(platform, projectPath ?? resolveIdeProjectRoot(mpDistRoot, process.cwd()), {
|
|
3484
|
+
await openIde(platform, projectPath ?? resolveIdeProjectRoot(mpDistRoot, process.cwd()), {
|
|
3485
|
+
loginRetry: options.loginRetry,
|
|
3486
|
+
loginRetryTimeout: options.loginRetryTimeout,
|
|
3487
|
+
nonInteractive: options.nonInteractive,
|
|
3488
|
+
trustProject: options.trustProject
|
|
3489
|
+
});
|
|
3471
3490
|
});
|
|
3472
3491
|
}
|
|
3473
3492
|
//#endregion
|
|
@@ -3716,7 +3735,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
3716
3735
|
}
|
|
3717
3736
|
//#endregion
|
|
3718
3737
|
//#region package.json
|
|
3719
|
-
var version = "6.16.
|
|
3738
|
+
var version = "6.16.40";
|
|
3720
3739
|
//#endregion
|
|
3721
3740
|
//#region src/cli/devHotkeys/format.ts
|
|
3722
3741
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -4316,7 +4335,7 @@ function waitForServeShutdownSignal() {
|
|
|
4316
4335
|
//#endregion
|
|
4317
4336
|
//#region src/cli/commands/serve/index.ts
|
|
4318
4337
|
function registerServeCommand(cli) {
|
|
4319
|
-
cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("-p, --platform <platform>", `[string] target platform (weapp | web | all)`).option("--project-config <path>", `[string] project config path (miniprogram only)`).option("--trust-project", "[boolean] auto trust Wechat DevTools project on open", { default: true }).option("--host [host]", `[string] web dev server host`).option("--ui", `[boolean] 启动调试 UI(当前提供分析视图)`, { default: false }).option("--analyze", `[boolean] 启动分包分析仪表盘 (实验特性)`, { default: false }).option("--scope <scope>", `[string] 局部构建范围,例如 main,packages/order`).action(async (root, options) => {
|
|
4338
|
+
cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("-p, --platform <platform>", `[string] target platform (weapp | web | all)`).option("--project-config <path>", `[string] project config path (miniprogram only)`).option("--trust-project", "[boolean] auto trust Wechat DevTools project on open", { default: true }).option("--login-retry <mode>", "[string] login retry mode for Wechat DevTools (never | once | always)").option("--login-retry-timeout <ms>", "[number] login retry prompt timeout in milliseconds").option("--non-interactive", "[boolean] fail immediately when Wechat DevTools login has expired").option("--host [host]", `[string] web dev server host`).option("--ui", `[boolean] 启动调试 UI(当前提供分析视图)`, { default: false }).option("--analyze", `[boolean] 启动分包分析仪表盘 (实验特性)`, { default: false }).option("--scope <scope>", `[string] 局部构建范围,例如 main,packages/order`).action(async (root, options) => {
|
|
4320
4339
|
filterDuplicateOptions(options);
|
|
4321
4340
|
const configFile = resolveConfigFile(options);
|
|
4322
4341
|
const targets = resolveRuntimeTargets(options);
|
|
@@ -4370,6 +4389,9 @@ function registerServeCommand(cli) {
|
|
|
4370
4389
|
fallbackProjectPath: configService.cwd,
|
|
4371
4390
|
openIde: async (projectPath) => {
|
|
4372
4391
|
await openIde(configService.platform, projectPath, {
|
|
4392
|
+
loginRetry: options.loginRetry,
|
|
4393
|
+
loginRetryTimeout: options.loginRetryTimeout,
|
|
4394
|
+
nonInteractive: options.nonInteractive,
|
|
4373
4395
|
reuseOpenedProject: false,
|
|
4374
4396
|
trustProject: options.trustProject
|
|
4375
4397
|
});
|
|
@@ -782,7 +782,7 @@ interface WeappViteConfig {
|
|
|
782
782
|
jsonAlias?: AliasOptions | false;
|
|
783
783
|
npm?: WeappNpmConfig;
|
|
784
784
|
generate?: GenerateOptions;
|
|
785
|
-
tsconfigPaths?:
|
|
785
|
+
tsconfigPaths?: boolean | PluginOptions;
|
|
786
786
|
subPackages?: Record<string, WeappSubPackageConfig>;
|
|
787
787
|
copy?: CopyOptions;
|
|
788
788
|
web?: WeappWebConfig;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as WeappViteHostMeta, Hn as createWeappViteHostMeta, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Yn as WeappViteRuntime, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, y as defineThemeJson, zn as WEAPP_VITE_HOST_NAME } from "./config-
|
|
1
|
+
import { Bn as WeappViteHostMeta, Hn as createWeappViteHostMeta, Un as isWeappViteHost, Vn as applyWeappViteHostMeta, Wn as resolveWeappViteHostMeta, Yn as WeappViteRuntime, _ as definePageJson, a as UserConfigFnNoEnvPlain, at as WeappViteConfig, c as UserConfigFnPromise, d as Component, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, y as defineThemeJson, zn as WEAPP_VITE_HOST_NAME } from "./config-CobCpW-a.mjs";
|
|
2
2
|
export { type App, type Component, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
|
|
2
2
|
import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
|
|
3
|
-
import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file
|
|
3
|
+
import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file-SR4f8Kbb.mjs";
|
|
4
4
|
import { createRequire, isBuiltin } from "node:module";
|
|
5
5
|
import path, { posix } from "pathe";
|
|
6
6
|
import path$1, { normalize, relative, win32 } from "node:path";
|
|
@@ -661,7 +661,7 @@ function getPlatformAppTypesPackage(platform) {
|
|
|
661
661
|
//#endregion
|
|
662
662
|
//#region src/utils/npmImport.ts
|
|
663
663
|
const WINDOWS_PATH_SEPARATORS_RE = /\\/g;
|
|
664
|
-
const WINDOWS_ABSOLUTE_PATH_RE$
|
|
664
|
+
const WINDOWS_ABSOLUTE_PATH_RE$2 = /^[a-z]:[\\/]/i;
|
|
665
665
|
const NPM_PROTOCOL_RE = /^npm:/;
|
|
666
666
|
const PLUGIN_PROTOCOL_RE$1 = /^plugin:\/\//;
|
|
667
667
|
const EXPLICIT_NPM_DIR_RE = /^\/(?:miniprogram_npm|node_modules)\//;
|
|
@@ -745,7 +745,7 @@ function resolveNpmDependencyId(importee) {
|
|
|
745
745
|
function normalizeNpmPackageSpecifier(specifier) {
|
|
746
746
|
const normalized = specifier.trim();
|
|
747
747
|
if (!normalized || normalized.startsWith(".") || normalized.startsWith("/") || normalized.startsWith("\\")) return;
|
|
748
|
-
if (WINDOWS_ABSOLUTE_PATH_RE$
|
|
748
|
+
if (WINDOWS_ABSOLUTE_PATH_RE$2.test(normalized)) return;
|
|
749
749
|
return normalized;
|
|
750
750
|
}
|
|
751
751
|
function parseNpmPackageSpecifier(specifier) {
|
|
@@ -12577,12 +12577,14 @@ function createLoadConfig(options) {
|
|
|
12577
12577
|
};
|
|
12578
12578
|
const srcRoot = config.weapp?.srcRoot ?? "";
|
|
12579
12579
|
injectResolvedAliases(config, collectManagedTsconfigAliases(config, cwd));
|
|
12580
|
+
const tsconfigPathsOptions = config.weapp?.tsconfigPaths;
|
|
12580
12581
|
const tsconfigPathsUsage = await inspectTsconfigPathsUsage(cwd);
|
|
12581
12582
|
const tsconfigUsageAliases = tsconfigPathsUsage.aliases ?? [];
|
|
12582
12583
|
const tsconfigReferenceAliases = tsconfigPathsUsage.referenceAliases ?? [];
|
|
12583
12584
|
const tsconfigAliases = tsconfigUsageAliases.length > 0 ? tsconfigUsageAliases : tsconfigReferenceAliases;
|
|
12585
|
+
const shouldDelegateToNativeTsconfigPaths = tsconfigPathsOptions === true;
|
|
12584
12586
|
if (!tsconfigPathsUsage.enabled) injectDefaultSrcAlias(config, cwd, srcRoot);
|
|
12585
|
-
else if (
|
|
12587
|
+
else if (!shouldDelegateToNativeTsconfigPaths) {
|
|
12586
12588
|
injectResolvedAliases(config, tsconfigAliases);
|
|
12587
12589
|
injectDefaultSrcAlias(config, cwd, srcRoot);
|
|
12588
12590
|
}
|
|
@@ -12644,10 +12646,9 @@ function createLoadConfig(options) {
|
|
|
12644
12646
|
if (pluginOnly && buildConfig.outDir) mpDistRoot = buildConfig.outDir;
|
|
12645
12647
|
const aliasEntries = mergeJsonAliasEntries(config.weapp?.jsonAlias);
|
|
12646
12648
|
config.plugins ??= [];
|
|
12647
|
-
const tsconfigPathsOptions = config.weapp?.tsconfigPaths;
|
|
12648
12649
|
if (tsconfigPathsOptions !== false) {
|
|
12649
12650
|
if (typeof tsconfigPathsOptions === "object" && tsconfigPathsOptions !== null) config.plugins.push(tsconfigPaths(tsconfigPathsOptions));
|
|
12650
|
-
else if (
|
|
12651
|
+
else if (shouldDelegateToNativeTsconfigPaths) {
|
|
12651
12652
|
config.resolve ??= {};
|
|
12652
12653
|
config.resolve.tsconfigPaths ??= true;
|
|
12653
12654
|
}
|
|
@@ -20938,11 +20939,11 @@ function buildWeappVueStyleRequests(filename, styleBlocks, options = {}) {
|
|
|
20938
20939
|
//#region src/plugins/vue/resolver.ts
|
|
20939
20940
|
const VUE_VIRTUAL_MODULE_PREFIX = "\0vue:";
|
|
20940
20941
|
const LEGACY_WEAPP_VUE_STYLE_VIRTUAL_PREFIX = "weapp-vite:vue-style:";
|
|
20941
|
-
const WINDOWS_ABSOLUTE_PATH_RE = /^[A-Z]:[\\/]/i;
|
|
20942
|
+
const WINDOWS_ABSOLUTE_PATH_RE$1 = /^[A-Z]:[\\/]/i;
|
|
20942
20943
|
let warnedMissingWevu = false;
|
|
20943
20944
|
let wevuInstallState = "unknown";
|
|
20944
|
-
function isExplicitFileRequest(id) {
|
|
20945
|
-
return id.startsWith(".") || id.startsWith("/") || WINDOWS_ABSOLUTE_PATH_RE.test(id);
|
|
20945
|
+
function isExplicitFileRequest$1(id) {
|
|
20946
|
+
return id.startsWith(".") || id.startsWith("/") || WINDOWS_ABSOLUTE_PATH_RE$1.test(id);
|
|
20946
20947
|
}
|
|
20947
20948
|
function hasWevuDependency(ctx) {
|
|
20948
20949
|
const packageJson = ctx.configService?.packageJson;
|
|
@@ -20988,13 +20989,13 @@ function createVueResolverPlugin(ctx) {
|
|
|
20988
20989
|
}
|
|
20989
20990
|
if (isVueLikeFile(id)) {
|
|
20990
20991
|
ensureWevuInstalled(ctx);
|
|
20991
|
-
if (!isExplicitFileRequest(id)) return null;
|
|
20992
|
+
if (!isExplicitFileRequest$1(id)) return null;
|
|
20992
20993
|
const absoluteId = toAbsoluteId(id, configService, importer, { base: "srcRoot" });
|
|
20993
20994
|
if (!absoluteId) return null;
|
|
20994
20995
|
return absoluteId;
|
|
20995
20996
|
}
|
|
20996
20997
|
if (id.startsWith(VUE_VIRTUAL_MODULE_PREFIX)) return id;
|
|
20997
|
-
if (!isExplicitFileRequest(id)) return null;
|
|
20998
|
+
if (!isExplicitFileRequest$1(id)) return null;
|
|
20998
20999
|
const absoluteId = toAbsoluteId(id, configService, importer, { base: "srcRoot" });
|
|
20999
21000
|
if (!absoluteId) return null;
|
|
21000
21001
|
for (const ext of VUE_LIKE_EXTENSIONS$1) {
|
|
@@ -21853,11 +21854,31 @@ function composeSourceMaps(transformedMap, originalMap) {
|
|
|
21853
21854
|
}
|
|
21854
21855
|
//#endregion
|
|
21855
21856
|
//#region src/plugins/utils/viteResolverAdapter.ts
|
|
21857
|
+
const WINDOWS_ABSOLUTE_PATH_RE = /^[A-Z]:[\\/]/i;
|
|
21858
|
+
function isExplicitFileRequest(id) {
|
|
21859
|
+
return id.startsWith(".") || id.startsWith("/") || WINDOWS_ABSOLUTE_PATH_RE.test(id);
|
|
21860
|
+
}
|
|
21861
|
+
function isFilePathLike(id) {
|
|
21862
|
+
return Boolean(path.extname(id));
|
|
21863
|
+
}
|
|
21864
|
+
function resolveLocalFile(source, importer, normalizeOptions) {
|
|
21865
|
+
const cleanSource = normalizeFsResolvedId(source, normalizeOptions);
|
|
21866
|
+
if (!isExplicitFileRequest(cleanSource) || !isFilePathLike(cleanSource)) return;
|
|
21867
|
+
const candidate = path.isAbsolute(cleanSource) || WINDOWS_ABSOLUTE_PATH_RE.test(cleanSource) ? cleanSource : importer ? path.resolve(path.dirname(normalizeFsResolvedId(importer, normalizeOptions)), cleanSource) : void 0;
|
|
21868
|
+
if (!candidate) return;
|
|
21869
|
+
try {
|
|
21870
|
+
return fs$1.statSync(candidate).isFile() ? candidate : void 0;
|
|
21871
|
+
} catch {
|
|
21872
|
+
return;
|
|
21873
|
+
}
|
|
21874
|
+
}
|
|
21856
21875
|
function createViteResolverAdapter(resolver, reader, options) {
|
|
21857
21876
|
const checkMtime = options?.checkMtime;
|
|
21858
21877
|
const normalizeOptions = options?.normalize;
|
|
21859
21878
|
return {
|
|
21860
21879
|
resolveId: async (source, importer) => {
|
|
21880
|
+
const localFile = resolveLocalFile(source, importer, normalizeOptions);
|
|
21881
|
+
if (localFile) return localFile;
|
|
21861
21882
|
const resolved = await resolver.resolve(source, importer);
|
|
21862
21883
|
return resolved ? resolved.id : void 0;
|
|
21863
21884
|
},
|
|
@@ -24741,7 +24762,7 @@ async function loadAppEntry(ctx, scanState) {
|
|
|
24741
24762
|
const vueAppPath = await findVueEntry(appBasename);
|
|
24742
24763
|
let configFromVue;
|
|
24743
24764
|
if (!appConfigFile && vueAppPath) {
|
|
24744
|
-
const { extractConfigFromVue } = await import("./file-
|
|
24765
|
+
const { extractConfigFromVue } = await import("./file-DiowMq_y.mjs");
|
|
24745
24766
|
configFromVue = await extractConfigFromVue(vueAppPath);
|
|
24746
24767
|
if (configFromVue) appConfigFile = vueAppPath;
|
|
24747
24768
|
}
|
|
@@ -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-DrxKxIJT.mjs");
|
|
88
88
|
const compilerContext = getCompilerContext();
|
|
89
89
|
const service = compilerContext.autoRoutesService;
|
|
90
90
|
const reference = service?.getReference?.();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as 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-
|
|
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-CobCpW-a.mjs";
|
|
2
2
|
import { a as createWevuComponent, i as WevuComponentOptions, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-CDNs17Qq.mjs";
|
|
3
3
|
|
|
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 WEB_PLATFORM_ALIASES, d as isWebPlatform, f as resolveWeappViteTarget, l as getSupportedWeappVitePlatforms, t as createCompilerContext, u as getSupportedWeappViteTargetDescriptors } from "./createContext-
|
|
4
|
+
import { c as WEB_PLATFORM_ALIASES, d as isWebPlatform, f as resolveWeappViteTarget, l as getSupportedWeappVitePlatforms, t as createCompilerContext, u as getSupportedWeappViteTargetDescriptors } from "./createContext-DNKY6vX9.mjs";
|
|
5
5
|
import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-C3z9pDQB.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, resolveWeappViteHostMeta, resolveWeappViteTarget, 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-CobCpW-a.mjs";
|
|
2
2
|
export { type App, type Component, type Page, type Sitemap, type Theme, defineAppJson, defineComponentJson, definePageJson, defineSitemapJson, defineThemeJson };
|
package/dist/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as WeappMcpConfig } from "./config-
|
|
1
|
+
import { Et as WeappMcpConfig } from "./config-CobCpW-a.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
|
|
|
4
4
|
//#region src/mcp.d.ts
|
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-CobCpW-a.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.16.
|
|
4
|
+
"version": "6.16.40",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"pathe": "^2.0.3",
|
|
110
110
|
"picomatch": "^4.0.4",
|
|
111
111
|
"postcss": "^8.5.15",
|
|
112
|
-
"rolldown": "1.0
|
|
112
|
+
"rolldown": "1.1.0",
|
|
113
113
|
"rolldown-plugin-dts": "0.25.2",
|
|
114
114
|
"semver": "^7.8.1",
|
|
115
115
|
"typescript": "^6.0.3",
|
|
@@ -118,21 +118,21 @@
|
|
|
118
118
|
"vue": "^3.5.35",
|
|
119
119
|
"vue-tsc": "^3.3.3",
|
|
120
120
|
"@weapp-core/constants": "0.1.12",
|
|
121
|
+
"@weapp-core/init": "6.0.9",
|
|
121
122
|
"@weapp-core/logger": "3.1.1",
|
|
122
123
|
"@weapp-core/schematics": "6.0.4",
|
|
123
|
-
"@weapp-core/init": "6.0.9",
|
|
124
124
|
"@weapp-core/shared": "3.0.4",
|
|
125
|
-
"@weapp-vite/ast": "6.16.
|
|
126
|
-
"@weapp-vite/
|
|
125
|
+
"@weapp-vite/ast": "6.16.40",
|
|
126
|
+
"@weapp-vite/mcp": "1.4.2",
|
|
127
|
+
"@weapp-vite/miniprogram-automator": "1.2.2",
|
|
127
128
|
"@weapp-vite/volar": "2.1.0",
|
|
128
|
-
"@weapp-vite/web": "1.3.
|
|
129
|
+
"@weapp-vite/web": "1.3.30",
|
|
129
130
|
"@wevu/api": "0.2.9",
|
|
130
|
-
"@weapp-vite/mcp": "1.4.0",
|
|
131
131
|
"@wevu/web-apis": "1.2.20",
|
|
132
132
|
"rolldown-require": "2.0.18",
|
|
133
133
|
"vite-plugin-performance": "2.0.1",
|
|
134
|
-
"weapp-ide-cli": "5.4.
|
|
135
|
-
"wevu": "6.16.
|
|
134
|
+
"weapp-ide-cli": "5.4.2",
|
|
135
|
+
"wevu": "6.16.40"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": {
|
|
138
138
|
"access": "public",
|
package/dist/file-BGjDGA3Q.mjs
DELETED