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.
- package/dist/auto-import-presets/wevu-router.d.mts +2 -0
- package/dist/auto-import-presets/wevu-router.mjs +2 -0
- package/dist/auto-import-presets/wevu.d.mts +2 -0
- package/dist/auto-import-presets/wevu.mjs +2 -0
- package/dist/auto-import-presets.d.mts +3 -0
- package/dist/auto-import-presets.mjs +3 -0
- package/dist/auto-routes.mjs +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{config-CgTp6kSh.d.mts → config-CDlfnbbb.d.mts} +6 -1
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-BYZnlk4j.mjs → createContext-CsYIo9DO.mjs} +401 -112
- package/dist/{file-CLo_LdAz.mjs → file-CHisoC18.mjs} +1 -1
- package/dist/file-DxMrh1lh.mjs +2 -0
- package/dist/getInstance-C-3pAq1Y.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/json.d.mts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/test.mjs +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/wevu-C4KEC5kO.d.mts +5 -0
- package/dist/wevu-CrDVekb9.mjs +130 -0
- package/dist/wevu-router-Bl-FE8zi.mjs +15 -0
- package/dist/wevu-router-Cg2sIkIE.d.mts +5 -0
- package/package.json +41 -29
- package/dist/file-BRQqRekU.mjs +0 -2
- package/dist/getInstance-D82nepOm.mjs +0 -2
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-
|
|
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-
|
|
2
|
-
import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-
|
|
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.
|
|
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-
|
|
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 };
|