weapp-vite 6.16.44 → 6.16.45

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,4 +1,4 @@
1
- import { g as getRouteRuntimeGlobalKeys, n as getCompilerContext } from "./createContext-D2uF0JED.mjs";
1
+ import { g as getRouteRuntimeGlobalKeys, n as getCompilerContext } from "./createContext-Bqsm_duR.mjs";
2
2
  //#region src/auto-routes.ts
3
3
  const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
4
4
  function createGetter(resolver) {
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, a as formatBytes, b as getProjectConfigFileName, d as syncProjectSupportFiles, f as syncManagedTsconfigBootstrapFiles, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, p as createSharedBuildConfig, t as createCompilerContext, u as resolveWeappViteTarget, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-D2uF0JED.mjs";
1
+ import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, a as formatBytes, b as getProjectConfigFileName, d as syncProjectSupportFiles, f as syncManagedTsconfigBootstrapFiles, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, p as createSharedBuildConfig, t as createCompilerContext, u as resolveWeappViteTarget, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-Bqsm_duR.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
3
- import { h as VERSION } from "./file-DBbvHZyc.mjs";
3
+ import { h as VERSION } from "./file-CsF2X7eL.mjs";
4
4
  import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-YXCIQr-Z.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import path, { posix } from "pathe";
@@ -3899,7 +3899,7 @@ function resolveRunnableHotkeyDefinition(input) {
3899
3899
  }
3900
3900
  //#endregion
3901
3901
  //#region package.json
3902
- var version = "6.16.44";
3902
+ var version = "6.16.45";
3903
3903
  //#endregion
3904
3904
  //#region src/cli/devHotkeys/format.ts
3905
3905
  const FULLWIDTH_ASCII_START = 65281;
@@ -1,6 +1,6 @@
1
1
  import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
2
2
  import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
3
- import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file-DBbvHZyc.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-CsF2X7eL.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";
@@ -13045,13 +13045,8 @@ function createBuildService(ctx) {
13045
13045
  const sidecarEntryId = await resolveSnapshotSidecarEntryId(reason);
13046
13046
  if (sidecarEntryId) {
13047
13047
  markSnapshotEntryDirty(sidecarEntryId);
13048
- process.env.WEAPP_VITE_FORCE_FULL_HMR_SHARED_CHUNKS = "1";
13049
- try {
13050
- await build(snapshotBuildOptions);
13051
- return "snapshot";
13052
- } finally {
13053
- delete process.env.WEAPP_VITE_FORCE_FULL_HMR_SHARED_CHUNKS;
13054
- }
13048
+ await build(snapshotBuildOptions);
13049
+ return "snapshot";
13055
13050
  }
13056
13051
  markSnapshotEntriesFullDirty();
13057
13052
  process.env.WEAPP_VITE_FORCE_FULL_HMR_SHARED_CHUNKS = "1";
@@ -17581,8 +17576,9 @@ function resolvePendingEntryIds(options) {
17581
17576
  if (!chunkIds?.size) continue;
17582
17577
  for (const chunkId of chunkIds) {
17583
17578
  const isSourceSharedChunk = options.sourceSharedChunks?.has(chunkId) === true;
17579
+ const isStableSharedChunk = shouldExpandStableSharedChunk(chunkId, options.sharedChunkImporters?.get(chunkId));
17584
17580
  if (dirtyReason === "metadata") continue;
17585
- if (dirtyReason === "dependency" || !isSourceSharedChunk || shouldExpandStableSharedChunk(chunkId, options.sharedChunkImporters?.get(chunkId))) relatedChunkIds.add(chunkId);
17581
+ if (dirtyReason === "dependency" || !isSourceSharedChunk && !isStableSharedChunk) relatedChunkIds.add(chunkId);
17586
17582
  }
17587
17583
  }
17588
17584
  if (!relatedChunkIds.size) return {
@@ -25477,7 +25473,7 @@ async function loadAppEntry(ctx, scanState) {
25477
25473
  const vueAppPath = await findVueEntry(appBasename);
25478
25474
  let configFromVue;
25479
25475
  if (!appConfigFile && vueAppPath) {
25480
- const { extractConfigFromVue } = await import("./file-CTUeDbPw.mjs");
25476
+ const { extractConfigFromVue } = await import("./file-CsjD5DM3.mjs");
25481
25477
  configFromVue = await extractConfigFromVue(vueAppPath);
25482
25478
  if (configFromVue) appConfigFile = vueAppPath;
25483
25479
  }
@@ -84,7 +84,7 @@ function resolveAutoRoutesMacroImportPath() {
84
84
  }
85
85
  async function resolveAutoRoutesInlineSnapshot() {
86
86
  try {
87
- const { getCompilerContext } = await import("./getInstance-DwrlgiHQ.mjs");
87
+ const { getCompilerContext } = await import("./getInstance-BNM8-aPJ.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-CsF2X7eL.mjs";
2
+ export { extractConfigFromVue };
@@ -0,0 +1,2 @@
1
+ import { n as getCompilerContext } from "./createContext-Bqsm_duR.mjs";
2
+ export { getCompilerContext };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
2
2
  import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
3
3
  import { t as defineConfig } from "./config-DRGcCi3h.mjs";
4
- import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-D2uF0JED.mjs";
4
+ import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-Bqsm_duR.mjs";
5
5
  import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-C3z9pDQB.mjs";
6
6
  export { WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "6.16.44",
4
+ "version": "6.16.45",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -118,21 +118,21 @@
118
118
  "vue": "^3.5.38",
119
119
  "vue-tsc": "^3.3.5",
120
120
  "@weapp-core/constants": "0.1.12",
121
- "@weapp-core/logger": "3.1.1",
122
- "@weapp-core/shared": "3.0.4",
123
121
  "@weapp-core/init": "6.0.10",
122
+ "@weapp-core/logger": "3.1.1",
124
123
  "@weapp-core/schematics": "6.0.4",
125
- "@weapp-vite/ast": "6.16.44",
124
+ "@weapp-core/shared": "3.0.4",
125
+ "@weapp-vite/ast": "6.16.45",
126
126
  "@weapp-vite/mcp": "1.4.4",
127
127
  "@weapp-vite/miniprogram-automator": "1.2.3",
128
128
  "@weapp-vite/volar": "2.1.0",
129
- "vite-plugin-performance": "2.0.1",
130
- "wevu": "6.16.44",
131
129
  "@weapp-vite/web": "1.3.31",
132
- "weapp-ide-cli": "5.4.5",
130
+ "@wevu/api": "0.2.9",
133
131
  "@wevu/web-apis": "1.2.21",
134
132
  "rolldown-require": "2.0.19",
135
- "@wevu/api": "0.2.9"
133
+ "vite-plugin-performance": "2.0.1",
134
+ "weapp-ide-cli": "5.4.5",
135
+ "wevu": "6.16.45"
136
136
  },
137
137
  "publishConfig": {
138
138
  "access": "public",
@@ -1,2 +0,0 @@
1
- import { t as extractConfigFromVue } from "./file-DBbvHZyc.mjs";
2
- export { extractConfigFromVue };
@@ -1,2 +0,0 @@
1
- import { n as getCompilerContext } from "./createContext-D2uF0JED.mjs";
2
- export { getCompilerContext };