weapp-vite 7.8.1 → 7.9.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.
Files changed (41) hide show
  1. package/dist/{action-BUGyyQGz.mjs → action-BXQ_635N.mjs} +5 -5
  2. package/dist/{action-h0Hl877Y.mjs → action-BjqLMcEc.mjs} +1 -1
  3. package/dist/{action-tDGxlF4r.mjs → action-D4aE_85H.mjs} +4 -4
  4. package/dist/{action-BOWgF1Vn.mjs → action-DPyPIu7h.mjs} +6 -6
  5. package/dist/{action-fJRq8wtE.mjs → action-tvgM91DU.mjs} +2 -2
  6. package/dist/{assets-XYjughbv.mjs → assets-BTDeDWL8.mjs} +1 -1
  7. package/dist/auto-routes.mjs +2 -2
  8. package/dist/{classifier-Cv1lKsWb.mjs → classifier-CLQfYmuy.mjs} +2 -2
  9. package/dist/cli-acceptance.mjs +1 -1
  10. package/dist/cli.mjs +14 -14
  11. package/dist/{createCompilerContextInstance-mWrCvGmu.mjs → createCompilerContextInstance-3_LDm06J.mjs} +168 -8
  12. package/dist/{createContext-7ucDn0J6.mjs → createContext-Bt5Xf3qS.mjs} +2 -2
  13. package/dist/dashboard/vite.d.mts +1 -1
  14. package/dist/dashboard.d.mts +1 -1
  15. package/dist/docs/vite-plugin.md +6 -0
  16. package/dist/doctor-worker.mjs +1 -1
  17. package/dist/doctor.mjs +2 -2
  18. package/dist/file-BHca0tSX.mjs +1 -0
  19. package/dist/{file-CcBsrjHN.mjs → file-BSnzOG71.mjs} +1 -1
  20. package/dist/{forwardConsole-CjjElK0x.mjs → forwardConsole-5gsW38JU.mjs} +1 -1
  21. package/dist/{getInstance-DdTu2fTN.mjs → getInstance-BVPJxJPq.mjs} +1 -1
  22. package/dist/getInstance-KmwxLWE4.mjs +1 -0
  23. package/dist/{history-CIwVxZQd.mjs → history-DHf4bJcC.mjs} +2 -2
  24. package/dist/{index-DIZJRrvK.d.mts → index-BIjQ_ZIs.d.mts} +1 -1
  25. package/dist/index.mjs +2 -2
  26. package/dist/{lib-DttQ4dqI.mjs → lib-DFy0ICSb.mjs} +1 -1
  27. package/dist/loadConfig-CTPTKB6I.mjs +1 -0
  28. package/dist/{loadConfig-CNyE0sXM.mjs → loadConfig-Cz0YvFKX.mjs} +1 -1
  29. package/dist/{logBuildAppFinish-CXTWKrFj.mjs → logBuildAppFinish-CEd6S2uv.mjs} +1 -1
  30. package/dist/{mcp-CVwGnSco.mjs → mcp-BIeIXYnH.mjs} +1 -1
  31. package/dist/{openIde-D-3urjqT.mjs → openIde-DR1jRwRZ.mjs} +2 -2
  32. package/dist/{package-BgHvezbr.mjs → package-BnYH0riT.mjs} +1 -1
  33. package/dist/{runtime-B77K5W89.mjs → runtime-C3FhJHMZ.mjs} +1 -1
  34. package/dist/{session-hvNCOh6K.mjs → session-DEB9vhVJ.mjs} +2 -2
  35. package/dist/test.mjs +1 -1
  36. package/dist/{utils-BIBT4ml9.mjs → utils-C6mLS1fl.mjs} +1 -1
  37. package/dist/vite.mjs +2 -1
  38. package/package.json +9 -9
  39. package/dist/file-BqOEcjk8.mjs +0 -1
  40. package/dist/getInstance-C_0r-5oj.mjs +0 -1
  41. package/dist/loadConfig-DnqY7dSu.mjs +0 -1
@@ -1,12 +1,12 @@
1
- import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-CIwVxZQd.mjs";
2
- import { c as getBackendForCapability, d as CompilerSession, n as formatBytes } from "./createCompilerContextInstance-mWrCvGmu.mjs";
1
+ import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-DHf4bJcC.mjs";
2
+ import { c as getBackendForCapability, d as CompilerSession, n as formatBytes } from "./createCompilerContextInstance-3_LDm06J.mjs";
3
3
  import { n as createDashboardArtifactSnapshot } from "./artifacts-TrTX9_jj.mjs";
4
4
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
5
- import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-CXTWKrFj.mjs";
5
+ import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-CEd6S2uv.mjs";
6
6
  import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
7
- import { i as resolveIdeProjectPath, n as openIde } from "./openIde-D-3urjqT.mjs";
7
+ import { i as resolveIdeProjectPath, n as openIde } from "./openIde-DR1jRwRZ.mjs";
8
8
  import { a as parseDashboardUiHost, i as isUiEnabled, o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
9
- import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-B77K5W89.mjs";
9
+ import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-C3FhJHMZ.mjs";
10
10
  import { a as prepareAutoUploadMetadataWithRollback, n as executeUploadTarget, o as validateAutoUploadMetadata, t as createUploadTarget } from "./builtProject-B145uOt5.mjs";
11
11
  import { a as resolveBuildUploadOptions } from "./report-PJVyo-UZ.mjs";
12
12
  import process from "node:process";
@@ -21,7 +21,7 @@ async function resolveHttpUrl(options) {
21
21
  try {
22
22
  if (workspaceRoot !== originalCwd) process.chdir(workspaceRoot);
23
23
  const configFile = resolveConfigFile(options);
24
- const { loadConfig } = await import("./loadConfig-DnqY7dSu.mjs");
24
+ const { loadConfig } = await import("./loadConfig-CTPTKB6I.mjs");
25
25
  const loaded = await loadConfig(configFile);
26
26
  const resolved = resolveWeappMcpConfig(loaded?.config?.weapp?.mcp);
27
27
  return `http://${resolved.host}:${resolved.port}${resolved.endpoint}`;
@@ -1,10 +1,10 @@
1
- import { c as getBackendForCapability } from "./createCompilerContextInstance-mWrCvGmu.mjs";
1
+ import { c as getBackendForCapability } from "./createCompilerContextInstance-3_LDm06J.mjs";
2
2
  import { t as VERSION } from "./constants-BOe8mgqL.mjs";
3
3
  import { r as logger_default } from "./logger-DGn5iEVN.mjs";
4
- import { a as startForwardConsoleBridge, i as resolveForwardConsoleOptions, o as readLatestHmrProfileSummary } from "./forwardConsole-CjjElK0x.mjs";
5
- import { n as openIde, r as resolveIdeCommandContext } from "./openIde-D-3urjqT.mjs";
4
+ import { a as startForwardConsoleBridge, i as resolveForwardConsoleOptions, o as readLatestHmrProfileSummary } from "./forwardConsole-5gsW38JU.mjs";
5
+ import { n as openIde, r as resolveIdeCommandContext } from "./openIde-DR1jRwRZ.mjs";
6
6
  import { o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
7
- import { i as resolveRuntimeTargets } from "./runtime-B77K5W89.mjs";
7
+ import { i as resolveRuntimeTargets } from "./runtime-C3FhJHMZ.mjs";
8
8
  import process from "node:process";
9
9
  import { bootstrapWechatDevtoolsSettings, connectOpenedAutomator, defaultCustomConfigFilePath, detectWechatDevtoolsServicePort, getWechatIdeTestAccounts, getWechatIdeTicket, getWechatIdeToolInfo, queryWechatIdeLogin, refreshWechatIdeTicket, resolveCliPath, resolveProjectAutomatorPort, setWechatIdeTicket } from "weapp-ide-cli";
10
10
  // src/cli/commands/ide/action.ts
@@ -1,18 +1,18 @@
1
1
  import { t as readHmrProfileLines } from "./reader-wzPH_W8A.mjs";
2
- import { b as resolvePreloadPackageIdentifier, v as collectPreloadPages, x as suggestPreloadRules, y as findPreloadRuleKey } from "./utils-BIBT4ml9.mjs";
3
- import { c as findJsEntry, d as findVueEntry, u as findTemplateEntry } from "./file-CcBsrjHN.mjs";
4
- import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-CIwVxZQd.mjs";
2
+ import { b as resolvePreloadPackageIdentifier, v as collectPreloadPages, x as suggestPreloadRules, y as findPreloadRuleKey } from "./utils-C6mLS1fl.mjs";
3
+ import { c as findJsEntry, d as findVueEntry, u as findTemplateEntry } from "./file-BSnzOG71.mjs";
4
+ import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-DHf4bJcC.mjs";
5
5
  import { t as createAnalyzeBudgetCheck } from "./budget-_Mu-4GKn.mjs";
6
6
  import { r as createAnalyzeComparison, t as createDuplicateModuleInsights } from "./analyze-DCZo-sJd.mjs";
7
- import { c as getBackendForCapability } from "./createCompilerContextInstance-mWrCvGmu.mjs";
8
- import { t as createCompilerContext } from "./createContext-7ucDn0J6.mjs";
7
+ import { c as getBackendForCapability } from "./createCompilerContextInstance-3_LDm06J.mjs";
8
+ import { t as createCompilerContext } from "./createContext-Bt5Xf3qS.mjs";
9
9
  import { n as createDashboardArtifactSnapshot } from "./artifacts-TrTX9_jj.mjs";
10
10
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
11
11
  import { f as resolveHmrProfileJsonPath } from "./devProvider-Ci2il72x.mjs";
12
12
  import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
13
13
  import { a as parseDashboardUiHost, o as resolveConfigFile, r as filterDuplicateOptions, t as coerceBooleanOption } from "./options-Cz8vZ-0w.mjs";
14
14
  import { t as terminateStaleSassEmbeddedProcess } from "./processCleanup-DzB64WI8.mjs";
15
- import { i as resolveRuntimeTargets, n as logRuntimeTarget, t as createInlineConfig } from "./runtime-B77K5W89.mjs";
15
+ import { i as resolveRuntimeTargets, n as logRuntimeTarget, t as createInlineConfig } from "./runtime-C3FhJHMZ.mjs";
16
16
  import process from "node:process";
17
17
  import path from "pathe";
18
18
  import { fs } from "@weapp-core/shared/fs";
@@ -1,9 +1,9 @@
1
- import { t as createCompilerContext } from "./createContext-7ucDn0J6.mjs";
1
+ import { t as createCompilerContext } from "./createContext-Bt5Xf3qS.mjs";
2
2
  import { r as logger_default } from "./logger-DGn5iEVN.mjs";
3
3
  import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
4
4
  import { o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
5
5
  import { t as terminateStaleSassEmbeddedProcess } from "./processCleanup-DzB64WI8.mjs";
6
- import { i as resolveRuntimeTargets, t as createInlineConfig } from "./runtime-B77K5W89.mjs";
6
+ import { i as resolveRuntimeTargets, t as createInlineConfig } from "./runtime-C3FhJHMZ.mjs";
7
7
  import { n as resolveUploadPlatforms } from "./upload-Chal5b3w.mjs";
8
8
  import { i as prepareAutoUploadMetadata, n as executeUploadTarget, r as UploadExecutionError, t as createUploadTarget } from "./builtProject-B145uOt5.mjs";
9
9
  import { o as resolveUploadTimeout, t as UploadCommandError } from "./report-PJVyo-UZ.mjs";
@@ -1,5 +1,5 @@
1
1
  import { t as resolveRealpath } from "./realpathScope-DwlLaCk3.mjs";
2
- import { a as hasOwn, i as resolveWeappLibEntries, o as waitForBuildTasks } from "./lib-DttQ4dqI.mjs";
2
+ import { a as hasOwn, i as resolveWeappLibEntries, o as waitForBuildTasks } from "./lib-DFy0ICSb.mjs";
3
3
  import { n as loadHostRolldownBuild } from "./engine-Mnnm_ALP.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import process from "node:process";
@@ -1,5 +1,5 @@
1
- import { t as getCompilerContext } from "./getInstance-DdTu2fTN.mjs";
2
- import { U as getRouteRuntimeGlobalKeys } from "./createCompilerContextInstance-mWrCvGmu.mjs";
1
+ import { t as getCompilerContext } from "./getInstance-BVPJxJPq.mjs";
2
+ import { U as getRouteRuntimeGlobalKeys } from "./createCompilerContextInstance-3_LDm06J.mjs";
3
3
  // src/auto-routes.ts
4
4
  const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
5
5
  function createGetter(resolver) {
@@ -1,6 +1,6 @@
1
1
  import { t as isPathInside } from "./path-E1OjBJAl.mjs";
2
- import { o as SHARED_CHUNK_VIRTUAL_PREFIX } from "./package-BgHvezbr.mjs";
3
- import "./utils-BIBT4ml9.mjs";
2
+ import { o as SHARED_CHUNK_VIRTUAL_PREFIX } from "./package-BnYH0riT.mjs";
3
+ import "./utils-C6mLS1fl.mjs";
4
4
  import { posix } from "pathe";
5
5
  // src/analyze/subpackages/classifier.ts
6
6
  const VIRTUAL_MODULE_INDICATOR = "\0";
@@ -1,4 +1,4 @@
1
- import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-CVwGnSco.mjs";
1
+ import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-BIeIXYnH.mjs";
2
2
  import { t as VERSION } from "./constants-BOe8mgqL.mjs";
3
3
  import process from "node:process";
4
4
  import { cac } from "cac";
package/dist/cli.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-CVwGnSco.mjs";
1
+ import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-BIeIXYnH.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
3
- import { a as resolveIdeProjectRoot, n as openIde, r as resolveIdeCommandContext, s as executeWechatIdeCliCommand, t as closeIde } from "./openIde-D-3urjqT.mjs";
3
+ import { a as resolveIdeProjectRoot, n as openIde, r as resolveIdeCommandContext, s as executeWechatIdeCliCommand, t as closeIde } from "./openIde-DR1jRwRZ.mjs";
4
4
  import { a as parseDashboardUiHost, i as isUiEnabled, n as convertBase, o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
5
- import { t as loadConfig } from "./loadConfig-CNyE0sXM.mjs";
5
+ import { t as loadConfig } from "./loadConfig-Cz0YvFKX.mjs";
6
6
  import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-ovJgl1N9.mjs";
7
- import { H as getHmrRuntimeSession, M as syncProjectSupportFiles, N as syncManagedTsconfigBootstrapFiles, T as createGlassEaselAnalyzeResult, c as getBackendForCapability } from "./createCompilerContextInstance-mWrCvGmu.mjs";
8
- import { n as maybeStartForwardConsole, o as readLatestHmrProfileSummary, r as pauseActiveForwardConsole, t as closeActiveForwardConsole } from "./forwardConsole-CjjElK0x.mjs";
7
+ import { H as getHmrRuntimeSession, M as syncProjectSupportFiles, N as syncManagedTsconfigBootstrapFiles, T as createGlassEaselAnalyzeResult, c as getBackendForCapability } from "./createCompilerContextInstance-3_LDm06J.mjs";
8
+ import { n as maybeStartForwardConsole, o as readLatestHmrProfileSummary, r as pauseActiveForwardConsole, t as closeActiveForwardConsole } from "./forwardConsole-5gsW38JU.mjs";
9
9
  import { r as formatMcpQuickStart } from "./mcpClient-C8JzVZ46.mjs";
10
- import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-B77K5W89.mjs";
11
- import { t as createCompilerContext } from "./createContext-7ucDn0J6.mjs";
10
+ import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-C3FhJHMZ.mjs";
11
+ import { t as createCompilerContext } from "./createContext-Bt5Xf3qS.mjs";
12
12
  import { o as createDevShutdownScope } from "./lifecycle-Dt0rvANg.mjs";
13
- import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-CIwVxZQd.mjs";
14
- import { n as version } from "./package-BgHvezbr.mjs";
15
- import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-CXTWKrFj.mjs";
13
+ import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-DHf4bJcC.mjs";
14
+ import { n as version } from "./package-BnYH0riT.mjs";
15
+ import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-CEd6S2uv.mjs";
16
16
  import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
17
17
  import { t as createAnalyzeMetadata } from "./metadata-HlDKtlsu.mjs";
18
18
  import { n as createDashboardArtifactSnapshot } from "./artifacts-TrTX9_jj.mjs";
@@ -115,14 +115,14 @@ function registerAlipayCommand(cli) {
115
115
  // src/cli/commands/analyze/index.ts
116
116
  function registerAnalyzeCommand(cli) {
117
117
  cli.command("analyze [root]", "analyze 两端包体与源码映射").option("--ui-host <host>", `[string] 启动调试 UI 并选择宿主(standalone | hub)`).option("--hmr-profile [file]", `[string | boolean] 分析 HMR JSONL profile,省略值时优先读取配置,否则回退到默认路径`).option("--json", `[boolean] 输出 JSON 结果`).option("--markdown", `[boolean] 输出 Markdown 报告`).option("--report <type>", `[string] 输出指定报告类型(pr)`).option("--budget-check", `[boolean] 检查 analyze 预算,超过预算时返回非 0 退出码`).option("--glass-easel-check", `[boolean] 检查 glass-easel 配置、模板和 SelectorQuery 迁移兼容性`).option("--preload", `[boolean] 分析静态页面跳转、实际分包体积和 preloadRule 额度`).option("--output <file>", `[string] 将分析结果写入指定文件(JSON 或 Markdown)`).option("-p, --platform <platform>", `[string] target platform (weapp | web)`).option("--project-config <path>", `[string] project config path (miniprogram only)`).action(async (root, options) => {
118
- const { runAnalyzeCommand } = await import("./action-BOWgF1Vn.mjs");
118
+ const { runAnalyzeCommand } = await import("./action-DPyPIu7h.mjs");
119
119
  return runAnalyzeCommand(root, options);
120
120
  });
121
121
  }
122
122
  // src/cli/commands/build/index.ts
123
123
  function registerBuildCommand(cli) {
124
124
  cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'modules')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("-p, --platform <platform>", `[string] target platform (weapp | web | all)`).option("--project-config <path>", `[string] project config path (miniprogram only)`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("--trust-project", "[boolean] auto trust Wechat DevTools project on open", { default: true }).option("--ide-open-strategy <strategy>", "[string] IDE open strategy (cli | automator)", { default: "cli" }).option("--no-open-recovery", "[boolean] disable automatic target-project open retry (preserves existing IDE windows)").option("--ui", `[boolean] 启动调试 UI(当前提供分析视图)`, { default: false }).option("--ui-host <host>", `[string] 启动调试 UI 并选择宿主(standalone | hub)`).option("--analyze", `[boolean] 输出分包分析仪表盘`, { default: false }).option("--scope <scope>", `[string] 局部构建范围,例如 main,packages/order`).option("--upload", "[boolean] upload the mini program after this build succeeds").option("--uv <version>", "[string] upload version override (requires --upload)").option("--desc <text>", "[string] upload description override (requires --upload)").option("--bump <release>", "[string] increment local package version (patch | minor | major; requires --upload)").option("--git-desc", "[boolean] use the latest Git commit subject (requires --upload)").option("--dry-run", "[boolean] validate upload output without credentials or SDK calls (requires --upload)").action(async (root, options) => {
125
- const { runBuildCommand } = await import("./action-BUGyyQGz.mjs");
125
+ const { runBuildCommand } = await import("./action-BXQ_635N.mjs");
126
126
  return runBuildCommand(cli, root, options);
127
127
  });
128
128
  }
@@ -196,7 +196,7 @@ function registerGenerateCommand(cli) {
196
196
  // src/cli/commands/ide/index.ts
197
197
  /** 仅在执行 IDE 子命令时加载宿主工具和日志桥接实现。 */
198
198
  async function runIdeCommand(action, root, options) {
199
- const { runIdeCommand } = await import("./action-tDGxlF4r.mjs");
199
+ const { runIdeCommand } = await import("./action-D4aE_85H.mjs");
200
200
  return runIdeCommand(action, root, options);
201
201
  }
202
202
  /**
@@ -1598,7 +1598,7 @@ function registerServeCommand(cli) {
1598
1598
  // src/cli/commands/upload/index.ts
1599
1599
  /** 按实际上传或预览调用加载执行层,保留原有返回值重载。 */
1600
1600
  async function runUploadCommand(root, options, action = "upload") {
1601
- const { runUploadCommand } = await import("./action-fJRq8wtE.mjs");
1601
+ const { runUploadCommand } = await import("./action-tvgM91DU.mjs");
1602
1602
  return runUploadCommand(root, options, action);
1603
1603
  }
1604
1604
  function registerUploadCommand(cli) {
@@ -6,17 +6,17 @@ import { a as parseSidecarModuleId, c as resolveVirtualModuleId, i as parseLogic
6
6
  import { $ as invalidateAutoRoutesVirtualModules, A as chokidar_default, At as isLogicalEntrySource, B as resolveNpmBuildCandidateDependenciesSync, C as deferWxmlDependencyCommit, Ct as platformApiIdentifiers, D as shareWxmlDependencies, Dt as collectDevStartNodes, E as isWxmlDependency, Et as collectBuildStartIds, F as dedupeNpmDependencies, G as packageSearchOptions, H as resolveNpmDistDirName, I as hasLocalSubPackageNpmConfig, J as WEVU_AUTO_ROUTES_RESOLVED_MODULE_ID$1, K as createPackageImportsQueryPlugin, L as resolveConfiguredNpmDependencyPatterns, N as createViteWatchIgnored, O as createFileWatcher, Ot as hasBuildModule, P as resolvePollingWatchOptions, Q as createAutoRoutesSidecarWatcher, R as resolveDeclaredNpmDependencies, S as commitWxmlDependencies, St as mayContainPlatformApiIdentifierByText, T as getWxmlWatchFiles, Tt as collectComponentPropsFromCode, U as resolveNpmStrategyMode, V as resolveNpmBuildCandidateDependencyRecordSync, W as resolveTargetDependencies, X as collectAutoRoutesReloadModules, Y as addAutoRoutesWatchTargets, Z as collectAutoRoutesWatchDirs, _ as notifyDevModuleGraphHost, _t as isPlatformApiIdentifier, a as markOwnedPlugins, at as shouldStartAutoRoutesWatcher, b as beginWxmlDependencies, bt as collectRequireTokens, c as recordHmrProfileDuration, ct as isAutoRoutesGeneratedRelativePath, d as resolveHmrProfileJsonEnvOption, dt as createAutoRoutesMatcher, et as isAutoRoutesWatchFile, f as resolveHmrProfileJsonPath, ft as isCSSRequest, g as hasDevModuleGraphHost, gt as analyzeScripts, ht as analyzeScript$1, i as markOwnedPlugin, it as resolveAutoRoutesWatchChangeEvent, j as deduplicateCleanupErrors, jt as normalizeSourceId$1, k as createSidecarWatcherReadiness, kt as hasDevModule, l as recordHmrProfileOperation, lt as resolveAutoRoutesManagedOutputPaths, m as createSidecarModuleCode, mt as analyzeNpmChunksWithNative, n as createDevModuleGraphProvider, nt as resolveAutoRoutesHotUpdateAction, o as createHmrProfileCheckpoint, ot as isAutoRoutesGeneratedDirectoryName, p as createLogicalEntryModuleCode, pt as isRegexp, q as RESOLVED_VIRTUAL_ID, r as createOwnedPluginGeneration, rt as resolveAutoRoutesVirtualId, s as createHmrProfileEventId, st as isAutoRoutesGeneratedPath, tt as isAutoRoutesWatchMode, u as resolveActiveHmrProfileJsonPath, ut as resolveWeappAutoRoutesConfig, v as reportDevModuleGraphBuild, vt as resolveAstEngine, w as failWxmlDependencies, wt as collectOnPageScrollPerformanceWarnings, x as clearWxmlDependencies, xt as mayContainStaticRequireLiteral, y as bindWxmlDependencyWatch, yt as analyzeScriptSetupImportsFromCode, z as resolveMainBuildDependencyPatterns } from "./devProvider-Ci2il72x.mjs";
7
7
  import { a as normalizeWatchPath, i as normalizeRoot, n as normalizePath$1, r as normalizeRelativePath$1, s as toPosixPath, t as isPathInside } from "./path-E1OjBJAl.mjs";
8
8
  import { C as shouldNormalizeVueTemplateForPlatform, D as shouldUseProjectRootNpmDir, E as shouldRewriteBundleNpmImports, T as shouldRebuildCachedMiniprogramPackage, _ as shouldEmitGenericPlaceholderAsset, a as getPlatformNpmDistDirName, b as shouldNormalizeMiniprogramPackage, c as getPreservedNpmDirNames, d as getWxmlDirectivePrefix, f as getWxmlPlatformTransformOptions, g as shouldCopyEsModuleDirectory, h as resolveMiniPlatformWithDefault, i as getPlatformAppTypesPackage, l as getProjectPlatformOptions, m as resolveMiniPlatform, o as getPlatformOutputExtensions, r as getJsonPlatformOptions, t as DEFAULT_MP_PLATFORM, u as getSupportedMiniProgramPlatforms$1, y as shouldHoistNestedMiniprogramDependencies } from "./platform-BiMpsZIb.mjs";
9
- import { a as replaceCompilerSourceSnapshotView, c as findJsEntry, d as findVueEntry, f as isJsOrTs, h as touch, i as getCompilerSourceSnapshotView, l as findJsonEntry, n as getCompilerSourceResolutions, o as changeFileExtension, p as isTemplate, r as getCompilerSourceSnapshot, s as findCssEntry, t as extractConfigFromVue, u as findTemplateEntry, v as inlineAutoRoutesImports } from "./file-CcBsrjHN.mjs";
9
+ import { a as replaceCompilerSourceSnapshotView, c as findJsEntry, d as findVueEntry, f as isJsOrTs, h as touch, i as getCompilerSourceSnapshotView, l as findJsonEntry, n as getCompilerSourceResolutions, o as changeFileExtension, p as isTemplate, r as getCompilerSourceSnapshot, s as findCssEntry, t as extractConfigFromVue, u as findTemplateEntry, v as inlineAutoRoutesImports } from "./file-BSnzOG71.mjs";
10
10
  import { a as supportedCssLangs, c as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS, d as isNativeTemplateSource, f as isSourceStyleExtension, i as scriptExtensions, n as configExtensions, o as templateExtensions, r as jsExtensions, s as vueExtensions } from "./constants-BOe8mgqL.mjs";
11
- import { $ as parseNpmPackageSpecifier, A as createCjsConfigLoadError, B as ALIPAY_GENERIC_COMPONENT_PLACEHOLDER, C as loadViteConfigFile, D as invalidateFileCache, E as resolveEntryPath, F as generate$1, G as normalizeAppJson, H as getAliasEntries, I as getVisitorKeys, J as resolveJson, K as parseCommentJson, L as parse$3, M as getReadFileCheckMtime, N as BABEL_TS_MODULE_PARSER_OPTIONS$1, O as pathExists, P as BABEL_TS_MODULE_PLUGINS, Q as normalizeNpmImportPathByPlatform, R as parseJsLike, S as TYPELESS_PACKAGE_JSON_WARNING_CODE, T as resolveEntryExtensions, U as jsonFileRemoveJsExtension, V as WEAPP_SCOPED_SLOT_GENERIC_COMPONENT_PLACEHOLDER, W as matches$1, X as hasNpmDependencyPrefix, Y as toKebabCaseComponentName, Z as normalizeNpmImportLookupPath, _ as applyPreloadRulesToAppJson, a as resolveReExportedName, c as getProjectConfigRootKeys, d as resolveProjectConfigRoot, et as resolveNpmDependencyId, f as resolveProjectConfigSyncDirs, g as pruneOwnedAssetFiles, h as publishProjectConfigAssets, i as toAbsoluteId, j as getPathExistsTtlMs, k as readFile$2, l as getProjectPrivateConfig, m as collectProjectConfigAssets, n as shouldResolveUsingComponentFrom, o as getProjectConfig, p as syncProjectConfigToOutput, q as resolveImportee$1, r as usingComponentFromResolvedFile, s as getProjectConfigFileName, t as resolveWeappConfigFile, u as getProjectPrivateConfigFileName, w as createCachedEntryResolveOptions, z as traverse } from "./utils-BIBT4ml9.mjs";
11
+ import { $ as parseNpmPackageSpecifier, A as createCjsConfigLoadError, B as ALIPAY_GENERIC_COMPONENT_PLACEHOLDER, C as loadViteConfigFile, D as invalidateFileCache, E as resolveEntryPath, F as generate$1, G as normalizeAppJson, H as getAliasEntries, I as getVisitorKeys, J as resolveJson, K as parseCommentJson, L as parse$3, M as getReadFileCheckMtime, N as BABEL_TS_MODULE_PARSER_OPTIONS$1, O as pathExists, P as BABEL_TS_MODULE_PLUGINS, Q as normalizeNpmImportPathByPlatform, R as parseJsLike, S as TYPELESS_PACKAGE_JSON_WARNING_CODE, T as resolveEntryExtensions, U as jsonFileRemoveJsExtension, V as WEAPP_SCOPED_SLOT_GENERIC_COMPONENT_PLACEHOLDER, W as matches$1, X as hasNpmDependencyPrefix, Y as toKebabCaseComponentName, Z as normalizeNpmImportLookupPath, _ as applyPreloadRulesToAppJson, a as resolveReExportedName, c as getProjectConfigRootKeys, d as resolveProjectConfigRoot, et as resolveNpmDependencyId, f as resolveProjectConfigSyncDirs, g as pruneOwnedAssetFiles, h as publishProjectConfigAssets, i as toAbsoluteId, j as getPathExistsTtlMs, k as readFile$2, l as getProjectPrivateConfig, m as collectProjectConfigAssets, n as shouldResolveUsingComponentFrom, o as getProjectConfig, p as syncProjectConfigToOutput, q as resolveImportee$1, r as usingComponentFromResolvedFile, s as getProjectConfigFileName, t as resolveWeappConfigFile, u as getProjectPrivateConfigFileName, w as createCachedEntryResolveOptions, z as traverse } from "./utils-C6mLS1fl.mjs";
12
12
  import { n as configureLogger, r as logger_default } from "./logger-DGn5iEVN.mjs";
13
13
  import { n as loadHostRolldownBuild, t as loadHostRolldown } from "./engine-Mnnm_ALP.mjs";
14
- import { A as isTemplateImportTag, B as shouldNormalizeScriptModuleAttributes, C as normalizeEncodedSourceMapLike, D as platformTemplateParser, E as outputTemplateParser, F as isScriptModuleImportAttr, I as isScriptModuleTagName, L as normalizeImportSjsAttributes, M as getNativeScriptModuleByTag, N as getScriptModuleImportAttrs, O as getTemplateImportAttrs, P as getScriptModuleTagNames, R as resolveScriptModuleTagByPlatform, S as labelSourceMapInput, T as configuredTemplateParser, _ as replaceOutputChunkCode, b as syncOutputChunkSourceMapAssets, c as applyRuntimeChunkLocalization, d as appendOutputChunkCode, f as applyAtomicMagicStringChunkRewrite, g as prependOutputChunkCode, h as editOutputChunkCode, i as applySharedChunkStrategy, j as shouldNormalizeTemplateImportSource, k as isTemplateImportAttr, l as assertModuleScopedToRoot, m as applyOutputChunkTransform, p as applyMagicStringChunkRewrite, r as resolveSharedChunkName, s as SUB_PACKAGE_SHARED_DIR, t as engines, u as resolveSubPackagePrefix, v as replaceOutputChunkCodeRanges, w as resetTakeImportRegistry, x as composeSourceMaps, y as resolveOutputChunkTransformCode, z as resolveScriptModuleTagName } from "./package-BgHvezbr.mjs";
14
+ import { A as isTemplateImportTag, B as shouldNormalizeScriptModuleAttributes, C as normalizeEncodedSourceMapLike, D as platformTemplateParser, E as outputTemplateParser, F as isScriptModuleImportAttr, I as isScriptModuleTagName, L as normalizeImportSjsAttributes, M as getNativeScriptModuleByTag, N as getScriptModuleImportAttrs, O as getTemplateImportAttrs, P as getScriptModuleTagNames, R as resolveScriptModuleTagByPlatform, S as labelSourceMapInput, T as configuredTemplateParser, _ as replaceOutputChunkCode, b as syncOutputChunkSourceMapAssets, c as applyRuntimeChunkLocalization, d as appendOutputChunkCode, f as applyAtomicMagicStringChunkRewrite, g as prependOutputChunkCode, h as editOutputChunkCode, i as applySharedChunkStrategy, j as shouldNormalizeTemplateImportSource, k as isTemplateImportAttr, l as assertModuleScopedToRoot, m as applyOutputChunkTransform, p as applyMagicStringChunkRewrite, r as resolveSharedChunkName, s as SUB_PACKAGE_SHARED_DIR, t as engines, u as resolveSubPackagePrefix, v as replaceOutputChunkCodeRanges, w as resetTakeImportRegistry, x as composeSourceMaps, y as resolveOutputChunkTransformCode, z as resolveScriptModuleTagName } from "./package-BnYH0riT.mjs";
15
15
  import { n as transformWxsCode, r as normalizeWxsFilename, t as transformFilterCode } from "./filter-BEsBsZE9.mjs";
16
- import { a as hasOwn$6, i as resolveWeappLibEntries, n as hasLibEntry, o as waitForBuildTasks, r as resolveWeappLibConfig, t as createLibEntryFileNameResolver } from "./lib-DttQ4dqI.mjs";
16
+ import { a as hasOwn$6, i as resolveWeappLibEntries, n as hasLibEntry, o as waitForBuildTasks, r as resolveWeappLibConfig, t as createLibEntryFileNameResolver } from "./lib-DFy0ICSb.mjs";
17
17
  import { createRequire, isBuiltin } from "node:module";
18
18
  import process from "node:process";
19
- import { APP_PRELUDE_CHUNK_MARKER, APP_PRELUDE_GUARD_KEY, APP_PRELUDE_REQUIRE_MARKER, REQUEST_GLOBAL_ACTUALS_KEY, REQUEST_GLOBAL_BUNDLE_HOST_REF, REQUEST_GLOBAL_BUNDLE_MARKER, REQUEST_GLOBAL_BUNDLE_MARKER as REQUEST_GLOBAL_BUNDLE_MARKER$1, REQUEST_GLOBAL_CHUNK_HOST_REF, REQUEST_GLOBAL_CHUNK_MODULE_REF, REQUEST_GLOBAL_EXPOSE_HELPER, REQUEST_GLOBAL_INSTALLER_HOST_REF, REQUEST_GLOBAL_INSTALLER_MARKER, REQUEST_GLOBAL_LAZY_CONSTRUCTOR_HELPER, REQUEST_GLOBAL_LAZY_FUNCTION_HELPER, REQUEST_GLOBAL_LOCAL_BINDINGS_MARKER, REQUEST_GLOBAL_LOCAL_BINDINGS_MARKER as REQUEST_GLOBAL_LOCAL_BINDINGS_MARKER$1, REQUEST_GLOBAL_MARK_PLACEHOLDER_HELPER, REQUEST_GLOBAL_PASSIVE_BINDINGS_MARKER, REQUEST_GLOBAL_PASSIVE_BINDINGS_MARKER as REQUEST_GLOBAL_PASSIVE_BINDINGS_MARKER$1, REQUEST_GLOBAL_PLACEHOLDER_KEY, REQUEST_GLOBAL_PRELUDE_GUARD_KEY, REQUEST_GLOBAL_PRELUDE_MARKER, REQUEST_GLOBAL_SYNTHETIC_EXPORT_NAME, REQUEST_GLOBAL_USABLE_CONSTRUCTOR_HELPER, WEAPP_I18N_JS_FILE, WEAPP_I18N_LOCALE_DATA_KEY, WEAPP_I18N_PUBLIC_MODULE_ID, WEAPP_I18N_RUNTIME_MARKER, WEAPP_I18N_VIRTUAL_MODULE_ID, WEAPP_I18N_WXS_FILE, WEAPP_REACT_EVENT_METHOD_NAME, WEAPP_VITE_CLASSIC_GENERATION_MARKER, WEAPP_VITE_CLASSIC_SETTLEMENT_KEY, WEAPP_VITE_EXTERNAL_OUTPUT_DIRECTORY, WEAPP_VITE_IMPORT_META_ENV_KEY, WEAPP_VITE_INJECTED_API_IDENTIFIER, WEAPP_VITE_LOGICAL_ENTRY_RESOLVED_PREFIX, WEAPP_VITE_OUTPUT_PUBLICATION_PLUGIN_NAME, WEAPP_VITE_RUNTIME_CONTRACT_VERSION, WEAPP_VITE_RUNTIME_REACTIVITY_VIRTUAL_ID, WEAPP_VITE_RUNTIME_TEMPLATE_VIRTUAL_ID, WEAPP_VITE_RUNTIME_VIRTUAL_ID, WEAPP_VITE_RUNTIME_VIRTUAL_IDS, WEAPP_VITE_SIDECAR_RESOLVED_PREFIX, WEAPP_VITE_STATEFUL_HMR_BRIDGE_KEY, WEAPP_VITE_STATEFUL_HMR_CLIENT_KEY, WEAPP_VITE_STATEFUL_HMR_CONTROL_FILE, WEAPP_VITE_STATEFUL_HMR_CONTROL_KEY, WEAPP_VITE_STATEFUL_HMR_GLOBAL_STYLE_BASENAME, WEAPP_VITE_STATEFUL_HMR_PRELOAD_FILE, WEAPP_VITE_STATEFUL_HMR_REGISTRATION_CONTRACT_VERSION, WEAPP_VITE_STATEFUL_HMR_RUNTIME_CONTRACT_METHOD, WEAPP_VITE_STATEFUL_HMR_UNSUPPORTED_REGISTRATION_CODE, WEAPP_VITE_STATEFUL_HMR_UPDATE_FILE, WEAPP_VITE_WEB_AUTO_ROUTES_RESOLVED_MODULE_ID, WEAPP_VITE_WEB_ENTRY_RESOLVED_MODULE_ID, WEB_RUNTIME_GLOBAL_TARGETS, WEB_RUNTIME_STREAM_TARGETS, WEVU_APP_SHELL_COMPONENT_BASE, WEVU_APP_SHELL_TAG_NAME, WEVU_APP_SHELL_VIRTUAL_PREFIX, WEVU_AUTO_ROUTES_MODULE_ID, WEVU_AUTO_ROUTES_RESOLVED_MODULE_ID, WEVU_AUTO_ROUTES_VIRTUAL_MODULE_ID, WEVU_CLASS_STYLE_RUNTIME_MODULE, WEVU_DEFINE_PAGE_META_MACRO, WEVU_INTERNAL_KEY_IDENTIFIER, WEVU_LAYOUT_BIND_PREFIX, WEVU_NATIVE_DECLARATION_METHOD, WEVU_PAGE_LAYOUT_CURRENT_NAME_IDENTIFIER, WEVU_PAGE_LAYOUT_CURRENT_PROPS_IDENTIFIER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NEXT_NAME_IDENTIFIER, WEVU_PAGE_LAYOUT_NEXT_PROPS_IDENTIFIER, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_ROUTER_MODULE_ID, WEVU_SLOT_FALLBACK_VIRTUAL_HOST_BASE, WEVU_SLOT_FALLBACK_VIRTUAL_HOST_GLOBAL_PATH, WEVU_SLOT_FALLBACK_VIRTUAL_HOST_TAG_NAME, WEVU_SLOT_NAMES_ATTR, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ATTR, WEVU_SLOT_OWNER_ID_ATTR, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_PROPS_ATTR, WEVU_SLOT_SCOPE_ATTR, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REF_CLASS_PREFIX, resolveWebRuntimeGlobalTargetDependencies as resolveRequestGlobalsTargetDependencies } from "@weapp-core/constants";
19
+ import { APP_PRELUDE_CHUNK_MARKER, APP_PRELUDE_GUARD_KEY, APP_PRELUDE_REQUIRE_MARKER, REQUEST_GLOBAL_ACTUALS_KEY, REQUEST_GLOBAL_BUNDLE_HOST_REF, REQUEST_GLOBAL_BUNDLE_MARKER, REQUEST_GLOBAL_BUNDLE_MARKER as REQUEST_GLOBAL_BUNDLE_MARKER$1, REQUEST_GLOBAL_CHUNK_HOST_REF, REQUEST_GLOBAL_CHUNK_MODULE_REF, REQUEST_GLOBAL_EXPOSE_HELPER, REQUEST_GLOBAL_INSTALLER_HOST_REF, REQUEST_GLOBAL_INSTALLER_MARKER, REQUEST_GLOBAL_LAZY_CONSTRUCTOR_HELPER, REQUEST_GLOBAL_LAZY_FUNCTION_HELPER, REQUEST_GLOBAL_LOCAL_BINDINGS_MARKER, REQUEST_GLOBAL_LOCAL_BINDINGS_MARKER as REQUEST_GLOBAL_LOCAL_BINDINGS_MARKER$1, REQUEST_GLOBAL_MARK_PLACEHOLDER_HELPER, REQUEST_GLOBAL_PASSIVE_BINDINGS_MARKER, REQUEST_GLOBAL_PASSIVE_BINDINGS_MARKER as REQUEST_GLOBAL_PASSIVE_BINDINGS_MARKER$1, REQUEST_GLOBAL_PLACEHOLDER_KEY, REQUEST_GLOBAL_PRELUDE_GUARD_KEY, REQUEST_GLOBAL_PRELUDE_MARKER, REQUEST_GLOBAL_SYNTHETIC_EXPORT_NAME, REQUEST_GLOBAL_USABLE_CONSTRUCTOR_HELPER, WEAPP_I18N_JS_FILE, WEAPP_I18N_LOCALE_DATA_KEY, WEAPP_I18N_PUBLIC_MODULE_ID, WEAPP_I18N_RUNTIME_MARKER, WEAPP_I18N_VIRTUAL_MODULE_ID, WEAPP_I18N_WXS_FILE, WEAPP_REACT_EVENT_METHOD_NAME, WEAPP_VITE_CLASSIC_GENERATION_MARKER, WEAPP_VITE_CLASSIC_SETTLEMENT_KEY, WEAPP_VITE_EXTERNAL_OUTPUT_DIRECTORY, WEAPP_VITE_IMPORT_META_ENV_KEY, WEAPP_VITE_INJECTED_API_IDENTIFIER, WEAPP_VITE_LOGICAL_ENTRY_RESOLVED_PREFIX, WEAPP_VITE_OUTPUT_PUBLICATION_PLUGIN_NAME, WEAPP_VITE_RUNTIME_CONTRACT_VERSION, WEAPP_VITE_RUNTIME_REACTIVITY_VIRTUAL_ID, WEAPP_VITE_RUNTIME_TEMPLATE_VIRTUAL_ID, WEAPP_VITE_RUNTIME_VIRTUAL_ID, WEAPP_VITE_RUNTIME_VIRTUAL_IDS, WEAPP_VITE_SIDECAR_RESOLVED_PREFIX, WEAPP_VITE_STATEFUL_HMR_BRIDGE_KEY, WEAPP_VITE_STATEFUL_HMR_CLIENT_KEY, WEAPP_VITE_STATEFUL_HMR_CONTROL_FILE, WEAPP_VITE_STATEFUL_HMR_CONTROL_KEY, WEAPP_VITE_STATEFUL_HMR_GLOBAL_STYLE_BASENAME, WEAPP_VITE_STATEFUL_HMR_PRELOAD_FILE, WEAPP_VITE_STATEFUL_HMR_REGISTRATION_CONTRACT_VERSION, WEAPP_VITE_STATEFUL_HMR_RUNTIME_CONTRACT_METHOD, WEAPP_VITE_STATEFUL_HMR_UNSUPPORTED_REGISTRATION_CODE, WEAPP_VITE_STATEFUL_HMR_UPDATE_FILE, WEAPP_VITE_WASM_INIT_QUERY_MARKER, WEAPP_VITE_WEB_AUTO_ROUTES_RESOLVED_MODULE_ID, WEAPP_VITE_WEB_ENTRY_RESOLVED_MODULE_ID, WEB_RUNTIME_GLOBAL_TARGETS, WEB_RUNTIME_STREAM_TARGETS, WEVU_APP_SHELL_COMPONENT_BASE, WEVU_APP_SHELL_TAG_NAME, WEVU_APP_SHELL_VIRTUAL_PREFIX, WEVU_AUTO_ROUTES_MODULE_ID, WEVU_AUTO_ROUTES_RESOLVED_MODULE_ID, WEVU_AUTO_ROUTES_VIRTUAL_MODULE_ID, WEVU_CLASS_STYLE_RUNTIME_MODULE, WEVU_DEFINE_PAGE_META_MACRO, WEVU_INTERNAL_KEY_IDENTIFIER, WEVU_LAYOUT_BIND_PREFIX, WEVU_NATIVE_DECLARATION_METHOD, WEVU_PAGE_LAYOUT_CURRENT_NAME_IDENTIFIER, WEVU_PAGE_LAYOUT_CURRENT_PROPS_IDENTIFIER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NEXT_NAME_IDENTIFIER, WEVU_PAGE_LAYOUT_NEXT_PROPS_IDENTIFIER, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_ROUTER_MODULE_ID, WEVU_SLOT_FALLBACK_VIRTUAL_HOST_BASE, WEVU_SLOT_FALLBACK_VIRTUAL_HOST_GLOBAL_PATH, WEVU_SLOT_FALLBACK_VIRTUAL_HOST_TAG_NAME, WEVU_SLOT_NAMES_ATTR, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ATTR, WEVU_SLOT_OWNER_ID_ATTR, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_PROPS_ATTR, WEVU_SLOT_SCOPE_ATTR, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REF_CLASS_PREFIX, WX_WEBASSEMBLY_MIN_BASE_LIB_VERSION, WX_WEBASSEMBLY_WORKER_MIN_BASE_LIB_VERSION, resolveWebRuntimeGlobalTargetDependencies as resolveRequestGlobalsTargetDependencies } from "@weapp-core/constants";
20
20
  import path from "pathe";
21
21
  import { AsyncLocalStorage } from "node:async_hooks";
22
22
  import { createDebug } from "obug";
@@ -24815,7 +24815,7 @@ async function loadAppEntry(ctx, scanState) {
24815
24815
  const { path: appEntryPath } = appEntry;
24816
24816
  let configFromVue;
24817
24817
  if (!appConfigFile && vueAppPath) {
24818
- const { extractConfigFromVue } = await import("./file-BqOEcjk8.mjs");
24818
+ const { extractConfigFromVue } = await import("./file-BHca0tSX.mjs");
24819
24819
  configFromVue = await extractConfigFromVue(vueAppPath, { compilerContext: ctx });
24820
24820
  if (configFromVue) appConfigFile = vueAppPath;
24821
24821
  }
@@ -44459,7 +44459,7 @@ function createLibDtsPlugin(ctx) {
44459
44459
  if (root) addNormalizedWatchFile(this, root);
44460
44460
  }
44461
44461
  if (ctx.configService.isDev || ctx.configService.weappLibConfig?.dts?.enabled === false) return;
44462
- const { prepareLibDtsAssets } = await import("./assets-XYjughbv.mjs");
44462
+ const { prepareLibDtsAssets } = await import("./assets-BTDeDWL8.mjs");
44463
44463
  for (const asset of await prepareLibDtsAssets(ctx.configService, (file) => this.addWatchFile(file))) this.emitFile(asset);
44464
44464
  }
44465
44465
  }
@@ -49376,6 +49376,161 @@ function vuePlugin(ctx, options) {
49376
49376
  ];
49377
49377
  }
49378
49378
  const vue = vuePlugin;
49379
+ // src/plugins/wasm.ts
49380
+ function splitId(id) {
49381
+ const index = id.indexOf("?");
49382
+ return index < 0 ? {
49383
+ file: id,
49384
+ query: ""
49385
+ } : {
49386
+ file: id.slice(0, index),
49387
+ query: id.slice(index + 1)
49388
+ };
49389
+ }
49390
+ function hasFlag(query, name) {
49391
+ return query.has(name) && query.get(name) !== "false";
49392
+ }
49393
+ function normalizeRuntimePath(options, fileName) {
49394
+ const { scope, packageRoot, workerRoot } = options;
49395
+ const posixFileName = fileName.replaceAll("\\", "/");
49396
+ if (posixFileName.startsWith("/") || posixFileName.split("/").some((segment) => segment === ".." || segment === "." || segment === "")) throw new Error(`[weapp-vite] Invalid emitted WASM asset path: ${fileName}`);
49397
+ if (scope === "independent") {
49398
+ const root = packageRoot?.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
49399
+ if (!root) throw new Error("[weapp-vite] Independent WASM initialization requires a subpackage root.");
49400
+ if (posixFileName !== root && !posixFileName.startsWith(`${root}/`)) throw new Error(`[weapp-vite] Independent WASM asset escaped its package root: ${posixFileName}`);
49401
+ }
49402
+ if (scope === "app") for (const reservedRoot of options.reservedRoots ?? []) {
49403
+ const root = reservedRoot.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
49404
+ if (root && (posixFileName === root || posixFileName.startsWith(`${root}/`))) throw new Error(`[weapp-vite] Main package WASM assets cannot be emitted inside package or Worker root: ${posixFileName}`);
49405
+ }
49406
+ const normalizedWorkerRoot = workerRoot?.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
49407
+ if (scope === "worker" && normalizedWorkerRoot && (posixFileName === normalizedWorkerRoot || posixFileName.startsWith(`${normalizedWorkerRoot}/`))) throw new Error(`[weapp-vite] Worker WASM assets must be published outside the Worker directory: ${posixFileName}`);
49408
+ return `/${posixFileName}`;
49409
+ }
49410
+ function createInitializerSource(assetId, scope) {
49411
+ const minVersion = scope === "worker" ? WX_WEBASSEMBLY_WORKER_MIN_BASE_LIB_VERSION : WX_WEBASSEMBLY_MIN_BASE_LIB_VERSION;
49412
+ return `import wasmPath from ${JSON.stringify(assetId)};\n\nexport default async function init(imports = {}) {\n const host = typeof WXWebAssembly === 'undefined' ? undefined : WXWebAssembly;\n if (!host || typeof host.instantiate !== 'function') {\n throw new Error('[weapp-vite] WXWebAssembly.instantiate is unavailable; this entry requires WeChat base library ${minVersion} or later.');\n }\n const result = await host.instantiate(wasmPath, imports);\n if (result && result.instance && result.instance.exports) return result.instance;\n if (result && result.exports) return result;\n throw new Error('[weapp-vite] WXWebAssembly.instantiate returned an unsupported result.');\n}\n`;
49413
+ }
49414
+ function stripInternalMarker(filename) {
49415
+ const index = filename.lastIndexOf("?");
49416
+ if (index < 0) return;
49417
+ const query = new URLSearchParams(filename.slice(index + 1));
49418
+ if (!query.has(WEAPP_VITE_WASM_INIT_QUERY_MARKER)) return;
49419
+ query.delete(WEAPP_VITE_WASM_INIT_QUERY_MARKER);
49420
+ const remaining = query.toString();
49421
+ return `${filename.slice(0, index)}${remaining ? `?${remaining}` : ""}`;
49422
+ }
49423
+ function isWasmAsset(assetInfo) {
49424
+ return [
49425
+ assetInfo.name,
49426
+ ...assetInfo.names ?? [],
49427
+ ...assetInfo.originalFileNames ?? []
49428
+ ].some((name) => typeof name === "string" && name.split(/[?#]/, 1)[0].endsWith(".wasm"));
49429
+ }
49430
+ function resolveAssetFileName(assetFileNames, assetInfo) {
49431
+ if (typeof assetFileNames === "function") return assetFileNames(assetInfo);
49432
+ return assetFileNames ?? "assets/[name]-[hash][extname]";
49433
+ }
49434
+ function constrainAssetFileName(options, fileName) {
49435
+ const normalized = fileName.replaceAll("\\", "/");
49436
+ if (normalized.startsWith("/") || normalized.split("/").some((segment) => segment === "." || segment === ".." || segment === "")) throw new Error(`[weapp-vite] Invalid WASM asset file name: ${fileName}`);
49437
+ if (options.scope === "independent") {
49438
+ const root = options.packageRoot?.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
49439
+ if (!root) throw new Error("[weapp-vite] Independent WASM initialization requires a subpackage root.");
49440
+ if (normalized === root || normalized.startsWith(`${root}/`)) return normalized;
49441
+ return `${root}/${normalized}`;
49442
+ }
49443
+ if (options.scope === "app") for (const reservedRoot of options.reservedRoots ?? []) {
49444
+ const root = reservedRoot.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
49445
+ if (root && (normalized === root || normalized.startsWith(`${root}/`))) throw new Error(`[weapp-vite] Main package WASM assets cannot be emitted inside package or Worker root: ${normalized}`);
49446
+ }
49447
+ if (options.scope === "worker") {
49448
+ const workerRoot = options.workerRoot?.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
49449
+ if (workerRoot && (normalized === workerRoot || normalized.startsWith(`${workerRoot}/`))) return `assets/${normalized.slice(workerRoot.length).replace(/^\/+/, "")}`;
49450
+ }
49451
+ return normalized;
49452
+ }
49453
+ function createWasmPlugin(ctx, options) {
49454
+ const configFunctions = /* @__PURE__ */ new WeakMap();
49455
+ let installedRenderBuiltUrl;
49456
+ let command;
49457
+ let bundledDev = false;
49458
+ let publicDir;
49459
+ return {
49460
+ name: "weapp-vite:wasm-init",
49461
+ enforce: "pre",
49462
+ config: {
49463
+ order: "post",
49464
+ handler(config, env) {
49465
+ if (ctx.configService.platform !== "weapp" || env.command !== "build") return;
49466
+ const previous = config.experimental?.renderBuiltUrl;
49467
+ const inherited = previous ? configFunctions.get(previous)?.original ?? previous : void 0;
49468
+ const scope = options.scope;
49469
+ const renderBuiltUrl = (filename, context) => {
49470
+ const assetPath = stripInternalMarker(filename);
49471
+ if (context.hostType === "js" && context.type === "asset" && assetPath !== void 0) return { runtime: JSON.stringify(normalizeRuntimePath(options, assetPath)) };
49472
+ return inherited?.(filename, context);
49473
+ };
49474
+ configFunctions.set(renderBuiltUrl, {
49475
+ original: inherited,
49476
+ scope
49477
+ });
49478
+ installedRenderBuiltUrl = renderBuiltUrl;
49479
+ return { experimental: {
49480
+ ...config.experimental,
49481
+ renderBuiltUrl
49482
+ } };
49483
+ }
49484
+ },
49485
+ async load(id) {
49486
+ const { file, query: rawQuery } = splitId(id);
49487
+ if (!file.endsWith(".wasm")) return null;
49488
+ const query = new URLSearchParams(rawQuery);
49489
+ if (!hasFlag(query, "init")) return null;
49490
+ if (ctx.configService.platform !== "weapp") return null;
49491
+ if (hasFlag(query, "raw") || hasFlag(query, "url") || hasFlag(query, "inline")) this.error("The `?init` WASM entry cannot be combined with `?raw`, `?url`, or `?inline`.");
49492
+ if (publicDir) {
49493
+ const relative = path$1.relative(publicDir, path$1.resolve(file));
49494
+ if (relative === "" || !relative.startsWith(`..${path$1.sep}`) && relative !== ".." && !path$1.isAbsolute(relative)) this.error("WASM `?init` is not supported for files in `publicDir`; move the file into the source tree or an npm package.");
49495
+ }
49496
+ if (ctx.currentBuildTarget === "plugin" || ctx.configService.weappLibConfig?.enabled) this.error("WASM `?init` is not supported in mini-program plugin projects or lib mode.");
49497
+ if (command === "serve" && bundledDev) this.error("WASM `?init` is not supported with stateful bundledDev; set `weapp.hmr.runtime: \"classic\"`.");
49498
+ const resolved = await this.resolve(`${file}?url&no-inline&${WEAPP_VITE_WASM_INIT_QUERY_MARKER}`, id, { skipSelf: true });
49499
+ if (!resolved) this.error(`Unable to resolve the WASM asset for ${id}.`);
49500
+ return createInitializerSource(resolved.id, options.scope);
49501
+ },
49502
+ configResolved(config) {
49503
+ command = config.command;
49504
+ bundledDev = config.experimental?.bundledDev === true;
49505
+ publicDir = config.publicDir ? path$1.resolve(config.publicDir) : void 0;
49506
+ if (installedRenderBuiltUrl && config.experimental?.renderBuiltUrl !== installedRenderBuiltUrl) throw new Error("[weapp-vite] The WASM asset URL adapter was replaced after plugin configuration; preserve the weapp-vite renderBuiltUrl callback.");
49507
+ },
49508
+ outputOptions(outputOptions) {
49509
+ if (ctx.configService.platform !== "weapp" || command !== "build") return null;
49510
+ const original = outputOptions.assetFileNames;
49511
+ outputOptions.assetFileNames = function(assetInfo) {
49512
+ const fileName = typeof original === "function" ? original.call(this, assetInfo) : resolveAssetFileName(original, assetInfo);
49513
+ return isWasmAsset(assetInfo) ? constrainAssetFileName(options, fileName) : fileName;
49514
+ };
49515
+ return outputOptions;
49516
+ }
49517
+ };
49518
+ }
49519
+ function resolveWasmScope(_ctx, subPackageRoot, worker = false) {
49520
+ if (worker) return {
49521
+ scope: "worker",
49522
+ workerRoot: _ctx.scanService.workersDir
49523
+ };
49524
+ if (subPackageRoot) return {
49525
+ scope: "independent",
49526
+ packageRoot: path$1.posix.normalize(subPackageRoot.replaceAll("\\", "/")).replace(/^\/+|\/+$/g, "")
49527
+ };
49528
+ return {
49529
+ scope: "app",
49530
+ workerRoot: _ctx.scanService?.workersDir,
49531
+ reservedRoots: [..._ctx.scanService?.subPackageMap?.keys() ?? []]
49532
+ };
49533
+ }
49379
49534
  // src/plugins/workerOutput.ts
49380
49535
  /** 主应用和 worker 共用发布事务;子目标自身不持有 watcher 或输出目录。 */
49381
49536
  function createWorkerOutputPlugin(ctx) {
@@ -49731,6 +49886,7 @@ function vitePluginWeapp(ctx, subPackageMeta) {
49731
49886
  createPackageImportsQueryPlugin(),
49732
49887
  createSelectedRuntimeProviderPlugin(runtimeProvider, ctx.configService.isDev)
49733
49888
  ],
49889
+ [createWasmPlugin(ctx, resolveWasmScope(ctx, subPackageMeta?.subPackage.independent ? subPackageMeta.subPackage.root : void 0))],
49734
49890
  preflight(ctx),
49735
49891
  uniAppCompatibility(ctx),
49736
49892
  createReactPlugin(ctx),
@@ -49769,7 +49925,11 @@ function vitePluginWeapp(ctx, subPackageMeta) {
49769
49925
  }
49770
49926
  function vitePluginWeappWorkers(ctx) {
49771
49927
  return markInternalPlugins(applyInspect(ctx, attachRuntimePlugins(ctx, flatten([
49772
- [createContextPlugin(ctx), createPackageImportsQueryPlugin()],
49928
+ [
49929
+ createContextPlugin(ctx),
49930
+ createPackageImportsQueryPlugin(),
49931
+ createWasmPlugin(ctx, resolveWasmScope(ctx, void 0, true))
49932
+ ],
49773
49933
  preflight(ctx),
49774
49934
  workers(ctx)
49775
49935
  ]))));
@@ -1,5 +1,5 @@
1
- import { n as resetCompilerContext, r as setActiveCompilerContextKey, t as getCompilerContext } from "./getInstance-DdTu2fTN.mjs";
2
- import { j as initializeCompilerContext } from "./createCompilerContextInstance-mWrCvGmu.mjs";
1
+ import { n as resetCompilerContext, r as setActiveCompilerContextKey, t as getCompilerContext } from "./getInstance-BVPJxJPq.mjs";
2
+ import { j as initializeCompilerContext } from "./createCompilerContextInstance-3_LDm06J.mjs";
3
3
  // src/createContext.ts
4
4
  /** 保留历史活动上下文适配;新宿主通过 CompilerSession 创建独立会话。 */
5
5
  async function createCompilerContext(options) {
@@ -1,4 +1,4 @@
1
- import { t as AnalyzeDashboardDevframeController } from "../index-DIZJRrvK.mjs";
1
+ import { t as AnalyzeDashboardDevframeController } from "../index-BIjQ_ZIs.mjs";
2
2
  import { Plugin } from "vite";
3
3
  export interface AnalyzeDashboardPluginOptions {
4
4
  base?: string;
@@ -1,3 +1,3 @@
1
1
  import { a as AnalyzeSubpackagesResult } from "./budget-DTPngJU0.mjs";
2
- import { A as DashboardInvestigationReceiptInput, B as DashboardRuntimeEventInput, C as DashboardClaimInvestigationRequest, D as DashboardInvestigationClaim, E as DashboardInvestigation, F as DashboardObjectMeasurements, G as DashboardFileReadRequest, H as DashboardRuntimeEventsPage, I as DashboardProposeInvestigationRequest, J as DashboardArtifactFiles, K as DashboardContentRoots, L as DashboardReportIdentity, M as DashboardInvestigationStatus, N as DashboardInvestigationTarget, O as DashboardInvestigationProposal, P as DashboardInvestigationsState, R as DashboardVerifyInvestigationRequest, S as DashboardAuthorizeInvestigationRequest, T as DashboardCreateInvestigationRequest, U as DashboardRuntimeEventsQueryRequest, V as DashboardRuntimeEventProfile, W as DashboardFileContent, Y as createDashboardArtifactSnapshot, _ as DashboardAnalyzePage, a as createAnalyzeDashboardDevframe, b as DashboardAnalyzePayloadsDescriptor, c as DashboardAnalyzeSummary, d as DashboardComparisonPage, f as DashboardComparisonQuery, g as DashboardPackagesQuery, h as DashboardPackagesPage, i as DashboardDevframeState, j as DashboardInvestigationRequest, k as DashboardInvestigationProposalInput, l as DashboardArtifactsPage, m as DashboardModulesQuery, n as CreateAnalyzeDashboardDevframeOptions, o as resolveDashboardClientAssets, p as DashboardModulesPage, q as DashboardArtifactFile, r as DashboardAnalyzeSnapshot, s as DashboardAnalyzeQuery, t as AnalyzeDashboardDevframeController, u as DashboardArtifactsQuery, v as DashboardAnalyzePageRequest, w as DashboardCompleteInvestigationRequest, x as DashboardAgentInvestigationRequest, y as DashboardAnalyzePayloadDescriptor, z as DashboardRuntimeEvent } from "./index-DIZJRrvK.mjs";
2
+ import { A as DashboardInvestigationReceiptInput, B as DashboardRuntimeEventInput, C as DashboardClaimInvestigationRequest, D as DashboardInvestigationClaim, E as DashboardInvestigation, F as DashboardObjectMeasurements, G as DashboardFileReadRequest, H as DashboardRuntimeEventsPage, I as DashboardProposeInvestigationRequest, J as DashboardArtifactFiles, K as DashboardContentRoots, L as DashboardReportIdentity, M as DashboardInvestigationStatus, N as DashboardInvestigationTarget, O as DashboardInvestigationProposal, P as DashboardInvestigationsState, R as DashboardVerifyInvestigationRequest, S as DashboardAuthorizeInvestigationRequest, T as DashboardCreateInvestigationRequest, U as DashboardRuntimeEventsQueryRequest, V as DashboardRuntimeEventProfile, W as DashboardFileContent, Y as createDashboardArtifactSnapshot, _ as DashboardAnalyzePage, a as createAnalyzeDashboardDevframe, b as DashboardAnalyzePayloadsDescriptor, c as DashboardAnalyzeSummary, d as DashboardComparisonPage, f as DashboardComparisonQuery, g as DashboardPackagesQuery, h as DashboardPackagesPage, i as DashboardDevframeState, j as DashboardInvestigationRequest, k as DashboardInvestigationProposalInput, l as DashboardArtifactsPage, m as DashboardModulesQuery, n as CreateAnalyzeDashboardDevframeOptions, o as resolveDashboardClientAssets, p as DashboardModulesPage, q as DashboardArtifactFile, r as DashboardAnalyzeSnapshot, s as DashboardAnalyzeQuery, t as AnalyzeDashboardDevframeController, u as DashboardArtifactsQuery, v as DashboardAnalyzePageRequest, w as DashboardCompleteInvestigationRequest, x as DashboardAgentInvestigationRequest, y as DashboardAnalyzePayloadDescriptor, z as DashboardRuntimeEvent } from "./index-BIjQ_ZIs.mjs";
3
3
  export { AnalyzeDashboardDevframeController, type AnalyzeSubpackagesResult, CreateAnalyzeDashboardDevframeOptions, type DashboardAgentInvestigationRequest, type DashboardAnalyzePage, type DashboardAnalyzePageRequest, type DashboardAnalyzePayloadDescriptor, type DashboardAnalyzePayloadsDescriptor, type DashboardAnalyzeQuery, DashboardAnalyzeSnapshot, type DashboardAnalyzeSummary, type DashboardArtifactFile, type DashboardArtifactFiles, type DashboardArtifactsPage, type DashboardArtifactsQuery, type DashboardAuthorizeInvestigationRequest, type DashboardClaimInvestigationRequest, type DashboardComparisonPage, type DashboardComparisonQuery, type DashboardCompleteInvestigationRequest, type DashboardContentRoots, type DashboardCreateInvestigationRequest, DashboardDevframeState, type DashboardFileContent, type DashboardFileReadRequest, type DashboardInvestigation, type DashboardInvestigationClaim, type DashboardInvestigationProposal, type DashboardInvestigationProposalInput, type DashboardInvestigationReceiptInput, type DashboardInvestigationRequest, type DashboardInvestigationStatus, type DashboardInvestigationTarget, type DashboardInvestigationsState, type DashboardModulesPage, type DashboardModulesQuery, type DashboardObjectMeasurements, type DashboardPackagesPage, type DashboardPackagesQuery, type DashboardProposeInvestigationRequest, type DashboardReportIdentity, type DashboardRuntimeEvent, type DashboardRuntimeEventInput, type DashboardRuntimeEventProfile, type DashboardRuntimeEventsPage, type DashboardRuntimeEventsQueryRequest, type DashboardVerifyInvestigationRequest, createAnalyzeDashboardDevframe, createDashboardArtifactSnapshot, resolveDashboardClientAssets };
@@ -22,6 +22,12 @@ export default defineConfig({
22
22
 
23
23
  插件没有第二套配置参数。配置文件由宿主加载,插件不会自动发现或合并另一份 `weapp-vite.config.*`。迁移时把配置收敛到一个入口;需要拆文件时,在该入口显式导入。不要重复调用 `weapp()`,也不要把同一插件实例共享给两个活动宿主。
24
24
 
25
+ ## 微信 WASM `?init`
26
+
27
+ 微信小程序项目可以在源码或 npm 包中使用 Vite 标准入口 `import init from './encoder.wasm?init'`。微信构建会输出非内联 WASM 文件,并由异步初始化器调用 `WXWebAssembly.instantiate(path, imports)`,返回可访问 `exports` 的实例。主包/普通分包、独立分包和 Worker 使用各自可访问的包内路径;Web 构建继续使用 Vite 原生行为。
28
+
29
+ 该兼容入口不支持 `publicDir`、小程序插件项目、lib mode、`?raw`/`?url`/`?inline` 组合或 stateful `bundledDev`;开发模式请使用 `weapp.hmr.runtime: 'classic'`。它不会生成 wasm-bindgen/Emscripten glue,也不扩展微信运行时对 WASM 指令、Global、SIMD 或导入能力的支持。
30
+
25
31
  ```sh
26
32
  vite build
27
33
  vite dev
@@ -1,6 +1,6 @@
1
1
  import { n as resolveAnalyzeBudgets } from "./metadata-HlDKtlsu.mjs";
2
2
  import { t as terminateStaleSassEmbeddedProcess } from "./processCleanup-DzB64WI8.mjs";
3
- import { t as createCompilerContext } from "./createContext-7ucDn0J6.mjs";
3
+ import { t as createCompilerContext } from "./createContext-Bt5Xf3qS.mjs";
4
4
  import { r as readDoctorFiles } from "./files-Cy9jURJu.mjs";
5
5
  import process from "node:process";
6
6
  import path from "node:path";
package/dist/doctor.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { l as getProjectPlatformOptions, m as resolveMiniPlatform, o as getPlatformOutputExtensions } from "./platform-BiMpsZIb.mjs";
2
- import { t as classifyPackage } from "./classifier-Cv1lKsWb.mjs";
2
+ import { t as classifyPackage } from "./classifier-CLQfYmuy.mjs";
3
3
  import { t as createAnalyzeBudgetCheck } from "./budget-_Mu-4GKn.mjs";
4
4
  import { n as parseObject, r as readDoctorFiles, t as objectValue } from "./files-Cy9jURJu.mjs";
5
- import { E as outputTemplateParser, N as getScriptModuleImportAttrs, O as getTemplateImportAttrs, n as version } from "./package-BgHvezbr.mjs";
5
+ import { E as outputTemplateParser, N as getScriptModuleImportAttrs, O as getTemplateImportAttrs, n as version } from "./package-BnYH0riT.mjs";
6
6
  import process from "node:process";
7
7
  import { constants } from "node:fs";
8
8
  import { fileURLToPath } from "node:url";
@@ -0,0 +1 @@
1
+ export { t as extractConfigFromVue } from "./file-BSnzOG71.mjs";
@@ -55,7 +55,7 @@ function resolveAutoRoutesMacroImportPath() {
55
55
  }
56
56
  async function resolveAutoRoutesInlineSnapshot(context) {
57
57
  try {
58
- const compilerContext = context ?? (await import("./getInstance-C_0r-5oj.mjs")).getCompilerContext();
58
+ const compilerContext = context ?? (await import("./getInstance-KmwxLWE4.mjs")).getCompilerContext();
59
59
  const service = compilerContext.autoRoutesService;
60
60
  const reference = service?.getReference?.();
61
61
  if (!compilerContext.runtimeState.autoRoutes.loadingAppConfig) await service?.ensureFresh?.();
@@ -1,6 +1,6 @@
1
1
  import { f as resolveHmrProfileJsonPath } from "./devProvider-Ci2il72x.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
3
- import { a as resolveIdeProjectRoot, o as shouldUseAutomatorProjectWrapper } from "./openIde-D-3urjqT.mjs";
3
+ import { a as resolveIdeProjectRoot, o as shouldUseAutomatorProjectWrapper } from "./openIde-DR1jRwRZ.mjs";
4
4
  import { t as readHmrProfileLines } from "./reader-wzPH_W8A.mjs";
5
5
  import process from "node:process";
6
6
  import { fs } from "@weapp-core/shared/fs";
@@ -1,4 +1,4 @@
1
- import { t as createCompilerContextInstance } from "./createCompilerContextInstance-mWrCvGmu.mjs";
1
+ import { t as createCompilerContextInstance } from "./createCompilerContextInstance-3_LDm06J.mjs";
2
2
  // src/context/getInstance.ts
3
3
  const compilerContextMap = /* @__PURE__ */ new Map();
4
4
  const DEFAULT_KEY = "default";
@@ -0,0 +1 @@
1
+ export { t as getCompilerContext } from "./getInstance-BVPJxJPq.mjs";
@@ -1,11 +1,11 @@
1
1
  import { c as getDevServerCloseRecord, l as replaceDevServerClose, s as getDevShutdownScope } from "./lifecycle-Dt0rvANg.mjs";
2
- import { C as createDevViteServer, T as createGlassEaselAnalyzeResult, k as createSharedBuildConfig } from "./createCompilerContextInstance-mWrCvGmu.mjs";
2
+ import { C as createDevViteServer, T as createGlassEaselAnalyzeResult, k as createSharedBuildConfig } from "./createCompilerContextInstance-3_LDm06J.mjs";
3
3
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
4
4
  import { a as resolveDashboardInstallation, r as ANALYZE_DASHBOARD_PACKAGE_NAME } from "./artifacts-TrTX9_jj.mjs";
5
5
  import { t as loadDashboardTransportModule } from "./dashboardTransport-C9290QgS.mjs";
6
6
  import { n as isRuntimeCategory, t as createAnalyzeBudgetCheck } from "./budget-_Mu-4GKn.mjs";
7
7
  import { r as resolveAnalyzeHistoryMetadata, t as createAnalyzeMetadata } from "./metadata-HlDKtlsu.mjs";
8
- import { i as resolveModuleSourceType, n as normalizeModuleId, r as resolveAssetSource, t as classifyPackage } from "./classifier-Cv1lKsWb.mjs";
8
+ import { i as resolveModuleSourceType, n as normalizeModuleId, r as resolveAssetSource, t as classifyPackage } from "./classifier-CLQfYmuy.mjs";
9
9
  import process from "node:process";
10
10
  import path, { posix } from "pathe";
11
11
  import { readFileSync } from "node:fs";
@@ -403,8 +403,8 @@ declare const packagesQuerySchema: z.ZodObject<{
403
403
  exceeded: "exceeded";
404
404
  }>>;
405
405
  sortBy: z.ZodDefault<z.ZodEnum<{
406
- bytes: "bytes";
407
406
  name: "name";
407
+ bytes: "bytes";
408
408
  budgetRatio: "budgetRatio";
409
409
  }>>;
410
410
  order: z.ZodDefault<z.ZodEnum<{
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as defineConfig } from "./config-59ZWhCIf.mjs";
2
2
  import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-Cvon2mw5.mjs";
3
- import { t as createCompilerContext } from "./createContext-7ucDn0J6.mjs";
3
+ import { t as createCompilerContext } from "./createContext-Bt5Xf3qS.mjs";
4
4
  import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost-vn8Vty1J.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-DDUCb7pP.mjs";
6
- import { a as getSupportedWeappViteTargetDescriptors, i as getSupportedWeappVitePlatforms, o as isWebPlatform, r as WEB_PLATFORM_ALIASES, s as resolveWeappViteTarget } from "./createCompilerContextInstance-mWrCvGmu.mjs";
6
+ import { a as getSupportedWeappViteTargetDescriptors, i as getSupportedWeappVitePlatforms, o as isWebPlatform, r as WEB_PLATFORM_ALIASES, s as resolveWeappViteTarget } from "./createCompilerContextInstance-3_LDm06J.mjs";
7
7
  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 };
@@ -1,5 +1,5 @@
1
1
  import { o as stripLeadingSlashes, r as normalizeRelativePath } from "./path-E1OjBJAl.mjs";
2
- import { c as findJsEntry, d as findVueEntry } from "./file-CcBsrjHN.mjs";
2
+ import { c as findJsEntry, d as findVueEntry } from "./file-BSnzOG71.mjs";
3
3
  import path from "pathe";
4
4
  import { isObject, removeExtensionDeep } from "@weapp-core/shared";
5
5
  import { fs } from "@weapp-core/shared/fs";
@@ -0,0 +1 @@
1
+ export { t as loadConfig } from "./loadConfig-Cz0YvFKX.mjs";
@@ -1,4 +1,4 @@
1
- import { A as createCjsConfigLoadError, C as loadViteConfigFile, t as resolveWeappConfigFile } from "./utils-BIBT4ml9.mjs";
1
+ import { A as createCjsConfigLoadError, C as loadViteConfigFile, t as resolveWeappConfigFile } from "./utils-C6mLS1fl.mjs";
2
2
  import process from "node:process";
3
3
  import path from "pathe";
4
4
  import { defu } from "@weapp-core/shared";
@@ -1,4 +1,4 @@
1
- import { s as getProjectConfigFileName } from "./utils-BIBT4ml9.mjs";
1
+ import { s as getProjectConfigFileName } from "./utils-C6mLS1fl.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
3
3
  import process from "node:process";
4
4
  import { resolveCommand } from "package-manager-detector/commands";
@@ -77,7 +77,7 @@ function registerAcceptCommand(cli) {
77
77
  // src/cli/commands/mcp/index.ts
78
78
  function registerMcpCommand(cli) {
79
79
  cli.command("mcp [...args]", "start weapp-vite MCP server or manage MCP client onboarding").option("--transport <type>", "[string] stdio | streamable-http | command | http", { default: "stdio" }).option("--host <host>", "[string] streamable-http host").option("--port <port>", "[number] streamable-http port").option("--endpoint <path>", "[string] streamable-http endpoint path").option("--rest-endpoint <path>", "[string] streamable-http REST runtime endpoint path").option("--no-rest", "[boolean] disable streamable-http REST runtime endpoints").option("--unref", "[boolean] unref HTTP server to not block process exit").option("--url <url>", "[string] explicit HTTP MCP url").option("--workspace-root <path>", "[string] workspace root path, defaults to cwd").option("-y, --yes", "[boolean] write config without prompt").action(async (args, options) => {
80
- const { runMcpCommand } = await import("./action-h0Hl877Y.mjs");
80
+ const { runMcpCommand } = await import("./action-BjqLMcEc.mjs");
81
81
  return runMcpCommand(args, options);
82
82
  });
83
83
  }
@@ -1,7 +1,7 @@
1
- import { t as createCompilerContext } from "./createContext-7ucDn0J6.mjs";
1
+ import { t as createCompilerContext } from "./createContext-Bt5Xf3qS.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
3
3
  import { n as getDefaultIdeProjectRoot, w as shouldPassPlatformArgToIdeOpen } from "./platform-BiMpsZIb.mjs";
4
- import { i as resolveRuntimeTargets, t as createInlineConfig } from "./runtime-B77K5W89.mjs";
4
+ import { i as resolveRuntimeTargets, t as createInlineConfig } from "./runtime-C3FhJHMZ.mjs";
5
5
  import process from "node:process";
6
6
  import path from "pathe";
7
7
  import fs from "node:fs";
@@ -1618,6 +1618,6 @@ function resolveSharedChunkName(options) {
1618
1618
  return "common";
1619
1619
  }
1620
1620
  // package.json
1621
- var version = "7.8.1";
1621
+ var version = "7.9.0";
1622
1622
  var engines = { "node": "^22.23.4 || ^24.22.1 || >=26.12.1" };
1623
1623
  export { isTemplateImportTag as A, shouldNormalizeScriptModuleAttributes as B, normalizeEncodedSourceMapLike as C, platformTemplateParser as D, outputTemplateParser as E, isScriptModuleImportAttr as F, isScriptModuleTagName as I, normalizeImportSjsAttributes as L, getNativeScriptModuleByTag as M, getScriptModuleImportAttrs as N, getTemplateImportAttrs as O, getScriptModuleTagNames as P, resolveScriptModuleTagByPlatform as R, labelSourceMapInput as S, configuredTemplateParser as T, replaceOutputChunkCode as _, DEFAULT_SHARED_CHUNK_STRATEGY as a, syncOutputChunkSourceMapAssets as b, applyRuntimeChunkLocalization as c, appendOutputChunkCode as d, applyAtomicMagicStringChunkRewrite as f, prependOutputChunkCode as g, editOutputChunkCode as h, applySharedChunkStrategy as i, shouldNormalizeTemplateImportSource as j, isTemplateImportAttr as k, assertModuleScopedToRoot as l, applyOutputChunkTransform as m, version as n, SHARED_CHUNK_VIRTUAL_PREFIX as o, applyMagicStringChunkRewrite as p, resolveSharedChunkName as r, SUB_PACKAGE_SHARED_DIR as s, engines as t, resolveSubPackagePrefix as u, replaceOutputChunkCodeRanges as v, resetTakeImportRegistry as w, composeSourceMaps as x, resolveOutputChunkTransformCode as y, resolveScriptModuleTagName as z };
@@ -1,4 +1,4 @@
1
- import { l as resolveBackendExecution } from "./createCompilerContextInstance-mWrCvGmu.mjs";
1
+ import { l as resolveBackendExecution } from "./createCompilerContextInstance-3_LDm06J.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
3
3
  import { defu } from "@weapp-core/shared";
4
4
  // src/cli/runtime.ts
@@ -1,7 +1,7 @@
1
1
  import { B as resolveNpmBuildCandidateDependenciesSync, H as resolveNpmDistDirName, W as resolveTargetDependencies, h as attachDevModuleGraphHost, z as resolveMainBuildDependencyPatterns } from "./devProvider-Ci2il72x.mjs";
2
- import { A as getHmrRuntimeCapabilityFallback, B as attachHmrRuntimeSession, D as createStatefulHmrHostPlugins, E as attachStatefulHmrHost, F as getInitialBuildInputObservation, I as prepareClassicIdeConfig, L as findSkylineRendererFiles, O as getStatefulHmrHost, P as syncManagedTsconfigFiles, R as resolveHmrRuntimeDecision, S as createOxcRuntimeSupport, V as createHmrRuntimeSession, _ as StatefulHmrSnapshotHandoff, b as getPackNpmRelationList, d as CompilerSession, f as buildStatefulHmrSnapshot, g as prepareStatefulClassicHandoff, h as captureWatchDependencies, k as createSharedBuildConfig, m as checkAppWorkersOptions, p as prepareStatefulHmrSnapshot, u as linkClassicSettlement, v as clearStatefulHmrSnapshot, w as compileIgnored, x as createPackageBuilder, y as offerStatefulHmrSnapshot, z as clearUniAppCompatibilitySession } from "./createCompilerContextInstance-mWrCvGmu.mjs";
2
+ import { A as getHmrRuntimeCapabilityFallback, B as attachHmrRuntimeSession, D as createStatefulHmrHostPlugins, E as attachStatefulHmrHost, F as getInitialBuildInputObservation, I as prepareClassicIdeConfig, L as findSkylineRendererFiles, O as getStatefulHmrHost, P as syncManagedTsconfigFiles, R as resolveHmrRuntimeDecision, S as createOxcRuntimeSupport, V as createHmrRuntimeSession, _ as StatefulHmrSnapshotHandoff, b as getPackNpmRelationList, d as CompilerSession, f as buildStatefulHmrSnapshot, g as prepareStatefulClassicHandoff, h as captureWatchDependencies, k as createSharedBuildConfig, m as checkAppWorkersOptions, p as prepareStatefulHmrSnapshot, u as linkClassicSettlement, v as clearStatefulHmrSnapshot, w as compileIgnored, x as createPackageBuilder, y as offerStatefulHmrSnapshot, z as clearUniAppCompatibilitySession } from "./createCompilerContextInstance-3_LDm06J.mjs";
3
3
  import { t as resolveRealpath } from "./realpathScope-DwlLaCk3.mjs";
4
- import { g as pruneOwnedAssetFiles } from "./utils-BIBT4ml9.mjs";
4
+ import { g as pruneOwnedAssetFiles } from "./utils-C6mLS1fl.mjs";
5
5
  import { n as loadHostRolldownBuild } from "./engine-Mnnm_ALP.mjs";
6
6
  import process from "node:process";
7
7
  import path from "pathe";
package/dist/test.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as parseSidecarModuleId, i as parseLogicalEntryId } from "./protocol-HiSJRrSO.mjs";
2
- import { d as CompilerSession, h as captureWatchDependencies } from "./createCompilerContextInstance-mWrCvGmu.mjs";
2
+ import { d as CompilerSession, h as captureWatchDependencies } from "./createCompilerContextInstance-3_LDm06J.mjs";
3
3
  import { M as createSidecarWatchOptions, O as createFileWatcher, j as deduplicateCleanupErrors } from "./devProvider-Ci2il72x.mjs";
4
4
  import { n as normalizePath, t as isPathInside } from "./path-E1OjBJAl.mjs";
5
5
  import process from "node:process";
@@ -1,5 +1,5 @@
1
1
  import { i as scriptExtensions, s as vueExtensions } from "./constants-BOe8mgqL.mjs";
2
- import { o as changeFileExtension } from "./file-CcBsrjHN.mjs";
2
+ import { o as changeFileExtension } from "./file-BSnzOG71.mjs";
3
3
  import { S as shouldNormalizeUsingComponents, l as getProjectPlatformOptions, p as normalizePlatformNpmImportPath, v as shouldFillComponentGenericsDefault, x as shouldNormalizePlatformNpmImportPath } from "./platform-BiMpsZIb.mjs";
4
4
  import { i as normalizeRoot, s as toPosixPath } from "./path-E1OjBJAl.mjs";
5
5
  import { n as loadHostRolldownBuild } from "./engine-Mnnm_ALP.mjs";
package/dist/vite.mjs CHANGED
@@ -115,6 +115,7 @@ const descriptors = [
115
115
  ].map((name) => [`weapp-runtime:${name}-service`]),
116
116
  ["weapp-vite:context", "pre"],
117
117
  ["weapp-vite:package-imports-query", "pre"],
118
+ ["weapp-vite:wasm-init", "pre"],
118
119
  ["weapp-vite:runtime-provider:native-miniprogram", "pre"],
119
120
  ["weapp-vite:runtime-provider:wevu-miniprogram", "pre"],
120
121
  ["weapp-vite:preflight", "pre"],
@@ -226,7 +227,7 @@ function weapp() {
226
227
  ...config,
227
228
  plugins: serveRequested ? userPlugins : []
228
229
  };
229
- const { WeappBuildSession } = await import("./session-hvNCOh6K.mjs");
230
+ const { WeappBuildSession } = await import("./session-DEB9vhVJ.mjs");
230
231
  session = new WeappBuildSession(takeHostConfigRestartData(inheritedLifecycle, hmrRuntimeSessionKey));
231
232
  try {
232
233
  const fallbackBeforePrepare = session.hmrRuntimeSession.fallback;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "7.8.1",
4
+ "version": "7.9.0",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -179,26 +179,26 @@
179
179
  "@volar/language-service": "^2.4.31",
180
180
  "@volar/typescript": "^2.4.31",
181
181
  "@vue/language-core": "^3.3.14",
182
- "@weapp-core/constants": "0.5.2",
182
+ "@weapp-core/constants": "0.5.3",
183
183
  "@weapp-core/init": "6.1.2",
184
184
  "@weapp-core/logger": "3.2.2",
185
185
  "@weapp-core/schematics": "6.3.2",
186
186
  "@weapp-core/shared": "3.4.2",
187
187
  "@weapp-tailwindcss/engine": "0.1.8",
188
188
  "@weapp-vite/acceptance": "0.2.2",
189
- "@weapp-vite/ast": "7.8.1",
189
+ "@weapp-vite/ast": "7.9.0",
190
190
  "@weapp-vite/eslint": "0.3.2",
191
191
  "@weapp-vite/hmr": "0.3.2",
192
- "@weapp-vite/i18n": "0.3.2",
193
- "@weapp-vite/language-service": "0.1.1",
194
- "@weapp-vite/mcp": "2.2.2",
192
+ "@weapp-vite/i18n": "0.3.3",
193
+ "@weapp-vite/language-service": "0.1.2",
194
+ "@weapp-vite/mcp": "2.2.3",
195
195
  "@weapp-vite/miniprogram-automator": "1.5.2",
196
196
  "@weapp-vite/tailwindcss": "1.1.2",
197
197
  "@weapp-vite/volar": "2.2.2",
198
- "@weapp-vite/web": "2.2.1",
198
+ "@weapp-vite/web": "2.2.2",
199
199
  "@weapp-vite/wxml": "0.0.0",
200
200
  "@wevu/api": "0.4.2",
201
- "@wevu/web-apis": "1.4.2",
201
+ "@wevu/web-apis": "1.4.3",
202
202
  "cac": "^7.1.0",
203
203
  "chokidar": "^6.0.0",
204
204
  "comment-json": "^5.0.0",
@@ -236,7 +236,7 @@
236
236
  "vue-tsc": "^3.3.14",
237
237
  "weapp-ide-cli": "6.4.2",
238
238
  "weapp-tailwindcss": "^5.7.2",
239
- "wevu": "7.8.1",
239
+ "wevu": "7.9.0",
240
240
  "zod": "^4.6.7"
241
241
  },
242
242
  "optionalDependencies": {
@@ -1 +0,0 @@
1
- export { t as extractConfigFromVue } from "./file-CcBsrjHN.mjs";
@@ -1 +0,0 @@
1
- export { t as getCompilerContext } from "./getInstance-DdTu2fTN.mjs";
@@ -1 +0,0 @@
1
- export { t as loadConfig } from "./loadConfig-CNyE0sXM.mjs";