weapp-vite 7.1.2 → 7.1.4

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.
@@ -0,0 +1,2 @@
1
+ import { t as wevuRouter } from "../wevu-router-Cg2sIkIE.mjs";
2
+ export { wevuRouter as default };
@@ -0,0 +1,2 @@
1
+ import { t as wevuRouter } from "../wevu-router-Bl-FE8zi.mjs";
2
+ export { wevuRouter as default };
@@ -0,0 +1,2 @@
1
+ import { t as wevu } from "../wevu-C4KEC5kO.mjs";
2
+ export { wevu as default };
@@ -0,0 +1,2 @@
1
+ import { t as wevu } from "../wevu-CrDVekb9.mjs";
2
+ export { wevu as default };
@@ -0,0 +1,3 @@
1
+ import { t as wevu } from "./wevu-C4KEC5kO.mjs";
2
+ import { t as wevuRouter } from "./wevu-router-Cg2sIkIE.mjs";
3
+ export { wevu, wevuRouter };
@@ -0,0 +1,3 @@
1
+ import { t as wevu } from "./wevu-CrDVekb9.mjs";
2
+ import { t as wevuRouter } from "./wevu-router-Bl-FE8zi.mjs";
3
+ export { wevu, wevuRouter };
@@ -1,4 +1,4 @@
1
- import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-BYZnlk4j.mjs";
1
+ import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-CsYIo9DO.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,5 +1,5 @@
1
- import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-BYZnlk4j.mjs";
2
- import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-CLo_LdAz.mjs";
1
+ import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-CsYIo9DO.mjs";
2
+ import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-CHisoC18.mjs";
3
3
  import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
4
4
  import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
5
5
  import { createRequire } from "node:module";
@@ -5062,7 +5062,7 @@ function resolveRunnableHotkeyDefinition(input) {
5062
5062
  }
5063
5063
  //#endregion
5064
5064
  //#region package.json
5065
- var version = "7.1.2";
5065
+ var version = "7.1.4";
5066
5066
  //#endregion
5067
5067
  //#region src/cli/devHotkeys/format.ts
5068
5068
  const FULLWIDTH_ASCII_START = 65281;
@@ -805,7 +805,7 @@ interface WeappViteConfig {
805
805
  /**
806
806
  * 开发态是否在启动构建前清空输出目录。
807
807
  * 开发态默认 `true`,设置为 `false` 可跳过每次 dev 启动前的全量输出目录清理。
808
- * 生产构建始终会清空输出目录。
808
+ * 生产构建默认清空输出目录;显式 `build.emptyOutDir: false` 对开发和生产均禁用全量清理。
809
809
  */
810
810
  cleanOutputsInDev?: boolean;
811
811
  /**
@@ -1677,6 +1677,10 @@ interface AutoRoutesCandidateState {
1677
1677
  hasTemplate: boolean;
1678
1678
  jsonPath?: string;
1679
1679
  }
1680
+ interface VueEntryStyleBindings {
1681
+ sources: string[];
1682
+ expressions?: string[];
1683
+ }
1680
1684
  interface LibEntryState {
1681
1685
  name: string;
1682
1686
  input: string;
@@ -1735,6 +1739,7 @@ interface RuntimeState {
1735
1739
  entriesMap: Map<string, Entry | undefined>;
1736
1740
  vueEntryHasTemplate: Map<string, boolean>;
1737
1741
  vueEntrySfcSignatures: Map<string, VueSfcBlockSignatures>;
1742
+ vueEntryStyleBindings: Map<string, VueEntryStyleBindings>;
1738
1743
  vueEntryTailwindContentSignatures: Map<string, string>;
1739
1744
  vueEntryTailwindTemplateContentSignatures: Map<string, string>;
1740
1745
  vueEntryTailwindScriptContentSignatures: Map<string, string>;
package/dist/config.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $n as applyWeappViteHostMeta, Qn as WeappViteHostMeta, Zn as WEAPP_VITE_HOST_NAME, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, er as createWeappViteHostMeta, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, nr as resolveWeappViteHostMeta, o as UserConfigFnObject, ot as WeappViteConfig, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, sr as WeappViteRuntime, t as UserConfig, tr as isWeappViteHost, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-CgTp6kSh.mjs";
1
+ import { $n as applyWeappViteHostMeta, Qn as WeappViteHostMeta, Zn as WEAPP_VITE_HOST_NAME, _ as definePageJson, a as UserConfigFnNoEnvPlain, c as UserConfigFnPromise, d as Component, er as createWeappViteHostMeta, f as Page, g as defineComponentJson, h as defineAppJson, i as UserConfigFnNoEnv, l as defineConfig, m as Theme, n as UserConfigExport, nr as resolveWeappViteHostMeta, o as UserConfigFnObject, ot as WeappViteConfig, p as Sitemap, r as UserConfigFn, s as UserConfigFnObjectPlain, sr as WeappViteRuntime, t as UserConfig, tr as isWeappViteHost, u as App, v as defineSitemapJson, y as defineThemeJson } from "./config-CDlfnbbb.mjs";
2
2
  import { t as WeappI18nConfig } from "./types-CgZn5X6j.mjs";
3
3
  export { type App, type Component, type Page, type Sitemap, type Theme, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnNoEnv, UserConfigFnNoEnvPlain, UserConfigFnObject, UserConfigFnObjectPlain, UserConfigFnPromise, WEAPP_VITE_HOST_NAME, type WeappI18nConfig, type WeappViteConfig, WeappViteHostMeta, type WeappViteRuntime, applyWeappViteHostMeta, createWeappViteHostMeta, defineAppJson, defineComponentJson, defineConfig, definePageJson, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta };