weapp-vite 6.15.18 → 6.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import { a as ExternalMetadataFileCandidates, c as Resolver, d as ResolverObject, f as ResolverSupportFilesStrategy, i as CreateResolver, l as ResolverFn, n as VantResolver, o as Options, r as TDesignResolver, s as ResolvedValue, t as WeuiResolver, u as ResolverMeta } from "../index-6QUk3Zbc.mjs";
1
+ import { a as ExternalMetadataFileCandidates, c as Resolver, d as ResolverObject, f as ResolverSupportFilesStrategy, i as CreateResolver, l as ResolverFn, n as VantResolver, o as Options, r as TDesignResolver, s as ResolvedValue, t as WeuiResolver, u as ResolverMeta } from "../index-C1yQldy3.mjs";
2
2
  export { CreateResolver, ExternalMetadataFileCandidates, Options, ResolvedValue, Resolver, ResolverFn, ResolverMeta, ResolverObject, ResolverSupportFilesStrategy, TDesignResolver, VantResolver, WeuiResolver };
@@ -1,4 +1,4 @@
1
- import { d as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-Cwf_Dx0p.mjs";
1
+ import { d as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-C-05IQc1.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,7 +1,7 @@
1
- import { C as isPathInside, S as shouldPassPlatformArgToIdeOpen, _ as createCjsConfigLoadError, b as normalizeMiniPlatform, c as createSharedBuildConfig, f as resolveWeappConfigFile, g as parseCommentJson, h as loadViteConfigFile, l as SHARED_CHUNK_VIRTUAL_PREFIX, m as getProjectConfigFileName, n as syncProjectSupportFiles, p as checkRuntime, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, u as resolveHmrProfileJsonPath, v as DEFAULT_MP_PLATFORM, x as resolveMiniPlatform, y as getDefaultIdeProjectRoot } from "./createContext-Cwf_Dx0p.mjs";
1
+ import { C as isPathInside, S as shouldPassPlatformArgToIdeOpen, _ as createCjsConfigLoadError, b as normalizeMiniPlatform, c as createSharedBuildConfig, f as resolveWeappConfigFile, g as parseCommentJson, h as loadViteConfigFile, l as SHARED_CHUNK_VIRTUAL_PREFIX, m as getProjectConfigFileName, n as syncProjectSupportFiles, p as checkRuntime, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, u as resolveHmrProfileJsonPath, v as DEFAULT_MP_PLATFORM, x as resolveMiniPlatform, y as getDefaultIdeProjectRoot } from "./createContext-C-05IQc1.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-CgxdNjvb.mjs";
3
- import { h as VERSION } from "./file-C0a3v0yb.mjs";
4
- import { a as resolveWeappMcpConfig, o as startWeappViteMcpServer } from "./mcp-DRlj32v4.mjs";
3
+ import { h as VERSION } from "./file-BC_RNbAI.mjs";
4
+ import { a as resolveWeappMcpConfig, o as startWeappViteMcpServer } from "./mcp-BzcrPiku.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import path, { posix } from "pathe";
7
7
  import { defu } from "@weapp-core/shared";
@@ -2784,7 +2784,7 @@ function resolveRunnableHotkeyDefinition(input) {
2784
2784
  }
2785
2785
  //#endregion
2786
2786
  //#region package.json
2787
- var version = "6.15.18";
2787
+ var version = "6.16.1";
2788
2788
  //#endregion
2789
2789
  //#region src/cli/devHotkeys/format.ts
2790
2790
  const FULLWIDTH_ASCII_START = 65281;
@@ -1,4 +1,4 @@
1
- import { c as Resolver, s as ResolvedValue } from "./index-6QUk3Zbc.mjs";
1
+ import { c as Resolver, s as ResolvedValue } from "./index-C1yQldy3.mjs";
2
2
  import { t as AutoRoutes } from "./routes-DiEBrMtj.mjs";
3
3
  import { MpPlatform, OutputExtensions } from "@weapp-core/shared";
4
4
  import { WeappAstConfig } from "@weapp-vite/ast";
@@ -1404,6 +1404,7 @@ interface RuntimeState {
1404
1404
  emittedCount?: number;
1405
1405
  }>;
1406
1406
  profile: {
1407
+ eventId?: string;
1407
1408
  event?: ChangeEvent;
1408
1409
  file?: string;
1409
1410
  buildCoreMs?: number;
package/dist/config.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { Bn as resolveWeappViteHostMeta, Fn as WeappViteHostMeta, In as WeappViteRuntime, Ln as applyWeappViteHostMeta, Pn as WEAPP_VITE_HOST_NAME, Rn as createWeappViteHostMeta, _ as definePageJson, a as UserConfigFnNoEnvPlain, 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, nt as WeappViteConfig, 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 isWeappViteHost } from "./config-CIof1TIl.mjs";
1
+ import { Bn as resolveWeappViteHostMeta, Fn as WeappViteHostMeta, In as WeappViteRuntime, Ln as applyWeappViteHostMeta, Pn as WEAPP_VITE_HOST_NAME, Rn as createWeappViteHostMeta, _ as definePageJson, a as UserConfigFnNoEnvPlain, 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, nt as WeappViteConfig, 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 isWeappViteHost } from "./config-BKXx-hW-.mjs";
2
2
  export { App, Component, Page, Sitemap, Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, WeappViteConfig, WeappViteHostMeta, WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };
@@ -1,6 +1,6 @@
1
1
  import { n as applyWeappViteHostMeta } from "./pluginHost-SJdl15d3.mjs";
2
2
  import { n as configureLogger, r as logger_default } from "./logger-CgxdNjvb.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-C0a3v0yb.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-BC_RNbAI.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";
@@ -5409,8 +5409,8 @@ function createResolverHelpers(state) {
5409
5409
  if (typeof resolverAny.resolve === "function") {
5410
5410
  const resolved = resolverAny.resolve(candidate, baseName);
5411
5411
  if (resolved) return candidate === componentName ? resolved : {
5412
- name: componentName,
5413
- from: resolved.from
5412
+ ...resolved,
5413
+ name: componentName
5414
5414
  };
5415
5415
  }
5416
5416
  const from = resolverAny.components?.[candidate];
@@ -5421,8 +5421,8 @@ function createResolverHelpers(state) {
5421
5421
  if (typeof resolver === "function") {
5422
5422
  const resolved = resolver(candidate, baseName);
5423
5423
  if (resolved) return candidate === componentName ? resolved : {
5424
- name: componentName,
5425
- from: resolved.from
5424
+ ...resolved,
5425
+ name: componentName
5426
5426
  };
5427
5427
  }
5428
5428
  }
@@ -6935,6 +6935,7 @@ function isLayoutSourcePath(relativeSrc, layoutSourceRoot = DEFAULT_LAYOUT_SOURC
6935
6935
  //#endregion
6936
6936
  //#region src/utils/hmrProfile.ts
6937
6937
  const DEFAULT_HMR_PROFILE_JSONL_RELATIVE_PATH = ".weapp-vite/hmr-profile.jsonl";
6938
+ const HMR_PROFILE_JSON_ENV = "WEAPP_VITE_HMR_PROFILE_JSON";
6938
6939
  /**
6939
6940
  * @description 解析 HMR profile JSONL 输出路径。
6940
6941
  */
@@ -6948,6 +6949,24 @@ function resolveHmrProfileJsonPath(options) {
6948
6949
  if (fallbackToDefault) return path.join(options.cwd, DEFAULT_HMR_PROFILE_JSONL_RELATIVE_PATH);
6949
6950
  }
6950
6951
  /**
6952
+ * @description 从环境变量解析 HMR profile JSONL 输出选项。
6953
+ */
6954
+ function resolveHmrProfileJsonEnvOption(env = process.env) {
6955
+ const raw = env[HMR_PROFILE_JSON_ENV]?.trim();
6956
+ if (!raw) return;
6957
+ if (raw === "1" || raw.toLowerCase() === "true") return true;
6958
+ if (raw === "0" || raw.toLowerCase() === "false") return;
6959
+ return raw;
6960
+ }
6961
+ let hmrProfileEventSequence = 0;
6962
+ /**
6963
+ * @description 创建 HMR profile 事件 id,用于把 watcher 事件、JSONL 样本和外部审计场景稳定关联。
6964
+ */
6965
+ function createHmrProfileEventId() {
6966
+ hmrProfileEventSequence += 1;
6967
+ return `${Date.now().toString(36)}-${hmrProfileEventSequence.toString(36)}`;
6968
+ }
6969
+ /**
6951
6970
  * @description 为 HMR profile 累加阶段耗时。
6952
6971
  */
6953
6972
  function recordHmrProfileDuration(profile, key, durationMs) {
@@ -10373,9 +10392,10 @@ function createBuildService(ctx) {
10373
10392
  ctx.runtimeState.build.hmr.profile = {};
10374
10393
  }
10375
10394
  function resolveHmrProfileJsonPath$1() {
10395
+ const envOption = resolveHmrProfileJsonEnvOption();
10376
10396
  return resolveHmrProfileJsonPath({
10377
10397
  cwd: ctx.configService?.cwd ?? process.cwd(),
10378
- option: ctx.configService?.weappViteConfig.hmr?.profileJson
10398
+ option: envOption ?? ctx.configService?.weappViteConfig.hmr?.profileJson
10379
10399
  });
10380
10400
  }
10381
10401
  function finalizeHmrProfile(totalMs) {
@@ -10526,11 +10546,16 @@ function createBuildService(ctx) {
10526
10546
  }
10527
10547
  function createHmrProfileJsonSample(totalMs) {
10528
10548
  const profile = ctx.runtimeState.build.hmr.profile;
10549
+ const relativeFile = profile.file && ctx.configService ? ctx.configService.relativeCwd(profile.file) : void 0;
10550
+ const sourceRootFile = profile.file && ctx.configService ? ctx.configService.relativeAbsoluteSrcRoot(profile.file) : void 0;
10529
10551
  return {
10530
10552
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
10531
10553
  totalMs,
10554
+ eventId: profile.eventId,
10532
10555
  event: profile.event,
10533
10556
  file: profile.file,
10557
+ relativeFile,
10558
+ sourceRootFile,
10534
10559
  buildCoreMs: profile.buildCoreMs,
10535
10560
  transformMs: profile.transformMs,
10536
10561
  writeMs: profile.writeMs,
@@ -10594,6 +10619,11 @@ function createBuildService(ctx) {
10594
10619
  }
10595
10620
  return autoTouchResolved;
10596
10621
  }
10622
+ function isDevOutputFile(filePath) {
10623
+ const normalizedOutDir = normalizeFsResolvedId(configService.outDir);
10624
+ const normalizedFile = normalizeFsResolvedId(filePath);
10625
+ return normalizedFile === normalizedOutDir || normalizedFile.startsWith(`${normalizedOutDir}/`);
10626
+ }
10597
10627
  async function runDev(target) {
10598
10628
  if (process.env.NODE_ENV === void 0) process.env.NODE_ENV = "development";
10599
10629
  debug$2?.(`[${target}] dev build watcher start`);
@@ -10653,6 +10683,7 @@ function createBuildService(ctx) {
10653
10683
  if (devWatcherClosed) return;
10654
10684
  if (reason?.event || reason?.file) ctx.runtimeState.build.hmr.profile = {
10655
10685
  ...ctx.runtimeState.build.hmr.profile,
10686
+ eventId: createHmrProfileEventId(),
10656
10687
  event: reason.event,
10657
10688
  file: reason.file,
10658
10689
  watchToDirtyMs: performance.now() - startedAt
@@ -10727,6 +10758,7 @@ function createBuildService(ctx) {
10727
10758
  }));
10728
10759
  snapshotWatcher.on("all", (event, id) => {
10729
10760
  if (!id) return;
10761
+ if (isDevOutputFile(id)) return;
10730
10762
  if (!shouldHandleSnapshotSidecarFile(id)) return;
10731
10763
  const sidecarStartedAt = performance.now();
10732
10764
  runSnapshotBuild({
@@ -12093,10 +12125,10 @@ function normalizeChangedPath(id) {
12093
12125
  return pathWithoutQuery;
12094
12126
  }
12095
12127
  function getAutoImportCandidateKind(filePath) {
12128
+ if (AUTO_IMPORT_CONFIG_SUFFIXES.some((suffix) => filePath.endsWith(suffix))) return "config";
12096
12129
  if (AUTO_IMPORT_VUE_SUFFIXES.has(path.extname(filePath))) return "vue";
12097
12130
  if (AUTO_IMPORT_TEMPLATE_SUFFIXES.has(path.extname(filePath))) return "template";
12098
12131
  if (AUTO_IMPORT_JS_SUFFIXES.has(path.extname(filePath))) return "script";
12099
- if (AUTO_IMPORT_CONFIG_SUFFIXES.some((suffix) => filePath.endsWith(suffix))) return "config";
12100
12132
  }
12101
12133
  function getAutoImportCandidateBase(filePath, kind) {
12102
12134
  if (!kind) return;
@@ -14581,7 +14613,13 @@ function createEntryLoader(options) {
14581
14613
  const vueSource = await readVueSource();
14582
14614
  if (vueSource) {
14583
14615
  const layoutPlan = await resolvePageLayoutPlan(vueSource, vueEntryPath, configService);
14616
+ replaceLayoutDependencies(normalizedId, []);
14584
14617
  if (layoutPlan) {
14618
+ if (vueSource.includes("definePageMeta") || vueSource.includes("setPageLayout")) {
14619
+ const layoutDependencies = /* @__PURE__ */ new Set();
14620
+ for (const file of await expandResolvedPageLayoutFiles(layoutPlan.layouts)) layoutDependencies.add(normalizeFsResolvedId(file));
14621
+ replaceLayoutDependencies(normalizedId, layoutDependencies);
14622
+ }
14585
14623
  await addResolvedPageLayoutWatchFiles(this, layoutPlan.layouts);
14586
14624
  await registerResolvedPageLayoutEntries({
14587
14625
  layouts: layoutPlan.layouts,
@@ -14719,6 +14757,8 @@ function createTemplateScanner(wxmlService, debug) {
14719
14757
  }
14720
14758
  //#endregion
14721
14759
  //#region src/plugins/hooks/useLoadEntry/index.ts
14760
+ const MAX_DIRECT_SOURCE_SHARED_CHUNK_IMPORTERS = 128;
14761
+ const MAX_FALLBACK_DIRECT_SOURCE_SHARED_CHUNK_IMPORTERS = 8;
14722
14762
  function resolveUpstreamPendingReasonSummary(dirtyReasonSummary) {
14723
14763
  if (!dirtyReasonSummary?.length) return [];
14724
14764
  const pendingReasonSummary = [];
@@ -14730,6 +14770,12 @@ function resolveUpstreamPendingReasonSummary(dirtyReasonSummary) {
14730
14770
  if (hasAutoRoutesTopology) pendingReasonSummary.push("auto-routes-topology");
14731
14771
  return pendingReasonSummary;
14732
14772
  }
14773
+ function isDirectSourceSharedChunkForEntry(options) {
14774
+ if (options.sourceSharedChunks?.has(options.chunkId) !== true) return false;
14775
+ const normalizedEntryId = normalizeFsResolvedId(options.entryId);
14776
+ if ((options.entryLayoutDependencies?.get(normalizedEntryId))?.size) return true;
14777
+ return options.importerCount <= MAX_FALLBACK_DIRECT_SOURCE_SHARED_CHUNK_IMPORTERS;
14778
+ }
14733
14779
  function resolvePendingEntryIds(options) {
14734
14780
  const pending = new Set(options.dirtyEntrySet);
14735
14781
  const pendingReasonSummary = resolveUpstreamPendingReasonSummary(options.dirtyReasonSummary);
@@ -14764,7 +14810,6 @@ function resolvePendingEntryIds(options) {
14764
14810
  const importers = options.sharedChunkImporters.get(chunkId);
14765
14811
  if (!importers) continue;
14766
14812
  if (importers.size <= 1) continue;
14767
- const isSourceSharedChunk = options.sourceSharedChunks?.has(chunkId) === true;
14768
14813
  let hasDependencyDrivenImporter = false;
14769
14814
  let hasDirectDirtyImporter = false;
14770
14815
  for (const importer of importers) {
@@ -14773,10 +14818,16 @@ function resolvePendingEntryIds(options) {
14773
14818
  continue;
14774
14819
  }
14775
14820
  if (options.dirtyEntrySet.has(importer) && options.dirtyEntryReasons.get(importer) === "direct") {
14776
- if (isSourceSharedChunk) hasDirectDirtyImporter = true;
14821
+ if (isDirectSourceSharedChunkForEntry({
14822
+ chunkId,
14823
+ entryId: importer,
14824
+ sourceSharedChunks: options.sourceSharedChunks,
14825
+ entryLayoutDependencies: options.entryLayoutDependencies,
14826
+ importerCount: importers.size
14827
+ })) hasDirectDirtyImporter = true;
14777
14828
  }
14778
14829
  }
14779
- if (!hasDependencyDrivenImporter && !(hasDirectDirtyImporter && isSourceSharedChunk)) continue;
14830
+ if (!hasDependencyDrivenImporter && !(hasDirectDirtyImporter && importers.size <= MAX_DIRECT_SOURCE_SHARED_CHUNK_IMPORTERS)) continue;
14780
14831
  if (hasDependencyDrivenImporter && hasDirectDirtyImporter) expansionMode = "mixed";
14781
14832
  else if (hasDirectDirtyImporter) expansionMode = expansionMode && expansionMode !== "direct" ? "mixed" : "direct";
14782
14833
  else expansionMode = expansionMode && expansionMode !== "dependency" ? "mixed" : "dependency";
@@ -14891,6 +14942,7 @@ function useLoadEntry(ctx, options) {
14891
14942
  sharedChunkImporters: hmrSharedChunkImporters,
14892
14943
  sharedChunksByEntry: hmrSharedChunksByEntry,
14893
14944
  sourceSharedChunks: hmrSourceSharedChunks,
14945
+ entryLayoutDependencies,
14894
14946
  subPackageRoots: new Set(ctx.scanService?.subPackageMap?.keys?.() ?? []),
14895
14947
  relativeAbsoluteSrcRoot: ctx.configService.relativeAbsoluteSrcRoot.bind(ctx.configService)
14896
14948
  });
@@ -17638,6 +17690,7 @@ function ensureSidecarWatcher(ctx, rootDir) {
17638
17690
  if (sidecarWatcherMap.has(absRoot)) return;
17639
17691
  let isReady = false;
17640
17692
  const knownSidecarFiles = /* @__PURE__ */ new Set();
17693
+ const preReadyDeletedKnownFiles = /* @__PURE__ */ new Set();
17641
17694
  const renameTimers = /* @__PURE__ */ new Map();
17642
17695
  const RENAME_SETTLE_MS = 120;
17643
17696
  const handleSidecarChange = (event, filePath, ready) => {
@@ -17678,10 +17731,17 @@ function ensureSidecarWatcher(ctx, rootDir) {
17678
17731
  const forwardChange = (event, input, options) => {
17679
17732
  if (!input) return;
17680
17733
  const normalizedPath = path.normalize(input);
17681
- if (event === "create" || event === "update") knownSidecarFiles.add(normalizedPath);
17682
- else if (event === "delete") knownSidecarFiles.delete(normalizedPath);
17734
+ const wasKnown = knownSidecarFiles.has(normalizedPath);
17735
+ const isPreReadyAtomicRestore = event === "create" && preReadyDeletedKnownFiles.has(normalizedPath);
17736
+ if (event === "create" || event === "update") {
17737
+ knownSidecarFiles.add(normalizedPath);
17738
+ preReadyDeletedKnownFiles.delete(normalizedPath);
17739
+ } else if (event === "delete") {
17740
+ if (!isReady && wasKnown) preReadyDeletedKnownFiles.add(normalizedPath);
17741
+ knownSidecarFiles.delete(normalizedPath);
17742
+ }
17683
17743
  if (!options?.silent) logger_default.info(`[watch:${event}] ${ctx.configService.relativeCwd(normalizedPath)}`);
17684
- handleSidecarChange(event, normalizedPath, isReady);
17744
+ handleSidecarChange(event, normalizedPath, isReady || isPreReadyAtomicRestore);
17685
17745
  };
17686
17746
  watcher.on("add", (path) => forwardChange("create", path));
17687
17747
  watcher.on("change", (path) => forwardChange("update", path));
@@ -17729,6 +17789,7 @@ function ensureSidecarWatcher(ctx, rootDir) {
17729
17789
  sidecarWatcherMap.set(absRoot, { close: () => {
17730
17790
  for (const timer of renameTimers.values()) clearTimeout(timer);
17731
17791
  renameTimers.clear();
17792
+ preReadyDeletedKnownFiles.clear();
17732
17793
  return watcher.close();
17733
17794
  } });
17734
17795
  }
@@ -17751,6 +17812,12 @@ function createSidecarIgnoredMatcher(ctx, rootDir) {
17751
17812
  const configSuffixes = configExtensions.map((ext) => `.${ext}`);
17752
17813
  const styleSuffixes = supportedCssLangs.map((ext) => `.${ext}`);
17753
17814
  const ATOMIC_SAVE_RECHECK_DELAYS_MS = [20, 60];
17815
+ function isOutputFileChange(state, normalizedId) {
17816
+ const outDir = state.ctx.configService?.outDir;
17817
+ if (!outDir) return false;
17818
+ const normalizedOutDir = normalizeFsResolvedId(outDir);
17819
+ return normalizedId === normalizedOutDir || normalizedId.startsWith(`${normalizedOutDir}/`);
17820
+ }
17754
17821
  async function normalizeWatchEvent(id, event) {
17755
17822
  if (event !== "delete") return event;
17756
17823
  for (const delayMs of ATOMIC_SAVE_RECHECK_DELAYS_MS) {
@@ -17905,10 +17972,12 @@ function createWatchChangeHook(state) {
17905
17972
  const startedAt = performance.now();
17906
17973
  const normalizedId = normalizeFsResolvedId(id);
17907
17974
  if (isSkippableResolvedId(normalizedId)) return;
17975
+ if (isOutputFileChange(state, normalizedId)) return;
17908
17976
  const event = await normalizeWatchEvent(normalizedId, change.event);
17909
17977
  const dirtyReasonSummary = await processChangedFile(state, normalizedId, event);
17910
17978
  state.ctx.runtimeState.build.hmr.profile = {
17911
17979
  ...state.ctx.runtimeState.build.hmr.profile,
17980
+ eventId: createHmrProfileEventId(),
17912
17981
  event,
17913
17982
  file: normalizedId,
17914
17983
  watchToDirtyMs: performance.now() - startedAt,
@@ -19659,6 +19728,33 @@ function buildCompileVueFileOptions(ctx, pluginCtx, vuePath, isPage, isApp, conf
19659
19728
  const jsonConfig = configService.weappViteConfig?.json;
19660
19729
  const wevuDefaults = resolveWevuDefaultsWithPreset(configService.weappViteConfig);
19661
19730
  const jsonKind = isApp ? "app" : isPage ? "page" : "component";
19731
+ async function resolveAutoImportComponentSourceType(match) {
19732
+ if (match.kind === "local") {
19733
+ const resolvedId = match.entry.templatePath;
19734
+ return {
19735
+ resolvedId,
19736
+ sourceType: resolvedId?.endsWith(".vue") ? "wevu-sfc" : "native"
19737
+ };
19738
+ }
19739
+ const explicitSourceType = match.value.sourceType;
19740
+ const explicitResolvedId = match.value.resolvedId;
19741
+ if (explicitSourceType || explicitResolvedId?.endsWith(".vue") || match.value.from.endsWith(".vue")) return {
19742
+ resolvedId: explicitResolvedId,
19743
+ sourceType: explicitSourceType ?? (explicitResolvedId?.endsWith(".vue") || match.value.from.endsWith(".vue") ? "wevu-sfc" : "native")
19744
+ };
19745
+ let localSourceBase;
19746
+ if (match.value.from.startsWith("/")) localSourceBase = path.join(configService.absoluteSrcRoot, match.value.from.slice(1));
19747
+ else if (match.value.from.startsWith(".")) localSourceBase = path.resolve(path.dirname(importerBaseName), match.value.from);
19748
+ if (!localSourceBase) return {
19749
+ resolvedId: explicitResolvedId,
19750
+ sourceType: "native"
19751
+ };
19752
+ const resolvedId = await resolveEntryPath(localSourceBase, createCachedEntryResolveOptions(configService, { kind: "default" }));
19753
+ return {
19754
+ resolvedId,
19755
+ sourceType: resolvedId?.endsWith(".vue") ? "wevu-sfc" : "native"
19756
+ };
19757
+ }
19662
19758
  return {
19663
19759
  isPage,
19664
19760
  isApp,
@@ -19682,18 +19778,10 @@ function buildCompileVueFileOptions(ctx, pluginCtx, vuePath, isPage, isApp, conf
19682
19778
  version
19683
19779
  });
19684
19780
  if (!match?.value) return;
19685
- if (match.kind === "local") {
19686
- const resolvedId = match.entry.templatePath;
19687
- const sourceType = resolvedId?.endsWith(".vue") ? "wevu-sfc" : "native";
19688
- return {
19689
- ...match.value,
19690
- resolvedId,
19691
- sourceType
19692
- };
19693
- }
19781
+ const sourceInfo = await resolveAutoImportComponentSourceType(match);
19694
19782
  return {
19695
19783
  ...match.value,
19696
- sourceType: "native"
19784
+ ...sourceInfo
19697
19785
  };
19698
19786
  }
19699
19787
  },
@@ -21145,7 +21233,8 @@ function createVueTransformPlugin(ctx) {
21145
21233
  classStyleRuntimeWarned
21146
21234
  });
21147
21235
  },
21148
- watchChange(id) {
21236
+ watchChange(id, change) {
21237
+ const startedAt = performance.now();
21149
21238
  const normalizedId = normalizeFsResolvedId(id);
21150
21239
  handleTransformLayoutInvalidation(normalizedId, {
21151
21240
  configService: ctx.configService,
@@ -21159,6 +21248,13 @@ function createVueTransformPlugin(ctx) {
21159
21248
  styleBlocksCache,
21160
21249
  existsSync: fs.existsSync
21161
21250
  });
21251
+ const profile = ctx.runtimeState?.build?.hmr?.profile;
21252
+ if (profile && !profile.file) {
21253
+ profile.eventId = createHmrProfileEventId();
21254
+ profile.event = change?.event ?? "update";
21255
+ profile.file = normalizedId;
21256
+ profile.watchToDirtyMs = performance.now() - startedAt;
21257
+ }
21162
21258
  },
21163
21259
  async handleHotUpdate({ file }) {
21164
21260
  if (handleTransformLayoutInvalidation(file, {
@@ -22460,7 +22556,7 @@ async function loadAppEntry(ctx, scanState) {
22460
22556
  const vueAppPath = await findVueEntry(appBasename);
22461
22557
  let configFromVue;
22462
22558
  if (!appConfigFile && vueAppPath) {
22463
- const { extractConfigFromVue } = await import("./file-mjPummvX.mjs");
22559
+ const { extractConfigFromVue } = await import("./file-djYgQoCM.mjs");
22464
22560
  configFromVue = await extractConfigFromVue(vueAppPath);
22465
22561
  if (configFromVue) appConfigFile = vueAppPath;
22466
22562
  }
@@ -84,7 +84,7 @@ function resolveAutoRoutesMacroImportPath() {
84
84
  }
85
85
  async function resolveAutoRoutesInlineSnapshot() {
86
86
  try {
87
- const { getCompilerContext } = await import("./getInstance-B1BKtMNV.mjs");
87
+ const { getCompilerContext } = await import("./getInstance-BzppVHkY.mjs");
88
88
  const compilerContext = getCompilerContext();
89
89
  const service = compilerContext.autoRoutesService;
90
90
  const reference = service?.getReference?.();
@@ -0,0 +1,2 @@
1
+ import { t as extractConfigFromVue } from "./file-BC_RNbAI.mjs";
2
+ export { extractConfigFromVue };
@@ -0,0 +1,2 @@
1
+ import { i as getCompilerContext } from "./createContext-C-05IQc1.mjs";
2
+ export { getCompilerContext };
@@ -2,6 +2,8 @@
2
2
  interface ResolvedValue {
3
3
  name: string;
4
4
  from: string;
5
+ resolvedId?: string;
6
+ sourceType?: 'wevu-sfc' | 'native';
5
7
  }
6
8
  type ResolverSupportFilesStrategy = 'used' | 'full';
7
9
  interface ExternalMetadataFileCandidates {
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Ref, Bn as resolveWeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Fn as WeappViteHostMeta, I as RolldownPluginOption, In as WeappViteRuntime, L as RolldownWatchOptions, Ln as applyWeappViteHostMeta, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Pn as WEAPP_VITE_HOST_NAME, R as RolldownWatcher, Rn as createWeappViteHostMeta, S as CompilerContext, T as ConfigEnv, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, 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, nt as WeappViteConfig, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as isWeappViteHost } from "./config-CIof1TIl.mjs";
1
+ import { A as Ref, Bn as resolveWeappViteHostMeta, C as LoadConfigOptions, D as MethodDefinitions, E as InlineConfig, F as RolldownPlugin, Fn as WeappViteHostMeta, I as RolldownPluginOption, In as WeappViteRuntime, L as RolldownWatchOptions, Ln as applyWeappViteHostMeta, M as RolldownBuild, N as RolldownOptions, O as Plugin, P as RolldownOutput, Pn as WEAPP_VITE_HOST_NAME, R as RolldownWatcher, Rn as createWeappViteHostMeta, S as CompilerContext, T as ConfigEnv, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, 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, nt as WeappViteConfig, o as UserConfigFnObject, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, t as UserConfig, u as App, v as defineSitemapJson, w as ComputedDefinitions, y as defineThemeJson, z as ViteDevServer, zn as isWeappViteHost } from "./config-BKXx-hW-.mjs";
2
2
  import { a as createWevuComponent, i as WevuComponentOptions, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-DSLk7kWi.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-D0HkutE0.mjs";
2
2
  import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost-SJdl15d3.mjs";
3
3
  import { t as defineConfig } from "./config-DJjSbpNX.mjs";
4
- import { t as createCompilerContext } from "./createContext-Cwf_Dx0p.mjs";
4
+ import { t as createCompilerContext } from "./createContext-C-05IQc1.mjs";
5
5
  import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-DN3lxU9s.mjs";
6
6
  export { WEAPP_VITE_HOST_NAME, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta, 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-CIof1TIl.mjs";
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-BKXx-hW-.mjs";
2
2
  export { App, Component, Page, Sitemap, Theme, defineAppJson, defineComponentJson, definePageJson, defineSitemapJson, defineThemeJson };
@@ -1,4 +1,5 @@
1
1
  import { r as logger_default } from "./logger-CgxdNjvb.mjs";
2
+ import { connectMiniProgram } from "weapp-ide-cli";
2
3
  import { DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, createWeappViteMcpServer, startWeappViteMcpServer } from "@weapp-vite/mcp";
3
4
  //#region src/mcp.ts
4
5
  function normalizeEndpoint(input) {
@@ -29,6 +30,7 @@ function resolveWeappMcpConfig(config) {
29
30
  }
30
31
  async function startWeappViteMcpServer$1(options) {
31
32
  return startWeappViteMcpServer({
33
+ runtimeHooks: { connectMiniProgram },
32
34
  ...options,
33
35
  onReady: options?.onReady ?? ((message) => {
34
36
  logger_default.info(message);
package/dist/mcp.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { xt as WeappMcpConfig } from "./config-CIof1TIl.mjs";
1
+ import { xt as WeappMcpConfig } from "./config-BKXx-hW-.mjs";
2
2
  import { CreateServerOptions, DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, McpServerHandle, StartMcpServerOptions, createWeappViteMcpServer } from "@weapp-vite/mcp";
3
3
 
4
4
  //#region src/mcp.d.ts
package/dist/mcp.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as resolveWeappMcpConfig, i as createWeappViteMcpServer, n as DEFAULT_MCP_HOST, o as startWeappViteMcpServer, r as DEFAULT_MCP_PORT, t as DEFAULT_MCP_ENDPOINT } from "./mcp-DRlj32v4.mjs";
1
+ import { a as resolveWeappMcpConfig, i as createWeappViteMcpServer, n as DEFAULT_MCP_HOST, o as startWeappViteMcpServer, r as DEFAULT_MCP_PORT, t as DEFAULT_MCP_ENDPOINT } from "./mcp-BzcrPiku.mjs";
2
2
  export { DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, createWeappViteMcpServer, resolveWeappMcpConfig, startWeappViteMcpServer };
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as Resolver } from "./index-6QUk3Zbc.mjs";
1
+ import { c as Resolver } from "./index-C1yQldy3.mjs";
2
2
  import { n as AutoRoutesSubPackage, t as AutoRoutes } from "./routes-DiEBrMtj.mjs";
3
- import { $ as WeappDebugConfig, $t as JsonConfig, A as Ref, An as WeappManagedServerTsconfigConfig, At as WeappWevuConfig, B as BindingErrorLike, Bt as GenerateExtensionsOptions, Cn as WeappLibDtsOptions, Ct as WeappRequestRuntimeConfig, D as MethodDefinitions, Dn as WeappLibVueTscOptions, Dt as WeappVueConfig, E as InlineConfig, En as WeappLibInternalDtsOptions, Et as WeappSubPackageConfig, F as RolldownPlugin, Fn as WeappViteHostMeta, Ft as BuildNpmPackageMeta, G as EntryJsonFragment, Gt as GenerateTemplateContext, H as BaseEntry, Ht as GenerateFilenamesOptions, I as RolldownPluginOption, In as WeappViteRuntime, It as ChunksConfig, J as ScanComponentItem, Jt as GenerateTemplateFileSource, K as PageEntry, Kt as GenerateTemplateEntry, L as RolldownWatchOptions, Lt as CopyGlobs, M as RolldownBuild, Mn as WeappManagedTypeScriptConfig, Mt as Alias, N as RolldownOptions, Nn as WeappWebConfig, Nt as AliasOptions, O as Plugin, On as WeappManagedAppTsconfigConfig, Ot as WeappVueTemplateConfig, P as RolldownOutput, Pt as AlipayNpmMode, Q as UserConfig, Qt as JsFormat, R as RolldownWatcher, Rt as CopyOptions, Sn as WeappLibConfig, St as WeappNpmConfig, T as ConfigEnv, Tn as WeappLibFileName, Tt as WeappRouteRules, U as ComponentEntry, Ut as GenerateOptions, V as AppEntry, Vt as GenerateFileType, W as Entry, Wt as GenerateTemplate, X as ProjectConfig, Xt as GenerateTemplateScope, Y as WxmlDep, Yt as GenerateTemplateInlineSource, Z as SubPackageMetaValue, Zt as GenerateTemplatesConfig, _n as SubPackageStyleConfigEntry, _t as WeappInjectRequestGlobalsTarget, an as NpmBuildOptions, at as EnhanceOptions, b as ChangeEvent, bn as SubPackageStyleScope, bt as WeappInjectWebRuntimeGlobalsTarget, cn as NpmPluginPackageConfig, ct as MultiPlatformConfig, dn as ResolvedAlias, dt as WeappAppPreludeMode, en as JsonMergeContext, et as WeappForwardConsoleConfig, fn as SharedChunkDynamicImports, ft as WeappAutoRoutesConfig, gn as SubPackage, gt as WeappInjectRequestGlobalsConfig, hn as SharedChunkStrategy, ht as WeappHmrConfig, in as MpPlatform, it as AutoImportComponentsOption, j as ResolvedConfig, jn as WeappManagedSharedTsconfigConfig, jt as WeappWorkerConfig, k as PluginOption, kn as WeappManagedNodeTsconfigConfig, kt as WeappWebRuntimeConfig, ln as NpmStrategy, lt as ScanWxmlOptions, mn as SharedChunkOverride, mt as WeappAutoRoutesIncludePattern, nn as JsonMergeStage, nt as WeappViteConfig, on as NpmDependencyPattern, ot as EnhanceWxmlOptions, pn as SharedChunkMode, pt as WeappAutoRoutesInclude, q as ComponentsMap, qt as GenerateTemplateFactory, rn as JsonMergeStrategy, rt as AutoImportComponents, sn as NpmMainPackageConfig, st as HandleWxmlOptions, tn as JsonMergeFunction, tt as WeappForwardConsoleLogLevel, un as NpmSubPackageConfig, ut as WeappAppPreludeConfig, vn as SubPackageStyleConfigObject, vt as WeappInjectWeapiConfig, w as ComputedDefinitions, wn as WeappLibEntryContext, wt as WeappRouteRule, x as WeappVitePluginApi, xn as WeappLibComponentJson, xt as WeappMcpConfig, yn as SubPackageStyleEntry, yt as WeappInjectWebRuntimeGlobalsConfig, z as ViteDevServer, zt as GenerateDirsOptions } from "./config-CIof1TIl.mjs";
3
+ import { $ as WeappDebugConfig, $t as JsonConfig, A as Ref, An as WeappManagedServerTsconfigConfig, At as WeappWevuConfig, B as BindingErrorLike, Bt as GenerateExtensionsOptions, Cn as WeappLibDtsOptions, Ct as WeappRequestRuntimeConfig, D as MethodDefinitions, Dn as WeappLibVueTscOptions, Dt as WeappVueConfig, E as InlineConfig, En as WeappLibInternalDtsOptions, Et as WeappSubPackageConfig, F as RolldownPlugin, Fn as WeappViteHostMeta, Ft as BuildNpmPackageMeta, G as EntryJsonFragment, Gt as GenerateTemplateContext, H as BaseEntry, Ht as GenerateFilenamesOptions, I as RolldownPluginOption, In as WeappViteRuntime, It as ChunksConfig, J as ScanComponentItem, Jt as GenerateTemplateFileSource, K as PageEntry, Kt as GenerateTemplateEntry, L as RolldownWatchOptions, Lt as CopyGlobs, M as RolldownBuild, Mn as WeappManagedTypeScriptConfig, Mt as Alias, N as RolldownOptions, Nn as WeappWebConfig, Nt as AliasOptions, O as Plugin, On as WeappManagedAppTsconfigConfig, Ot as WeappVueTemplateConfig, P as RolldownOutput, Pt as AlipayNpmMode, Q as UserConfig, Qt as JsFormat, R as RolldownWatcher, Rt as CopyOptions, Sn as WeappLibConfig, St as WeappNpmConfig, T as ConfigEnv, Tn as WeappLibFileName, Tt as WeappRouteRules, U as ComponentEntry, Ut as GenerateOptions, V as AppEntry, Vt as GenerateFileType, W as Entry, Wt as GenerateTemplate, X as ProjectConfig, Xt as GenerateTemplateScope, Y as WxmlDep, Yt as GenerateTemplateInlineSource, Z as SubPackageMetaValue, Zt as GenerateTemplatesConfig, _n as SubPackageStyleConfigEntry, _t as WeappInjectRequestGlobalsTarget, an as NpmBuildOptions, at as EnhanceOptions, b as ChangeEvent, bn as SubPackageStyleScope, bt as WeappInjectWebRuntimeGlobalsTarget, cn as NpmPluginPackageConfig, ct as MultiPlatformConfig, dn as ResolvedAlias, dt as WeappAppPreludeMode, en as JsonMergeContext, et as WeappForwardConsoleConfig, fn as SharedChunkDynamicImports, ft as WeappAutoRoutesConfig, gn as SubPackage, gt as WeappInjectRequestGlobalsConfig, hn as SharedChunkStrategy, ht as WeappHmrConfig, in as MpPlatform, it as AutoImportComponentsOption, j as ResolvedConfig, jn as WeappManagedSharedTsconfigConfig, jt as WeappWorkerConfig, k as PluginOption, kn as WeappManagedNodeTsconfigConfig, kt as WeappWebRuntimeConfig, ln as NpmStrategy, lt as ScanWxmlOptions, mn as SharedChunkOverride, mt as WeappAutoRoutesIncludePattern, nn as JsonMergeStage, nt as WeappViteConfig, on as NpmDependencyPattern, ot as EnhanceWxmlOptions, pn as SharedChunkMode, pt as WeappAutoRoutesInclude, q as ComponentsMap, qt as GenerateTemplateFactory, rn as JsonMergeStrategy, rt as AutoImportComponents, sn as NpmMainPackageConfig, st as HandleWxmlOptions, tn as JsonMergeFunction, tt as WeappForwardConsoleLogLevel, un as NpmSubPackageConfig, ut as WeappAppPreludeConfig, vn as SubPackageStyleConfigObject, vt as WeappInjectWeapiConfig, w as ComputedDefinitions, wn as WeappLibEntryContext, wt as WeappRouteRule, x as WeappVitePluginApi, xn as WeappLibComponentJson, xt as WeappMcpConfig, yn as SubPackageStyleEntry, yt as WeappInjectWebRuntimeGlobalsConfig, z as ViteDevServer, zt as GenerateDirsOptions } from "./config-BKXx-hW-.mjs";
4
4
  export { Alias, AliasOptions, AlipayNpmMode, AppEntry, AutoImportComponents, AutoImportComponentsOption, AutoRoutes, AutoRoutesSubPackage, BaseEntry, BindingErrorLike, BuildNpmPackageMeta, ChangeEvent, ChunksConfig, ComponentEntry, ComponentsMap, ComputedDefinitions, ConfigEnv, CopyGlobs, CopyOptions, EnhanceOptions, EnhanceWxmlOptions, Entry, EntryJsonFragment, GenerateDirsOptions, GenerateExtensionsOptions, GenerateFileType, GenerateFilenamesOptions, GenerateOptions, GenerateTemplate, GenerateTemplateContext, GenerateTemplateEntry, GenerateTemplateFactory, GenerateTemplateFileSource, GenerateTemplateInlineSource, GenerateTemplateScope, GenerateTemplatesConfig, HandleWxmlOptions, InlineConfig, JsFormat, JsonConfig, JsonMergeContext, JsonMergeFunction, JsonMergeStage, JsonMergeStrategy, MethodDefinitions, MpPlatform, MultiPlatformConfig, NpmBuildOptions, NpmDependencyPattern, NpmMainPackageConfig, NpmPluginPackageConfig, NpmStrategy, NpmSubPackageConfig, PageEntry, Plugin, PluginOption, ProjectConfig, Ref, ResolvedAlias, ResolvedConfig, Resolver, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatchOptions, RolldownWatcher, ScanComponentItem, ScanWxmlOptions, SharedChunkDynamicImports, SharedChunkMode, SharedChunkOverride, SharedChunkStrategy, SubPackage, SubPackageMetaValue, SubPackageStyleConfigEntry, SubPackageStyleConfigObject, SubPackageStyleEntry, SubPackageStyleScope, UserConfig, ViteDevServer, WeappAppPreludeConfig, WeappAppPreludeMode, WeappAutoRoutesConfig, WeappAutoRoutesInclude, WeappAutoRoutesIncludePattern, 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, WeappViteHostMeta, WeappVitePluginApi, 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.15.18",
4
+ "version": "6.16.1",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -122,8 +122,8 @@
122
122
  "@weapp-core/logger": "3.1.1",
123
123
  "@weapp-core/schematics": "6.0.4",
124
124
  "@weapp-core/shared": "3.0.4",
125
- "@weapp-vite/ast": "6.15.18",
126
- "@weapp-vite/mcp": "1.2.1",
125
+ "@weapp-vite/ast": "6.16.1",
126
+ "@weapp-vite/mcp": "1.3.0",
127
127
  "@weapp-vite/miniprogram-automator": "1.0.4",
128
128
  "@weapp-vite/volar": "2.1.0",
129
129
  "@weapp-vite/web": "1.3.19",
@@ -131,8 +131,8 @@
131
131
  "@wevu/web-apis": "1.2.10",
132
132
  "rolldown-require": "2.0.15",
133
133
  "vite-plugin-performance": "2.0.1",
134
- "weapp-ide-cli": "5.2.6",
135
- "wevu": "6.15.18"
134
+ "weapp-ide-cli": "5.2.7",
135
+ "wevu": "6.16.1"
136
136
  },
137
137
  "publishConfig": {
138
138
  "access": "public",
@@ -1,2 +0,0 @@
1
- import { t as extractConfigFromVue } from "./file-C0a3v0yb.mjs";
2
- export { extractConfigFromVue };
@@ -1,2 +0,0 @@
1
- import { i as getCompilerContext } from "./createContext-Cwf_Dx0p.mjs";
2
- export { getCompilerContext };